OpenDDS::DCPS::Transient_Kludge Class Reference

#include <Transient_Kludge.h>

List of all members.

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_Kludgeinstance ()
 Return a singleton instance of this class.

Private Attributes

bool enabled_
 The flag.


Detailed Description

Definition at line 29 of file Transient_Kludge.h.


Constructor & Destructor Documentation

ACE_INLINE OpenDDS::DCPS::Transient_Kludge::Transient_Kludge (  ) 

Definition at line 9 of file Transient_Kludge.inl.

00010   : enabled_(false)
00011 {
00012 }

ACE_INLINE OpenDDS::DCPS::Transient_Kludge::~Transient_Kludge (  ) 

Definition at line 15 of file Transient_Kludge.inl.

00016 {
00017 }


Member Function Documentation

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 }


Member Data Documentation

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().


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