source: trunk/ETSI-Testsuites/ETSI_auto_IOT/adapter/src/libiot_codets.h @ 53

Last change on this file since 53 was 22, checked in by rings, 14 years ago
  • Property svn:executable set to *
File size: 2.6 KB
Line 
1#ifndef  LIBIOTCODETS_H
2#define  LIBIOTCODETS_H
3
4#include <t3devlib/t3devlib.h>
5
6namespace t3devlib {
7namespace gen {
8
9//
10// Implementation of subtypes defined in the module LibIot_TypesAndValues
11//
12
13// aliases (subtypes without restrictions)
14T3DEVLIB_BASIC_DEFINITION (LibUpperTester, EquipmentCommand, Charstring);
15T3DEVLIB_BASIC_DEFINITION (LibIot_TypesAndValues, IpAddress, Charstring);
16T3DEVLIB_BASIC_DEFINITION (LibIot_TypesAndValues, PortNumber, Unsigned);
17//
18  // Implementation of enumerated types (not handled by the generator yet)
19  //
20 
21  class FncRetCode : public t3devlib::Enum {
22  private:
23    static const char* msFncRetCodeModes[];
24  public:
25    FncRetCode() : Enum (msFncRetCodeModes) {}
26   
27    const char* GetModuleName() const { return "LibCommon_VerdictControl"; }
28    const char* GetTypeName() const   { return "FncRetCode"; }
29   
30    void Encode (Buffer& buffer) throw (EncodeError);
31    void Decode (Buffer& buffer) throw (DecodeError);
32  };
33 
34 
35  class IOTExecMode : public t3devlib::Enum {
36  private:
37    static const char* msExecModes[];
38  public:
39    IOTExecMode() : Enum (msExecModes) {}
40   
41    const char* GetModuleName() const { return "LibIot_TypesAndValues"; }
42    const char* GetTypeName() const   { return "IOTExecMode"; }
43   
44    void Encode (Buffer& buffer) throw (EncodeError);
45    void Decode (Buffer& buffer) throw (DecodeError);
46  };
47 
48 
49  class IOTVerdictType : public t3devlib::Enum {
50  private:
51    static const char* msVerdictTypes[];
52  public:
53    IOTVerdictType() : Enum (msVerdictTypes) {}
54   
55    const char* GetModuleName() const { return "LibIot_TypesAndValues"; }
56    const char* GetTypeName() const   { return "IOTVerdictType"; }
57   
58    void Encode (Buffer& buffer) throw (EncodeError);
59    void Decode (Buffer& buffer) throw (DecodeError);
60  };
61
62  class RecordMode : public t3devlib::Enum {
63  private:
64    static const char* msRecordModes[];
65  public:
66    RecordMode() : Enum (msRecordModes) {}
67   
68    const char* GetModuleName() const { return "LibIot_TypesAndValues"; }
69    const char* GetTypeName() const   { return "RecordMode"; }
70   
71    void Encode (Buffer& buffer) throw (EncodeError);
72    void Decode (Buffer& buffer) throw (DecodeError);
73  };
74
75  class ProtocolFilter : public t3devlib::Enum {
76  private:
77    static const char* msProtocolFilterModes[];
78  public:
79    ProtocolFilter() : Enum (msProtocolFilterModes) {}
80   
81    const char* GetModuleName() const { return "LibIot_TypesAndValues"; }
82    const char* GetTypeName() const   { return "ProtocolFilter"; }
83   
84    void Encode (Buffer& buffer) throw (EncodeError);
85    void Decode (Buffer& buffer) throw (DecodeError);
86  };
87
88   
89}} //namespaces
90
91#endif
Note: See TracBrowser for help on using the repository browser.