00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
#ifndef _ENUM_PROP_TEST_DEVICE_IMPL_H_
00026
#define _ENUM_PROP_TEST_DEVICE_IMPL_H_
00027
00028
00029
#include <acsutil.h>
00030
00031
#include <baci.h>
00032
#include "enumpropTestDeviceS.h"
00033
#include "enumpropROImpl.h"
00034
#include "enumpropRWImpl.h"
00035
#include "baciCharacteristicComponentImpl.h"
00036
00037
NAMESPACE_USE(baci)
00038 NAMESPACE_USE(ENUMPROP_TEST)
00039
00040 class
enumpropTestDeviceImpl : public POA_ENUMPROP_TEST::enumpropTestDevice,
00041 public baci::CharacteristicComponentImpl
00042 {
00043
public:
00044
00045
enumpropTestDeviceImpl (
00046
const ACE_CString& name,
00047
maci::ContainerServices* containerServices);
00048
00049
00050
virtual ~
enumpropTestDeviceImpl(
void);
00051
00052
00053
00054
00055 ENUMPROP_TEST::ROStates_ptr currentState ();
00056
00057
00058
00059
00060
virtual ACSErr::Completion * enable ();
00061
00062
00063
00064
00065
virtual ACSErr::Completion * disable ();
00066
00067
00068
00069
00070
virtual ACSErr::Completion * diagnose ();
00071
00072
00073
00074
00075
virtual ACSErr::Completion * shutdown ();
00076
00077
00078
00079
00080
virtual ACSErr::Completion *
init ();
00081
00082
00083
00084
00085
virtual ACSErr::Completion * on ();
00086
00087
00088
00089
00090
virtual ACSErr::Completion * off ();
00091
00092 ENUMPROP_TEST::RWStates_ptr currentStateRW ();
00093
00094
void serverShutdown ();
00095
00096
private:
00097 ROEnumImpl<ACS_ENUM_T(ENUMPROP_TEST::States), POA_ENUMPROP_TEST::ROStates> *m_currentState;
00098 RWEnumImpl<ACS_ENUM_T(ENUMPROP_TEST::States), POA_ENUMPROP_TEST::RWStates> *m_currentStateRW;
00099 };
00100
00101
00102
#endif
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112