|
LiveKit C++ Client SDK v1.9.0
Real-time audio/video/data SDK for C++
|
Encoding used to interpret a data track schema definition. More...
#include <data_track_schema.h>
Public Types | |
| enum | WellKnown { Protobuf , Flatbuffer , Ros1Msg , Ros2Msg , Ros2Idl , OmgIdl , JsonSchema , Other } |
| Well-known schema encodings. More... | |
Public Member Functions | |
| DataTrackSchemaEncoding (WellKnown well_known) | |
| Construct a well-known encoding. | |
| bool | isCustom () const |
| Check whether this is a custom encoding. | |
| WellKnown | wellKnown () const |
| Get the well-known encoding. | |
| const std::string & | customIdentifier () const |
| Get the custom identifier. | |
Static Public Member Functions | |
| static DataTrackSchemaEncoding | custom (std::string identifier) |
| Construct a custom, application-defined encoding. | |
Encoding used to interpret a data track schema definition.
Identifies the interface definition language the schema is written in (for example, a .proto file for DataTrackSchemaEncoding::Protobuf), which in turn dictates the wire format of the frames the schema describes.
Almost all schemas use a well-known encoding, which converts implicitly:
For the uncommon case of an encoding outside the well-known set, use DataTrackSchemaEncoding::custom.
|
inline |
Construct a well-known encoding.
The constructor is intentionally implicit for the common well-known case.
| well_known | Well-known schema encoding. |
|
inlinestatic |
Construct a custom, application-defined encoding.
Prefer a well-known encoding wherever one applies. The identifier must be non-empty and no longer than 25 characters.
| identifier | Custom encoding identifier. |
|
inline |
Get the custom identifier.
|
inline |
Check whether this is a custom encoding.
|
inline |
Get the well-known encoding.