TAO_RTEvent  2.0.8
Public Member Functions | Private Member Functions | Private Attributes
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 (void); method which can throw ONLY CORBA exceptions. Has default and copy constructors.


Constructor & Destructor Documentation

template<class T >
TAO_EC_Auto_Command< T >::TAO_EC_Auto_Command ( void  )
template<class T>
TAO_EC_Auto_Command< T >::TAO_EC_Auto_Command ( const T &  command)
template<class T >
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 >
void TAO_EC_Auto_Command< T >::allow_command ( void  )
template<class T >
void TAO_EC_Auto_Command< T >::disallow_command ( void  )
template<class T >
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>
void TAO_EC_Auto_Command< T >::set_command ( const T &  command)
template<class T>
void TAO_EC_Auto_Command< T >::set_command ( TAO_EC_Auto_Command< T > &  auto_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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines