RTI Routing Service  Version 6.0.0
 All Data Structures Files Functions Typedefs Enumerations Enumerator Groups Pages
rti::routing::TypeInfo Class Reference

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)
 
TypeInfotype_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)
 
TypeInfotype_representation_kind (TypeRepresentationKind the_type_representation_kind)
 Sets the type representation kind.
 
TypeRepresentationType type_representation () const
 Getter (see setter with the same name)
 
TypeInfotype_representation (TypeRepresentationType the_type_representation)
 Sets the type representation value.
 

Detailed Description

Definition of the type information associated with a RTI Routing Service stream.

See Also
StreamInfo.

Member Typedef Documentation

typedef RTI_RoutingServiceTypeRepresentation rti::routing::TypeInfo::TypeRepresentationType

Type representation defined as an opaque pointer.

How this opaque is interpreted depends on the TypeRepresentationKind.

Constructor & Destructor Documentation

rti::routing::TypeInfo::TypeInfo ( std::string &  the_type_name,
TypeRepresentationKind  the_type_representation_kind = TypeRepresentationKind::DYNAMIC_TYPE 
)
inline

Constructs a TypeInfo with the minimum required information.

Parameters
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().

Member Function Documentation

std::string rti::routing::TypeInfo::type_name ( ) const
inline

Getter (see setter with the same name)

Referenced by rti::routing::StreamInfo::StreamInfo(), type_name(), and TypeInfo().

TypeInfo& rti::routing::TypeInfo::type_name ( const std::string &  the_type_name)
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().

TypeRepresentationKind rti::routing::TypeInfo::type_representation_kind ( ) const
inline

Getter (see setter with the same name)

Referenced by TypeInfo().

TypeInfo& rti::routing::TypeInfo::type_representation_kind ( TypeRepresentationKind  the_type_representation_kind)
inline

Sets the type representation kind.

This member indicates how to interpret the type representation.

See Also
TypeRepresentationKind
TypeRepresentationType rti::routing::TypeInfo::type_representation ( ) const
inline

Getter (see setter with the same name)

TypeInfo& rti::routing::TypeInfo::type_representation ( TypeRepresentationType  the_type_representation)
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.


RTI Routing Service Version 6.0.0 Copyright © Sun Mar 3 2019 Real-Time Innovations, Inc