RTI Routing Service
Version 6.0.0
|
Definition of the type information associated with a RTI Routing Service stream. More...
#include <TypeInfo.hpp>
Inherits NativeValueType< TypeInfo >.
Public Types | |
typedef RTI_RoutingServiceTypeRepresentation | TypeRepresentationType |
Type representation defined as an opaque pointer. | |
Public Member Functions | |
TypeInfo (std::string &the_type_name, TypeRepresentationKind the_type_representation_kind=TypeRepresentationKind::DYNAMIC_TYPE) | |
Constructs a TypeInfo with the minimum required information. | |
std::string | type_name () const |
Getter (see setter with the same name) | |
TypeInfo & | type_name (const std::string &the_type_name) |
Sets the registered name of the type associated with the data. | |
TypeRepresentationKind | type_representation_kind () const |
Getter (see setter with the same name) | |
TypeInfo & | type_representation_kind (TypeRepresentationKind the_type_representation_kind) |
Sets the type representation kind. | |
TypeRepresentationType | type_representation () const |
Getter (see setter with the same name) | |
TypeInfo & | type_representation (TypeRepresentationType the_type_representation) |
Sets the type representation value. | |
Definition of the type information associated with a RTI Routing Service stream.
typedef RTI_RoutingServiceTypeRepresentation rti::routing::TypeInfo::TypeRepresentationType |
Type representation defined as an opaque pointer.
How this opaque is interpreted depends on the TypeRepresentationKind.
|
inline |
Constructs a TypeInfo with the minimum required information.
the_type_name | <<in>> Registered name of the type associated with the data. |
the_type_representation_kind | <<in>> Indicates the representation of the object that describes the type. Default: TypeRepresentationKind::DYNAMIC_TYPE. |
References type_name(), and type_representation_kind().
|
inline |
Getter (see setter with the same name)
Referenced by rti::routing::StreamInfo::StreamInfo(), type_name(), and TypeInfo().
|
inline |
Sets the registered name of the type associated with the data.
RTI Routing Service uses the type name to provide the right type information to StreamReader and StreamWriter. Namely, a type match is performed by comparing this type name with the value specified in the tag <registered_type_name> within the <input> and <output> tags.
References type_name().
|
inline |
Getter (see setter with the same name)
Referenced by TypeInfo().
|
inline |
Sets the type representation kind.
This member indicates how to interpret the type representation.
|
inline |
Getter (see setter with the same name)
|
inline |
Sets the type representation value.
This member is defined as an opaque pointer that can hold any type representation. How to interpret this pointer is determined by the TypeRepresentationKind, which shall be consistent with the object set in this member.