#include <Transient_Kludge.h>
Public Member Functions | |
Transient_Kludge () | |
~Transient_Kludge () | |
void | enable () |
Turn on enabled_ flag. | |
void | disable () |
Turn off enabled_ flag. | |
bool | is_enabled () |
Accessor of enable flag. | |
Static Public Member Functions | |
static Transient_Kludge * | instance () |
Return a singleton instance of this class. | |
Private Attributes | |
bool | enabled_ |
The flag. |
Definition at line 29 of file Transient_Kludge.h.
ACE_INLINE OpenDDS::DCPS::Transient_Kludge::Transient_Kludge | ( | ) |
ACE_INLINE OpenDDS::DCPS::Transient_Kludge::~Transient_Kludge | ( | ) |
ACE_INLINE void OpenDDS::DCPS::Transient_Kludge::disable | ( | ) |
Turn off enabled_ flag.
Definition at line 28 of file Transient_Kludge.inl.
References enabled_.
00029 { 00030 enabled_ = false; 00031 }
ACE_INLINE void OpenDDS::DCPS::Transient_Kludge::enable | ( | ) |
Turn on enabled_ flag.
Definition at line 21 of file Transient_Kludge.inl.
References enabled_.
00022 { 00023 enabled_ = true; 00024 }
OpenDDS::DCPS::Transient_Kludge * OpenDDS::DCPS::Transient_Kludge::instance | ( | ) | [static] |
Return a singleton instance of this class.
Definition at line 18 of file Transient_Kludge.cpp.
00019 { 00020 // Hide the template instantiation to prevent multiple instances 00021 // from being created. 00022 00023 return ACE_Singleton<Transient_Kludge, ACE_SYNCH_MUTEX>::instance(); 00024 }
ACE_INLINE bool OpenDDS::DCPS::Transient_Kludge::is_enabled | ( | ) |
Accessor of enable flag.
Definition at line 35 of file Transient_Kludge.inl.
References enabled_.
00036 { 00037 return enabled_; 00038 }
bool OpenDDS::DCPS::Transient_Kludge::enabled_ [private] |
The flag.
Definition at line 49 of file Transient_Kludge.h.
Referenced by disable(), enable(), and is_enabled().