TAO_EC_Auto_Command< T > Class Template Reference

Utility class which executes COMMAND in its destructor. More...

#include <EC_Lifetime_Utils_T.h>

Collaboration diagram for TAO_EC_Auto_Command< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_EC_Auto_Command (void)
 TAO_EC_Auto_Command (const T &command)
 ~TAO_EC_Auto_Command (void)
void set_command (const T &command)
void set_command (TAO_EC_Auto_Command< T > &auto_command)
void execute (void)
void allow_command (void)
void disallow_command (void)

Private Member Functions

 TAO_EC_Auto_Command (const TAO_EC_Auto_Command &)
TAO_EC_Auto_Commandoperator= (const TAO_EC_Auto_Command &)

Private Attributes

command_
int allow_command_

Detailed Description

template<class T>
class TAO_EC_Auto_Command< T >

Utility class which executes COMMAND in its destructor.

Template argument requirements:

Has void execute (ACE_ENV_SINGLE_ARG_DECL); method which can throw ONLY CORBA exceptions. Has default and copy constructors.


Constructor & Destructor Documentation

template<class T>
ACE_INLINE TAO_EC_Auto_Command< T >::TAO_EC_Auto_Command void   ) 
 

template<class T>
ACE_INLINE TAO_EC_Auto_Command< T >::TAO_EC_Auto_Command const T &  command  ) 
 

template<class T>
ACE_INLINE TAO_EC_Auto_Command< T >::~TAO_EC_Auto_Command void   ) 
 

template<class T>
TAO_EC_Auto_Command< T >::TAO_EC_Auto_Command const TAO_EC_Auto_Command< T > &   )  [private]
 


Member Function Documentation

template<class T>
ACE_INLINE void TAO_EC_Auto_Command< T >::allow_command void   ) 
 

template<class T>
ACE_INLINE void TAO_EC_Auto_Command< T >::disallow_command void   ) 
 

template<class T>
ACE_INLINE void TAO_EC_Auto_Command< T >::execute void   ) 
 

template<class T>
TAO_EC_Auto_Command& TAO_EC_Auto_Command< T >::operator= const TAO_EC_Auto_Command< T > &   )  [private]
 

template<class T>
ACE_INLINE void TAO_EC_Auto_Command< T >::set_command TAO_EC_Auto_Command< T > &  auto_command  ) 
 

template<class T>
ACE_INLINE void TAO_EC_Auto_Command< T >::set_command const T &  command  ) 
 


Member Data Documentation

template<class T>
int TAO_EC_Auto_Command< T >::allow_command_ [private]
 

template<class T>
T TAO_EC_Auto_Command< T >::command_ [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Nov 23 16:18:27 2005 for TAO_RTEvent by  doxygen 1.4.5