OpenDDS::DCPS::TypeSupportImpl Class Reference

#include <TypeSupportImpl.h>

Inheritance diagram for OpenDDS::DCPS::TypeSupportImpl:
Inheritance graph
[legend]
Collaboration diagram for OpenDDS::DCPS::TypeSupportImpl:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TypeSupportImpl ()
virtual ~TypeSupportImpl ()
virtual const MetaStructgetMetaStructForType ()=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

Detailed Description

Definition at line 31 of file TypeSupportImpl.h.


Constructor & Destructor Documentation

OpenDDS::DCPS::TypeSupportImpl::TypeSupportImpl (  )  [inline]

Definition at line 34 of file TypeSupportImpl.h.

00034 {}

OpenDDS::DCPS::TypeSupportImpl::~TypeSupportImpl (  )  [virtual]

Definition at line 19 of file TypeSupportImpl.cpp.

00020 {}


Member Function Documentation

virtual const char* OpenDDS::DCPS::TypeSupportImpl::default_type_name (  )  const [private, pure virtual]

Referenced by get_type_name(), and register_type().

Here is the caller graph for this function:

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 }

Here is the call graph for this function:

virtual const MetaStruct& OpenDDS::DCPS::TypeSupportImpl::getMetaStructForType (  )  [pure virtual]

Referenced by OpenDDS::DCPS::DataWriterImpl::filter_out(), and OpenDDS::DCPS::MultiTopicDataReaderBase::metaStructFor().

Here is the caller graph for this function:

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 }

Here is the call graph for this function:

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 }


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1