PTLib Version 2.12.9

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rfc1155.h
Go to the documentation of this file.
1 //
2 // rfc1155.h
3 //
4 // Code automatically generated by asnparse.
5 //
6
7 #ifdef P_SNMP
8
9 #ifndef PTLIB_RFC1155_H
10 #define PTLIB_RFC1155_H
11
12 #ifdef P_USE_PRAGMA
13 #pragma interface
14 #endif
15
16 #include <ptclib/asner.h>
17
18 //
19 // ObjectName
20 //
21
22 class PRFC1155_ObjectName : public PASN_ObjectId
23 {
24 #ifndef PASN_LEANANDMEAN
25 PCLASSINFO(PRFC1155_ObjectName, PASN_ObjectId);
26 #endif
27 public:
28 PRFC1155_ObjectName(unsigned tag = UniversalObjectId, TagClass tagClass = UniversalTagClass);
29
30 PObject * Clone() const;
31 };
32
33
34 //
35 // ObjectSyntax
36 //
37
38 class PRFC1155_SimpleSyntax;
39 class PRFC1155_ApplicationSyntax;
40
41 class PRFC1155_ObjectSyntax : public PASN_Choice
42 {
43 #ifndef PASN_LEANANDMEAN
44 PCLASSINFO(PRFC1155_ObjectSyntax, PASN_Choice);
45 #endif
46 public:
47 PRFC1155_ObjectSyntax(unsigned tag = 0, TagClass tagClass = UniversalTagClass);
48
49 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
50 operator PRFC1155_SimpleSyntax &() const;
51 #else
52 operator PRFC1155_SimpleSyntax &();
53 operator const PRFC1155_SimpleSyntax &() const;
54 #endif
55 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
56 operator PRFC1155_ApplicationSyntax &() const;
57 #else
58 operator PRFC1155_ApplicationSyntax &();
59 operator const PRFC1155_ApplicationSyntax &() const;
60 #endif
61
62 PBoolean CreateObject();
63 PObject * Clone() const;
64 };
65
66
67 //
68 // SimpleSyntax
69 //
70
71 class PRFC1155_SimpleSyntax : public PASN_Choice
72 {
73 #ifndef PASN_LEANANDMEAN
74 PCLASSINFO(PRFC1155_SimpleSyntax, PASN_Choice);
75 #endif
76 public:
77 PRFC1155_SimpleSyntax(unsigned tag = 0, TagClass tagClass = UniversalTagClass);
78
79 enum Choices {
80 e_number = 2,
81 e_string = 4,
82 e_object = 6,
83 e_empty = 5
84 };
85
86 PBoolean CreateObject();
87 PObject * Clone() const;
88 };
89
90
91 //
92 // ApplicationSyntax
93 //
94
95 class PRFC1155_NetworkAddress;
96 class PRFC1155_Counter;
97 class PRFC1155_Gauge;
98 class PRFC1155_TimeTicks;
99 class PRFC1155_Opaque;
100
101 class PRFC1155_ApplicationSyntax : public PASN_Choice
102 {
103 #ifndef PASN_LEANANDMEAN
104 PCLASSINFO(PRFC1155_ApplicationSyntax, PASN_Choice);
105 #endif
106 public:
107 PRFC1155_ApplicationSyntax(unsigned tag = 0, TagClass tagClass = UniversalTagClass);
108
109 enum Choices {
110 e_counter = 1,
111 e_gauge,
112 e_ticks,
113 e_arbitrary
114 };
115
116 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
117 operator PRFC1155_NetworkAddress &() const;
118 #else
119 operator PRFC1155_NetworkAddress &();
120 operator const PRFC1155_NetworkAddress &() const;
121 #endif
122 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
123 operator PRFC1155_Counter &() const;
124 #else
125 operator PRFC1155_Counter &();
126 operator const PRFC1155_Counter &() const;
127 #endif
128 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
129 operator PRFC1155_Gauge &() const;
130 #else
131 operator PRFC1155_Gauge &();
132 operator const PRFC1155_Gauge &() const;
133 #endif
134 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
135 operator PRFC1155_TimeTicks &() const;
136 #else
137 operator PRFC1155_TimeTicks &();
138 operator const PRFC1155_TimeTicks &() const;
139 #endif
140 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
141 operator PRFC1155_Opaque &() const;
142 #else
143 operator PRFC1155_Opaque &();
144 operator const PRFC1155_Opaque &() const;
145 #endif
146
147 PBoolean CreateObject();
148 PObject * Clone() const;
149 };
150
151
152 //
153 // NetworkAddress
154 //
155
156 class PRFC1155_IpAddress;
157
158 class PRFC1155_NetworkAddress : public PASN_Choice
159 {
160 #ifndef PASN_LEANANDMEAN
161 PCLASSINFO(PRFC1155_NetworkAddress, PASN_Choice);
162 #endif
163 public:
164 PRFC1155_NetworkAddress(unsigned tag = 0, TagClass tagClass = UniversalTagClass);
165
166 enum Choices {
167 e_internet
168 };
169
170 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
171 operator PRFC1155_IpAddress &() const;
172 #else
173 operator PRFC1155_IpAddress &();
174 operator const PRFC1155_IpAddress &() const;
175 #endif
176
177 PBoolean CreateObject();
178 PObject * Clone() const;
179 };
180
181
182 //
183 // IpAddress
184 //
185
186 class PRFC1155_IpAddress : public PASN_OctetString
187 {
188 #ifndef PASN_LEANANDMEAN
189 PCLASSINFO(PRFC1155_IpAddress, PASN_OctetString);
190 #endif
191 public:
192 PRFC1155_IpAddress(unsigned tag = 0, TagClass tagClass = ApplicationTagClass);
193
194 PRFC1155_IpAddress(const char * v);
195 PRFC1155_IpAddress(const PString & v);
196 PRFC1155_IpAddress(const PBYTEArray & v);
197
198 PRFC1155_IpAddress & operator=(const char * v);
199 PRFC1155_IpAddress & operator=(const PString & v);
200 PRFC1155_IpAddress & operator=(const PBYTEArray & v);
201 PObject * Clone() const;
202 };
203
204
205 //
206 // Counter
207 //
208
209 class PRFC1155_Counter : public PASN_Integer
210 {
211 #ifndef PASN_LEANANDMEAN
212 PCLASSINFO(PRFC1155_Counter, PASN_Integer);
213 #endif
214 public:
215 PRFC1155_Counter(unsigned tag = 1, TagClass tagClass = ApplicationTagClass);
216
217 PRFC1155_Counter & operator=(int v);
218 PRFC1155_Counter & operator=(unsigned v);
219 PObject * Clone() const;
220 };
221
222
223 //
224 // Gauge
225 //
226
227 class PRFC1155_Gauge : public PASN_Integer
228 {
229 #ifndef PASN_LEANANDMEAN
230 PCLASSINFO(PRFC1155_Gauge, PASN_Integer);
231 #endif
232 public:
233 PRFC1155_Gauge(unsigned tag = 2, TagClass tagClass = ApplicationTagClass);
234
235 PRFC1155_Gauge & operator=(int v);
236 PRFC1155_Gauge & operator=(unsigned v);
237 PObject * Clone() const;
238 };
239
240
241 //
242 // TimeTicks
243 //
244
245 class PRFC1155_TimeTicks : public PASN_Integer
246 {
247 #ifndef PASN_LEANANDMEAN
248 PCLASSINFO(PRFC1155_TimeTicks, PASN_Integer);
249 #endif
250 public:
251 PRFC1155_TimeTicks(unsigned tag = 3, TagClass tagClass = ApplicationTagClass);
252
253 PRFC1155_TimeTicks & operator=(int v);
254 PRFC1155_TimeTicks & operator=(unsigned v);
255 PObject * Clone() const;
256 };
257
258
259 //
260 // Opaque
261 //
262
263 class PRFC1155_Opaque : public PASN_OctetString
264 {
265 #ifndef PASN_LEANANDMEAN
266 PCLASSINFO(PRFC1155_Opaque, PASN_OctetString);
267 #endif
268 public:
269 PRFC1155_Opaque(unsigned tag = 4, TagClass tagClass = ApplicationTagClass);
270
271 PRFC1155_Opaque(const char * v);
272 PRFC1155_Opaque(const PString & v);
273 PRFC1155_Opaque(const PBYTEArray & v);
274
275 PRFC1155_Opaque & operator=(const char * v);
276 PRFC1155_Opaque & operator=(const PString & v);
277 PRFC1155_Opaque & operator=(const PBYTEArray & v);
278 PObject * Clone() const;
279 };
280
281
282 #endif // PTLIB_RFC1155_H
283
284 #endif // if ! H323_DISABLE_PRFC1155
285
286
287 // End Of File ///////////////////////////////////////////////////////////////