Skip to content

Commit

Permalink
Move Time_t to dds namespace and some *Attributes to xmlparser
Browse files Browse the repository at this point in the history
…docs (#870)

* Refs #21321: Update CodeTester

Signed-off-by: Mario Dominguez <[email protected]>

* Refs #21321: Update docs

Signed-off-by: Mario Dominguez <[email protected]>

* Refs #21321: Apply rev

Signed-off-by: Mario Dominguez <[email protected]>

---------

Signed-off-by: Mario Dominguez <[email protected]>
  • Loading branch information
Mario-DL authored Jul 23, 2024
1 parent 02801d0 commit 5108bae
Show file tree
Hide file tree
Showing 14 changed files with 91 additions and 74 deletions.
6 changes: 3 additions & 3 deletions code/DDSCodeTester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3872,7 +3872,7 @@ void dds_dataReader_examples()
SampleInfo info;

//Define a timeout of 5 seconds
eprosima::fastdds::Duration_t timeout (5, 0);
eprosima::fastdds::dds::Duration_t timeout (5, 0);

// Loop reading data as it arrives
// This will make the current thread to be dedicated exclusively to
Expand Down Expand Up @@ -3924,7 +3924,7 @@ void dds_dataReader_examples()
SampleInfo info;

//Define a timeout of 5 seconds
eprosima::fastdds::Duration_t timeout (5, 0);
eprosima::fastdds::dds::Duration_t timeout (5, 0);

// Loop reading data as it arrives
// This will make the current thread to be dedicated exclusively to
Expand Down Expand Up @@ -7403,7 +7403,7 @@ void dds_waitset_example()
// Wait for any of the conditions to be triggered
ReturnCode_t ret_code;
ConditionSeq triggered_conditions;
ret_code = wait_set_.wait(triggered_conditions, eprosima::fastdds::c_TimeInfinite);
ret_code = wait_set_.wait(triggered_conditions, eprosima::fastdds::dds::c_TimeInfinite);
if (RETCODE_OK != ret_code)
{
// ... handle error
Expand Down
6 changes: 3 additions & 3 deletions docs/03-exports/aliases-api.include
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,9 @@
.. |EXCLUSIVE-xml-api| replace:: :cpp:enumerator:`EXCLUSIVE<eprosima::fastdds::dds::OwnershipQosPolicyKind::EXCLUSIVE_OWNERSHIP_QOS>`

.. |Duration_t-api| replace:: :cpp:type:`Duration_t<eprosima::fastdds::Duration_t>`
.. |c_TimeInfinite-api| replace:: :cpp:var:`c_TimeInfinite<eprosima::fastdds::c_TimeInfinite>`
.. |c_TimeZero-api| replace:: :cpp:var:`c_TimeZero<eprosima::fastdds::c_TimeInfinite>`
.. |c_TimeInvalid-api| replace:: :cpp:var:`c_TimeInvalid<eprosima::fastdds::c_TimeInfinite>`
.. |c_TimeInfinite-api| replace:: :cpp:var:`c_TimeInfinite<eprosima::fastdds::dds::c_TimeInfinite>`
.. |c_TimeZero-api| replace:: :cpp:var:`c_TimeZero<eprosima::fastdds::dds::c_TimeZero>`
.. |c_TimeInvalid-api| replace:: :cpp:var:`c_TimeInvalid<eprosima::fastdds::dds::c_TimeInvalid>`
.. |LocatorList_t-api| replace:: :cpp:type:`LocatorList<eprosima::fastdds::rtps::LocatorList>`
.. |ExternalLocators-api| replace:: :cpp:type:`ExternalLocators<eprosima::fastdds::rtps::ExternalLocators>`
.. |Locator_t-api| replace:: :cpp:class:`Locator_t<eprosima::fastdds::rtps::Locator_t>`
Expand Down
7 changes: 7 additions & 0 deletions docs/fastdds/api_reference/dds_pim/core/Time_t/Duration_t.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. rst-class:: api-ref

DDS Layer Duration_t
--------------------

.. doxygentypedef:: eprosima::fastdds::dds::Duration_t
:project: FastDDS
10 changes: 10 additions & 0 deletions docs/fastdds/api_reference/dds_pim/core/Time_t/Time_t.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.. _api_pim_time_t:

.. rst-class:: api-ref

DDS Layer Time_t
----------------

.. doxygenstruct:: eprosima::fastdds::dds::Time_t
:project: FastDDS
:members:
14 changes: 14 additions & 0 deletions docs/fastdds/api_reference/dds_pim/core/Time_t/const_values.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.. rst-class:: api-ref

Const values
------------

.. doxygenvariable:: eprosima::fastdds::dds::c_TimeInfinite
:project: FastDDS

.. doxygenvariable:: eprosima::fastdds::dds::c_TimeZero
:project: FastDDS

.. doxygenvariable:: eprosima::fastdds::dds::c_TimeInvalid
:project: FastDDS

31 changes: 31 additions & 0 deletions docs/fastdds/api_reference/dds_pim/core/Time_t/operators.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
.. rst-class:: api-ref

Time_t DDS Operators
--------------------

.. doxygenfunction:: eprosima::fastdds::dds::operator==(const Time_t &t1, const Time_t &t2)
:project: FastDDS

.. doxygenfunction:: eprosima::fastdds::dds::operator!=(const Time_t &t1, const Time_t &t2)
:project: FastDDS

.. doxygenfunction:: eprosima::fastdds::dds::operator<(const Time_t &t1, const Time_t &t2)
:project: FastDDS

.. doxygenfunction:: eprosima::fastdds::dds::operator>(const Time_t &t1, const Time_t &t2)
:project: FastDDS

.. doxygenfunction:: eprosima::fastdds::dds::operator<=(const Time_t &t1, const Time_t &t2)
:project: FastDDS

.. doxygenfunction:: eprosima::fastdds::dds::operator>=(const Time_t &t1, const Time_t &t2)
:project: FastDDS

.. doxygenfunction:: eprosima::fastdds::dds::operator<<(std::ostream &output, const Time_t &t)
:project: FastDDS

.. doxygenfunction:: eprosima::fastdds::dds::operator+(const Time_t &ta, const Time_t &tb)
:project: FastDDS

.. doxygenfunction:: eprosima::fastdds::dds::operator-(const Time_t &ta, const Time_t &tb)
:project: FastDDS
12 changes: 12 additions & 0 deletions docs/fastdds/api_reference/dds_pim/core/Time_t/time_toc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. _api_dds_common_time_t:

DDS Time_t
----------

.. toctree::
:titlesonly:

/fastdds/api_reference/dds_pim/core/Time_t/const_values
/fastdds/api_reference/dds_pim/core/Time_t/Duration_t
/fastdds/api_reference/dds_pim/core/Time_t/operators
/fastdds/api_reference/dds_pim/core/Time_t/Time_t
9 changes: 5 additions & 4 deletions docs/fastdds/api_reference/dds_pim/core/core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ Core
.. toctree::
:titlesonly:

/fastdds/api_reference/dds_pim/core/entity.rst
/fastdds/api_reference/dds_pim/core/domainentity.rst
/fastdds/api_reference/dds_pim/core/policy/policy.rst
/fastdds/api_reference/dds_pim/core/status/status.rst
/fastdds/api_reference/dds_pim/core/condition/basecondition.rst
/fastdds/api_reference/dds_pim/core/domainentity.rst
/fastdds/api_reference/dds_pim/core/entity.rst
/fastdds/api_reference/dds_pim/core/loanablearray.rst
/fastdds/api_reference/dds_pim/core/loanablecollection.rst
/fastdds/api_reference/dds_pim/core/loanablesequence.rst
/fastdds/api_reference/dds_pim/core/policy/policy.rst
/fastdds/api_reference/dds_pim/core/stackallocatedsequence.rst
/fastdds/api_reference/dds_pim/core/status/status.rst
/fastdds/api_reference/dds_pim/core/Time_t/time_toc.rst
7 changes: 0 additions & 7 deletions docs/fastdds/api_reference/rtps/common/Time_t/Duration_t.rst

This file was deleted.

4 changes: 2 additions & 2 deletions docs/fastdds/api_reference/rtps/common/Time_t/Time_t.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. rst-class:: api-ref

Time_t
--------------------------------
RTPS layer Time_t
-----------------

.. doxygenclass:: eprosima::fastdds::rtps::Time_t
:project: FastDDS
Expand Down
14 changes: 0 additions & 14 deletions docs/fastdds/api_reference/rtps/common/Time_t/const_values.rst

This file was deleted.

This file was deleted.

30 changes: 2 additions & 28 deletions docs/fastdds/api_reference/rtps/common/Time_t/operators.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. rst-class:: api-ref

Time_t Operators
--------------------------------
Time_t RTPS Operators
---------------------

.. doxygenfunction:: eprosima::fastdds::rtps::operator==(const Time_t &t1, const Time_t &t2)
:project: FastDDS
Expand Down Expand Up @@ -30,29 +30,3 @@ Time_t Operators
.. doxygenfunction:: eprosima::fastdds::rtps::operator-(const Time_t &ta, const Time_t &tb)
:project: FastDDS

.. doxygenfunction:: eprosima::fastdds::operator==(const Time_t &t1, const Time_t &t2)
:project: FastDDS

.. doxygenfunction:: eprosima::fastdds::operator!=(const Time_t &t1, const Time_t &t2)
:project: FastDDS

.. doxygenfunction:: eprosima::fastdds::operator<(const Time_t &t1, const Time_t &t2)
:project: FastDDS

.. doxygenfunction:: eprosima::fastdds::operator>(const Time_t &t1, const Time_t &t2)
:project: FastDDS

.. doxygenfunction:: eprosima::fastdds::operator<=(const Time_t &t1, const Time_t &t2)
:project: FastDDS

.. doxygenfunction:: eprosima::fastdds::operator>=(const Time_t &t1, const Time_t &t2)
:project: FastDDS

.. doxygenfunction:: eprosima::fastdds::operator<<(std::ostream &output, const Time_t &t)
:project: FastDDS

.. doxygenfunction:: eprosima::fastdds::operator+(const Time_t &ta, const Time_t &tb)
:project: FastDDS

.. doxygenfunction:: eprosima::fastdds::operator-(const Time_t &ta, const Time_t &tb)
:project: FastDDS
7 changes: 2 additions & 5 deletions docs/fastdds/api_reference/rtps/common/Time_t/time_toc.rst
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
.. _api_rtps_common_time_t:

Time_t
--------------------
RTPS Time_t
-----------

.. toctree::
:titlesonly:

/fastdds/api_reference/rtps/common/Time_t/const_values
/fastdds/api_reference/rtps/common/Time_t/defines
/fastdds/api_reference/rtps/common/Time_t/Duration_t
/fastdds/api_reference/rtps/common/Time_t/fastrtps_Time_t
/fastdds/api_reference/rtps/common/Time_t/operators
/fastdds/api_reference/rtps/common/Time_t/Time_t

0 comments on commit 5108bae

Please sign in to comment.