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 char * get_type_name ()

Private Member Functions

virtual const char * default_type_name () const =0

Private Attributes

CORBA::String_var type_name_

Detailed Description

Definition at line 27 of file TypeSupportImpl.h.


Constructor & Destructor Documentation

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

Definition at line 30 of file TypeSupportImpl.h.

00030 {}

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

Definition at line 17 of file TypeSupportImpl.cpp.

00018 {}


Member Function Documentation

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

Implemented in OpenDDS::DCPS::TypeSupportImpl_T< MessageType >.

Referenced by get_type_name().

char * OpenDDS::DCPS::TypeSupportImpl::get_type_name (  )  [virtual]

Definition at line 35 of file TypeSupportImpl.cpp.

References default_type_name(), CORBA::string_dup(), and type_name_.

Referenced by register_type().

00036 {
00037   if (type_name_.in() == 0) {
00038     return CORBA::string_dup(default_type_name());
00039   } else {
00040     return CORBA::string_dup(type_name_.in());
00041   }
00042 }

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

Implemented in OpenDDS::DCPS::TypeSupportImpl_T< MessageType >.

Referenced by OpenDDS::DCPS::DataWriterImpl::filter_out().

DDS::ReturnCode_t OpenDDS::DCPS::TypeSupportImpl::register_type ( DDS::DomainParticipant_ptr  participant,
const char *  type_name 
) [virtual]

Definition at line 21 of file TypeSupportImpl.cpp.

References get_type_name(), Registered_Data_Types, and type_name_.

00023 {
00024   if (type_name == 0 || type_name[0] == '\0') {
00025     this->type_name_ = this->get_type_name();
00026   } else {
00027     this->type_name_ = type_name;
00028   }
00029 
00030   return Registered_Data_Types->register_type(participant,
00031                                               this->type_name_.in(), this);
00032 }


Member Data Documentation

CORBA::String_var OpenDDS::DCPS::TypeSupportImpl::type_name_ [private]

Definition at line 46 of file TypeSupportImpl.h.

Referenced by get_type_name(), and register_type().


The documentation for this class was generated from the following files:
Generated on Fri Feb 12 20:06:40 2016 for OpenDDS by  doxygen 1.4.7