OpcUaCanOpen
CANopen OPC-UA server
AbstractHardware.h
Go to the documentation of this file.
1 #ifndef __ABSRACTHARDWARE_H__
2 #define __ABSRACTHARDWARE_H__
3 
5 
6 namespace UserDevice {
7 
14  {
15  public:
17 
28  virtual InterfaceUserDataBase *createHardwareEntry(pUserDeviceStruct *parent, ::xsd::cxx::tree::type *conf,UaNode *blink,int code) = 0;
29  };
30 
37  template<class T,class P>
38  class DEVICE : public AbstractHardware {
39  public :
40  DEVICE() {};
41  ~DEVICE() {};
42 
51  createHardwareEntry(pUserDeviceStruct* parent, ::xsd::cxx::tree::type *conf,UaNode *blink,int code)
52  {
53  T *t = new T(parent,(P *)conf,blink,code);
54  return (InterfaceUserDataBase *)t;
55  }
56  };
57 }
58 #endif