Skip to content

Commit 79d9c19

Browse files
Add missing doxygen of public API
Signed-off-by: Juan Lopez Fernandez <juanlopez@eprosima.com>
1 parent 4588279 commit 79d9c19

3 files changed

Lines changed: 56 additions & 14 deletions

File tree

ddsenabler/include/ddsenabler/CallbackSet.hpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,19 @@ namespace ddsenabler {
2828
*/
2929
struct DdsCallbacks
3030
{
31+
//! Callback for notifying the reception of DDS types
3132
participants::DdsTypeNotification type_notification{nullptr};
33+
34+
//! Callback for notifying the reception of DDS topics
3235
participants::DdsTopicNotification topic_notification{nullptr};
36+
37+
//! Callback for notifying the reception of DDS data
3338
participants::DdsDataNotification data_notification{nullptr};
39+
40+
//! Callback for requesting information of a DDS type
3441
participants::DdsTypeQuery type_query{nullptr};
42+
43+
//! Callback for requesting information of a DDS topic
3544
participants::DdsTopicQuery topic_query{nullptr};
3645
};
3746

@@ -40,7 +49,10 @@ struct DdsCallbacks
4049
*/
4150
struct CallbackSet
4251
{
52+
//! Callback executed when consuming log messages
4353
participants::DdsLogFunc log{nullptr};
54+
55+
//! DDS related callbacks
4456
DdsCallbacks dds;
4557
};
4658

ddsenabler/include/ddsenabler/dds_enabler_runner.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ namespace ddsenabler {
3232
/**
3333
* @brief Create a DDS Enabler instance from a configuration file path.
3434
*
35-
* @param configuration_path Path to the configuration file.
36-
* @param callbacks Set of callbacks to be used by the DDS Enabler.
37-
* @param enabler Output parameter to hold the created DDS Enabler instance.
35+
* @param [in] configuration_path Path to the configuration file.
36+
* @param [in] callbacks Set of callbacks to be used by the DDS Enabler.
37+
* @param [out] enabler Output parameter to hold the created DDS Enabler instance.
3838
* @return true if the DDS Enabler was created successfully, false otherwise.
3939
*/
4040
DDSENABLER_DllAPI
@@ -45,9 +45,9 @@ bool create_dds_enabler(
4545
/**
4646
* @brief Create a DDS Enabler instance from a configuration object.
4747
*
48-
* @param configuration DDS Enabler configuration object.
49-
* @param callbacks Set of callbacks to be used by the DDS Enabler.
50-
* @param enabler Output parameter to hold the created DDS Enabler instance.
48+
* @param [in] configuration DDS Enabler configuration object.
49+
* @param [in] callbacks Set of callbacks to be used by the DDS Enabler.
50+
* @param [out] enabler Output parameter to hold the created DDS Enabler instance.
5151
* @return true if the DDS Enabler was created successfully, false otherwise.
5252
*/
5353
DDSENABLER_DllAPI

ddsenabler_participants/include/ddsenabler_participants/CBCallbacks.hpp

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ namespace participants {
2828

2929
/**
3030
* DdsLogFunc - callback executed when consuming log messages
31+
*
32+
* @param [in] file_name Name of the file where the log was generated
33+
* @param [in] line_no Line number in the file where the log was generated
34+
* @param [in] func_name Name of the function where the log was generated
35+
* @param [in] category Category of the log message
36+
* @param [in] msg Log message content
3137
*/
3238
typedef void (* DdsLogFunc)(
3339
const char* file_name,
@@ -38,6 +44,12 @@ typedef void (* DdsLogFunc)(
3844

3945
/**
4046
* DdsTypeNotification - callback for notifying the reception of DDS types
47+
*
48+
* @param [in] type_name Name of the received type
49+
* @param [in] serialized_type Serialized type in IDL format
50+
* @param [in] serialized_type_internal Serialized type in internal format
51+
* @param [in] serialized_type_internal_size Size of the serialized type in internal format
52+
* @param [in] data_placeholder JSON data placeholder
4153
*/
4254
typedef void (* DdsTypeNotification)(
4355
const char* type_name,
@@ -48,6 +60,10 @@ typedef void (* DdsTypeNotification)(
4860

4961
/**
5062
* DdsTopicNotification - callback for notifying the reception of DDS topics
63+
*
64+
* @param [in] topic_name Name of the received topic
65+
* @param [in] type_name Name of the type associated with the topic
66+
* @param [in] serialized_qos Serialized Quality of Service (QoS) of the topic
5167
*/
5268
typedef void (* DdsTopicNotification)(
5369
const char* topic_name,
@@ -56,28 +72,42 @@ typedef void (* DdsTopicNotification)(
5672

5773
/**
5874
* DdsDataNotification - callback for notifying the reception of DDS data
75+
*
76+
* @param [in] topic_name Name of the topic from which the data was received
77+
* @param [in] json JSON representation of the data
78+
* @param [in] publish_time Time (nanoseconds since epoch) when the data was published
5979
*/
6080
typedef void (* DdsDataNotification)(
6181
const char* topic_name,
6282
const char* json,
6383
int64_t publish_time);
6484

65-
/**
66-
* DdsTopicQuery - callback for requesting information (type and QoS) of a DDS topic
67-
*/
68-
typedef bool (* DdsTopicQuery)(
69-
const char* topic_name,
70-
std::string& type_name,
71-
std::string& serialized_qos);
72-
7385
/**
7486
* DdsTypeQuery - callback for requesting information (serialized description and size) of a DDS type
87+
*
88+
* @param [in] type_name Name of the type to query
89+
* @param [out] serialized_type_internal Pointer to the serialized type in internal format
90+
* @param [out] serialized_type_internal_size Size of the serialized type in internal format
91+
* @return \c true if the type was found and the information was retrieved successfully, \c false otherwise
7592
*/
7693
typedef bool (* DdsTypeQuery)(
7794
const char* type_name,
7895
std::unique_ptr<const unsigned char []>& serialized_type_internal,
7996
uint32_t& serialized_type_internal_size);
8097

98+
/**
99+
* DdsTopicQuery - callback for requesting information (type and QoS) of a DDS topic
100+
*
101+
* @param [in] topic_name Name of the topic to query
102+
* @param [out] type_name Name of the type associated with the topic
103+
* @param [out] serialized_qos Serialized Quality of Service (QoS) of the topic
104+
* @return \c true if the topic was found and the information was retrieved successfully, \c false otherwise
105+
*/
106+
typedef bool (* DdsTopicQuery)(
107+
const char* topic_name,
108+
std::string& type_name,
109+
std::string& serialized_qos);
110+
81111
} /* namespace participants */
82112
} /* namespace ddsenabler */
83113
} /* namespace eprosima */

0 commit comments

Comments
 (0)