OpenDDS  Snapshot(2023/04/07-19:43)
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 223 of file TypeSupportImpl.h.

Constructor & Destructor Documentation

◆ TypeSupportInitializer()

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

Definition at line 224 of file TypeSupportImpl.h.

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

◆ ~TypeSupportInitializer()

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

Definition at line 230 of file TypeSupportImpl.h.

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

Member Data Documentation

◆ ts_

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

Definition at line 236 of file TypeSupportImpl.h.


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