OpenDDS  Snapshot(2023/04/28-20:55)
Public Member Functions | Public Attributes | List of all members
OpenDDS::DCPS::TypeSupportInitializer< T > Struct Template Reference

#include <TypeSupportImpl.h>

Public Member Functions

 TypeSupportInitializer ()
 
 ~TypeSupportInitializer ()
 

Public Attributes

T::_var_type ts_
 

Detailed Description

template<typename T>
struct OpenDDS::DCPS::TypeSupportInitializer< T >

Definition at line 225 of file TypeSupportImpl.h.

Constructor & Destructor Documentation

◆ TypeSupportInitializer()

template<typename T >
OpenDDS::DCPS::TypeSupportInitializer< T >::TypeSupportInitializer ( )
inline

Definition at line 226 of file TypeSupportImpl.h.

227  : ts_(new T)
228  {
229  ts_->register_type(0, "");
230  }

◆ ~TypeSupportInitializer()

template<typename T >
OpenDDS::DCPS::TypeSupportInitializer< T >::~TypeSupportInitializer ( )
inline

Definition at line 232 of file TypeSupportImpl.h.

233  {
234  T* const t = dynamic_cast<T*>(ts_.in());
235  ts_->unregister_type(0, t ? t->name() : 0);
236  }

Member Data Documentation

◆ ts_

template<typename T >
T::_var_type OpenDDS::DCPS::TypeSupportInitializer< T >::ts_

Definition at line 238 of file TypeSupportImpl.h.


The documentation for this struct was generated from the following file: