#include <TypeSupportImpl.h>
Public Member Functions | |
TypeSupportImpl () | |
virtual | ~TypeSupportImpl () |
virtual const MetaStruct & | getMetaStructForType ()=0 |
virtual DDS::ReturnCode_t | register_type (DDS::DomainParticipant_ptr participant, const char *type_name) |
virtual DDS::ReturnCode_t | unregister_type (DDS::DomainParticipant_ptr participant, const char *type_name) |
virtual char * | get_type_name () |
Private Member Functions | |
virtual const char * | default_type_name () const =0 |
Definition at line 31 of file TypeSupportImpl.h.
OpenDDS::DCPS::TypeSupportImpl::TypeSupportImpl | ( | ) | [inline] |
Definition at line 34 of file TypeSupportImpl.h.
OpenDDS::DCPS::TypeSupportImpl::~TypeSupportImpl | ( | ) | [virtual] |
Definition at line 19 of file TypeSupportImpl.cpp.
virtual const char* OpenDDS::DCPS::TypeSupportImpl::default_type_name | ( | ) | const [private, pure virtual] |
char * OpenDDS::DCPS::TypeSupportImpl::get_type_name | ( | ) | [virtual] |
Implements DDS::TypeSupport.
Definition at line 43 of file TypeSupportImpl.cpp.
References default_type_name().
00044 { 00045 CORBA::String_var type = default_type_name(); 00046 return type._retn(); 00047 }
virtual const MetaStruct& OpenDDS::DCPS::TypeSupportImpl::getMetaStructForType | ( | ) | [pure virtual] |
Referenced by OpenDDS::DCPS::DataWriterImpl::filter_out(), and OpenDDS::DCPS::MultiTopicDataReaderBase::metaStructFor().
DDS::ReturnCode_t OpenDDS::DCPS::TypeSupportImpl::register_type | ( | DDS::DomainParticipant_ptr | participant, | |
const char * | type_name | |||
) | [virtual] |
Definition at line 23 of file TypeSupportImpl.cpp.
References default_type_name(), and Registered_Data_Types.
00025 { 00026 const char* const type = 00027 (!type_name || !type_name[0]) ? default_type_name() : type_name; 00028 return Registered_Data_Types->register_type(participant, type, this); 00029 }
DDS::ReturnCode_t OpenDDS::DCPS::TypeSupportImpl::unregister_type | ( | DDS::DomainParticipant_ptr | participant, | |
const char * | type_name | |||
) | [virtual] |
Definition at line 32 of file TypeSupportImpl.cpp.
References Registered_Data_Types, and DDS::RETCODE_BAD_PARAMETER.
00034 { 00035 if (type_name == 0 || type_name[0] == '\0') { 00036 return DDS::RETCODE_BAD_PARAMETER; 00037 } else { 00038 return Registered_Data_Types->unregister_type(participant, type_name, this); 00039 } 00040 }