1 #ifndef __CONTROLLEROBJECT_H__
2 #define __CONTROLLEROBJECT_H__
4 #include "uaobjecttypes.h"
5 #include "methodmanager.h"
6 #include "opcua_offnormalalarmtype.h"
11 class UaMethodGeneric;
12 class HardWareCommunicationInterface;
18 namespace CTA_Slc_Dict {
20 class InterfaceManager;
34 const UaNodeId& newNodeId,
const UaString& defaultLocaleId,
40 void setAlarm(
int onOff, std::string message,
int severity);
45 void addMethod(UaMethodGeneric* m_pMethod);
48 virtual UaStatus
beginCall(MethodManagerCallback* pCallback,
49 const ServiceContext& serviceContext, OpcUa_UInt32 callbackHandle,
50 MethodHandle* pMethodHandle,
const UaVariantArray& inputArguments);
54 UaStatus
call(UaMethod* ,
55 const UaVariantArray& ,
60 std::map<std::string, Tab>
mymap;
67 void setEvent(std::map<std::string, std::string> m_eventList);
74 void caseSet(std::string &commandString,std::string chemin, std::string element);
75 int caseGet(std::string commandString,std::string chemin, std::string element,UaVariantArray& outputArguments);
76 void buildResult(std::string resultString,UaVariantArray& outputArguments);
77 void buildCommand(std::string &commandString,
const UaVariantArray& inputArguments ,
int terminal,vector<int> index);
81 UaMethodGeneric* m_pMethod;
82 UaMethodGeneric* m_pMethodStop;
89 std::string m_address;
93 OpcUa::OffNormalAlarmType* m_pStateOffNormalAlarm;
94 std::map<std::string, std::string> m_eventList;