2121
2222namespace livekit {
2323
24- // / @brief Encoding used to interpret a data track schema definition.
24+ // / Encoding used to interpret a data track schema definition.
2525// /
2626// / Identifies the interface definition language the schema is written in (for
2727// / example, a `.proto` file for @ref DataTrackSchemaEncoding::Protobuf), which
@@ -35,32 +35,32 @@ namespace livekit {
3535// / @ref DataTrackSchemaEncoding::custom.
3636class DataTrackSchemaEncoding {
3737public:
38- // / @brief Well-known schema encodings.
38+ // / Well-known schema encodings.
3939 enum WellKnown {
40- // / @brief Protocol Buffer IDL.
40+ // / Protocol Buffer IDL.
4141 Protobuf,
42- // / @brief FlatBuffer IDL.
42+ // / FlatBuffer IDL.
4343 Flatbuffer,
44- // / @brief ROS 1 Message.
44+ // / ROS 1 Message.
4545 Ros1Msg,
46- // / @brief ROS 2 Message.
46+ // / ROS 2 Message.
4747 Ros2Msg,
48- // / @brief ROS 2 IDL.
48+ // / ROS 2 IDL.
4949 Ros2Idl,
50- // / @brief OMG IDL.
50+ // / OMG IDL.
5151 OmgIdl,
52- // / @brief JSON Schema.
52+ // / JSON Schema.
5353 JsonSchema,
54- // / @brief Another well-known encoding not known to this client version.
54+ // / Another well-known encoding not known to this client version.
5555 Other,
5656 };
5757
58- // / @brief Construct a well-known encoding.
58+ // / Construct a well-known encoding.
5959 // /
6060 // / The constructor is intentionally implicit for the common well-known case.
6161 DataTrackSchemaEncoding (WellKnown wellKnown) : well_known_(wellKnown) {}
6262
63- // / @brief Construct a custom, application-defined encoding.
63+ // / Construct a custom, application-defined encoding.
6464 // /
6565 // / Prefer a well-known encoding wherever one applies. The identifier must be
6666 // / non-empty and no longer than 25 characters.
@@ -73,17 +73,17 @@ class DataTrackSchemaEncoding {
7373 return encoding;
7474 }
7575
76- // / @brief Check whether this is a custom encoding.
76+ // / Check whether this is a custom encoding.
7777 // /
7878 // / @return true if this is a custom encoding rather than a well-known one.
7979 bool isCustom () const { return !custom_.empty (); }
8080
81- // / @brief Get the well-known encoding.
81+ // / Get the well-known encoding.
8282 // /
8383 // / @return The well-known encoding. Only meaningful when @ref isCustom is false.
8484 WellKnown wellKnown () const { return well_known_; }
8585
86- // / @brief Get the custom identifier.
86+ // / Get the custom identifier.
8787 // /
8888 // / @return The custom identifier. Empty when @ref isCustom is false.
8989 const std::string& customIdentifier () const { return custom_; }
@@ -103,7 +103,7 @@ inline bool operator==(const DataTrackSchemaEncoding& a, const DataTrackSchemaEn
103103}
104104inline bool operator !=(const DataTrackSchemaEncoding& a, const DataTrackSchemaEncoding& b) { return !(a == b); }
105105
106- // / @brief Encoding used for frames sent on a data track.
106+ // / Encoding used for frames sent on a data track.
107107// /
108108// / The serialization format of the frame bytes (for example,
109109// / @ref DataTrackFrameEncoding::Protobuf); the structure of those bytes is
@@ -117,32 +117,32 @@ inline bool operator!=(const DataTrackSchemaEncoding& a, const DataTrackSchemaEn
117117// / @ref DataTrackFrameEncoding::custom.
118118class DataTrackFrameEncoding {
119119public:
120- // / @brief Well-known frame encodings.
120+ // / Well-known frame encodings.
121121 enum WellKnown {
122- // / @brief ROS 1, described by a Ros1Msg schema.
122+ // / ROS 1, described by a Ros1Msg schema.
123123 Ros1,
124- // / @brief CDR, described by a Ros2Msg, Ros2Idl, or OmgIdl schema.
124+ // / CDR, described by a Ros2Msg, Ros2Idl, or OmgIdl schema.
125125 Cdr,
126- // / @brief Protocol Buffer, described by a Protobuf schema.
126+ // / Protocol Buffer, described by a Protobuf schema.
127127 Protobuf,
128- // / @brief FlatBuffer, described by a Flatbuffer schema.
128+ // / FlatBuffer, described by a Flatbuffer schema.
129129 Flatbuffer,
130- // / @brief CBOR, self-describing.
130+ // / CBOR, self-describing.
131131 Cbor,
132- // / @brief MessagePack, self-describing.
132+ // / MessagePack, self-describing.
133133 Msgpack,
134- // / @brief JSON, self-describing or described by a JsonSchema schema.
134+ // / JSON, self-describing or described by a JsonSchema schema.
135135 Json,
136- // / @brief Another well-known encoding not known to this client version.
136+ // / Another well-known encoding not known to this client version.
137137 Other,
138138 };
139139
140- // / @brief Construct a well-known encoding.
140+ // / Construct a well-known encoding.
141141 // /
142142 // / The constructor is intentionally implicit for the common well-known case.
143143 DataTrackFrameEncoding (WellKnown wellKnown) : well_known_(wellKnown) {}
144144
145- // / @brief Construct a custom, application-defined encoding.
145+ // / Construct a custom, application-defined encoding.
146146 // /
147147 // / Prefer a well-known encoding wherever one applies. The identifier must be
148148 // / non-empty and no longer than 25 characters.
@@ -155,17 +155,17 @@ class DataTrackFrameEncoding {
155155 return encoding;
156156 }
157157
158- // / @brief Check whether this is a custom encoding.
158+ // / Check whether this is a custom encoding.
159159 // /
160160 // / @return true if this is a custom encoding rather than a well-known one.
161161 bool isCustom () const { return !custom_.empty (); }
162162
163- // / @brief Get the well-known encoding.
163+ // / Get the well-known encoding.
164164 // /
165165 // / @return The well-known encoding. Only meaningful when @ref isCustom is false.
166166 WellKnown wellKnown () const { return well_known_; }
167167
168- // / @brief Get the custom identifier.
168+ // / Get the custom identifier.
169169 // /
170170 // / @return The custom identifier. Empty when @ref isCustom is false.
171171 const std::string& customIdentifier () const { return custom_; }
@@ -185,16 +185,16 @@ inline bool operator==(const DataTrackFrameEncoding& a, const DataTrackFrameEnco
185185}
186186inline bool operator !=(const DataTrackFrameEncoding& a, const DataTrackFrameEncoding& b) { return !(a == b); }
187187
188- // / @brief Uniquely identifies a data track schema.
188+ // / Uniquely identifies a data track schema.
189189// /
190190// / A compound identifier with two components: a name and an encoding. Two IDs
191191// / are equal only if both components match; the same name with a different
192192// / encoding refers to a distinct schema.
193193struct DataTrackSchemaId {
194- // / @brief Name component of the schema identifier.
194+ // / Name component of the schema identifier.
195195 std::string name;
196196
197- // / @brief Encoding of the schema definition.
197+ // / Encoding of the schema definition.
198198 DataTrackSchemaEncoding encoding = DataTrackSchemaEncoding::Other;
199199};
200200
0 commit comments