diff options
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/LWFT/StatefulObject.h')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/LWFT/StatefulObject.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/TAO/orbsvcs/orbsvcs/LWFT/StatefulObject.h b/TAO/orbsvcs/orbsvcs/LWFT/StatefulObject.h new file mode 100644 index 00000000000..092f48d80c1 --- /dev/null +++ b/TAO/orbsvcs/orbsvcs/LWFT/StatefulObject.h @@ -0,0 +1,47 @@ +// -*- C++ -*- + +//============================================================================= +/** + * @file StatefulObject.h + * + * $Id$ + * + * @author Friedhelm Wolf (fwolf@dre.vanderbilt.edu) + */ +//============================================================================= + +#ifndef _STATEFUL_OBJECT_H_ +#define _STATEFUL_OBJECT_H_ + +#include "ssa_export.h" + +// forward declaration +namespace CORBA +{ + class Any; +}; + +/** + * @class StatefulObject + * + * @brief Abstract Base class for objects that have a set_state method. + * + * This class shields differences in how to disseminate state throughout + * the system (e.g. either by standard CORBA calls, AMI or DDS) from + * the state synchronization agent + */ +class SSA_Export StatefulObject +{ +public: + + /// ctor + StatefulObject (); + + /// dtor + virtual ~StatefulObject (); + + /// method to set the + virtual void set_state (const ::CORBA::Any & state_value) = 0; +}; + +#endif /* _STATEFUL_OBJECT_H_ */ |