4 // Code automatically generated by asnparse.
8 #pragma implementation "h4508.h"
17 #if ! H323_DISABLE_H4508
21 #ifndef PASN_NOPRINTON
22 const static PASN_Names Names_H4508_NameOperations
[]={
33 H4508_NameOperations::H4508_NameOperations(unsigned tag
, PASN_Object::TagClass tagClass
)
34 : PASN_Enumeration(tag
, tagClass
, 3, FALSE
35 #ifndef PASN_NOPRINTON
36 ,(const PASN_Names
*)Names_H4508_NameOperations
,4
43 H4508_NameOperations
& H4508_NameOperations::operator=(unsigned v
)
50 PObject
* H4508_NameOperations::Clone() const
52 #ifndef PASN_LEANANDMEAN
53 PAssert(IsClass(H4508_NameOperations::Class()), PInvalidCast
);
55 return new H4508_NameOperations(*this);
60 #ifndef PASN_NOPRINTON
61 const static PASN_Names Names_H4508_Name
[]={
62 {"namePresentationAllowed",0}
63 ,{"namePresentationRestricted",1}
64 ,{"nameNotAvailable",2}
71 H4508_Name::H4508_Name(unsigned tag
, PASN_Object::TagClass tagClass
)
72 : PASN_Choice(tag
, tagClass
, 3, TRUE
73 #ifndef PASN_NOPRINTON
74 ,(const PASN_Names
*)Names_H4508_Name
,3
81 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
82 H4508_Name::operator H4508_NamePresentationAllowed
&() const
84 H4508_Name::operator H4508_NamePresentationAllowed
&()
86 #ifndef PASN_LEANANDMEAN
87 PAssert(PIsDescendant(PAssertNULL(choice
), H4508_NamePresentationAllowed
), PInvalidCast
);
89 return *(H4508_NamePresentationAllowed
*)choice
;
93 H4508_Name::operator const H4508_NamePresentationAllowed
&() const
96 #ifndef PASN_LEANANDMEAN
97 PAssert(PIsDescendant(PAssertNULL(choice
), H4508_NamePresentationAllowed
), PInvalidCast
);
99 return *(H4508_NamePresentationAllowed
*)choice
;
103 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
104 H4508_Name::operator H4508_NamePresentationRestricted
&() const
106 H4508_Name::operator H4508_NamePresentationRestricted
&()
108 #ifndef PASN_LEANANDMEAN
109 PAssert(PIsDescendant(PAssertNULL(choice
), H4508_NamePresentationRestricted
), PInvalidCast
);
111 return *(H4508_NamePresentationRestricted
*)choice
;
115 H4508_Name::operator const H4508_NamePresentationRestricted
&() const
118 #ifndef PASN_LEANANDMEAN
119 PAssert(PIsDescendant(PAssertNULL(choice
), H4508_NamePresentationRestricted
), PInvalidCast
);
121 return *(H4508_NamePresentationRestricted
*)choice
;
125 BOOL
H4508_Name::CreateObject()
128 case e_namePresentationAllowed
:
129 choice
= new H4508_NamePresentationAllowed();
131 case e_namePresentationRestricted
:
132 choice
= new H4508_NamePresentationRestricted();
134 case e_nameNotAvailable
:
135 choice
= new PASN_Null();
144 PObject
* H4508_Name::Clone() const
146 #ifndef PASN_LEANANDMEAN
147 PAssert(IsClass(H4508_Name::Class()), PInvalidCast
);
149 return new H4508_Name(*this);
154 #ifndef PASN_NOPRINTON
155 const static PASN_Names Names_H4508_NamePresentationAllowed
[]={
161 // NamePresentationAllowed
164 H4508_NamePresentationAllowed::H4508_NamePresentationAllowed(unsigned tag
, PASN_Object::TagClass tagClass
)
165 : PASN_Choice(tag
, tagClass
, 2, TRUE
166 #ifndef PASN_NOPRINTON
167 ,(const PASN_Names
*)Names_H4508_NamePresentationAllowed
,2
174 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
175 H4508_NamePresentationAllowed::operator H4508_SimpleName
&() const
177 H4508_NamePresentationAllowed::operator H4508_SimpleName
&()
179 #ifndef PASN_LEANANDMEAN
180 PAssert(PIsDescendant(PAssertNULL(choice
), H4508_SimpleName
), PInvalidCast
);
182 return *(H4508_SimpleName
*)choice
;
186 H4508_NamePresentationAllowed::operator const H4508_SimpleName
&() const
189 #ifndef PASN_LEANANDMEAN
190 PAssert(PIsDescendant(PAssertNULL(choice
), H4508_SimpleName
), PInvalidCast
);
192 return *(H4508_SimpleName
*)choice
;
196 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
197 H4508_NamePresentationAllowed::operator H4508_ExtendedName
&() const
199 H4508_NamePresentationAllowed::operator H4508_ExtendedName
&()
201 #ifndef PASN_LEANANDMEAN
202 PAssert(PIsDescendant(PAssertNULL(choice
), H4508_ExtendedName
), PInvalidCast
);
204 return *(H4508_ExtendedName
*)choice
;
208 H4508_NamePresentationAllowed::operator const H4508_ExtendedName
&() const
211 #ifndef PASN_LEANANDMEAN
212 PAssert(PIsDescendant(PAssertNULL(choice
), H4508_ExtendedName
), PInvalidCast
);
214 return *(H4508_ExtendedName
*)choice
;
218 BOOL
H4508_NamePresentationAllowed::CreateObject()
222 choice
= new H4508_SimpleName();
224 case e_extendedName
:
225 choice
= new H4508_ExtendedName();
234 PObject
* H4508_NamePresentationAllowed::Clone() const
236 #ifndef PASN_LEANANDMEAN
237 PAssert(IsClass(H4508_NamePresentationAllowed::Class()), PInvalidCast
);
239 return new H4508_NamePresentationAllowed(*this);
244 #ifndef PASN_NOPRINTON
245 const static PASN_Names Names_H4508_NamePresentationRestricted
[]={
248 ,{"restrictedNull",2}
252 // NamePresentationRestricted
255 H4508_NamePresentationRestricted::H4508_NamePresentationRestricted(unsigned tag
, PASN_Object::TagClass tagClass
)
256 : PASN_Choice(tag
, tagClass
, 3, TRUE
257 #ifndef PASN_NOPRINTON
258 ,(const PASN_Names
*)Names_H4508_NamePresentationRestricted
,3
265 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
266 H4508_NamePresentationRestricted::operator H4508_SimpleName
&() const
268 H4508_NamePresentationRestricted::operator H4508_SimpleName
&()
270 #ifndef PASN_LEANANDMEAN
271 PAssert(PIsDescendant(PAssertNULL(choice
), H4508_SimpleName
), PInvalidCast
);
273 return *(H4508_SimpleName
*)choice
;
277 H4508_NamePresentationRestricted::operator const H4508_SimpleName
&() const
280 #ifndef PASN_LEANANDMEAN
281 PAssert(PIsDescendant(PAssertNULL(choice
), H4508_SimpleName
), PInvalidCast
);
283 return *(H4508_SimpleName
*)choice
;
287 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
288 H4508_NamePresentationRestricted::operator H4508_ExtendedName
&() const
290 H4508_NamePresentationRestricted::operator H4508_ExtendedName
&()
292 #ifndef PASN_LEANANDMEAN
293 PAssert(PIsDescendant(PAssertNULL(choice
), H4508_ExtendedName
), PInvalidCast
);
295 return *(H4508_ExtendedName
*)choice
;
299 H4508_NamePresentationRestricted::operator const H4508_ExtendedName
&() const
302 #ifndef PASN_LEANANDMEAN
303 PAssert(PIsDescendant(PAssertNULL(choice
), H4508_ExtendedName
), PInvalidCast
);
305 return *(H4508_ExtendedName
*)choice
;
309 BOOL
H4508_NamePresentationRestricted::CreateObject()
313 choice
= new H4508_SimpleName();
315 case e_extendedName
:
316 choice
= new H4508_ExtendedName();
318 case e_restrictedNull
:
319 choice
= new PASN_Null();
328 PObject
* H4508_NamePresentationRestricted::Clone() const
330 #ifndef PASN_LEANANDMEAN
331 PAssert(IsClass(H4508_NamePresentationRestricted::Class()), PInvalidCast
);
333 return new H4508_NamePresentationRestricted(*this);
341 H4508_SimpleName::H4508_SimpleName(unsigned tag
, PASN_Object::TagClass tagClass
)
342 : PASN_OctetString(tag
, tagClass
)
344 SetConstraints(PASN_Object::FixedConstraint
, 1, 50);
348 H4508_SimpleName::H4508_SimpleName(const char * v
)
354 H4508_SimpleName::H4508_SimpleName(const PString
& v
)
360 H4508_SimpleName::H4508_SimpleName(const PBYTEArray
& v
)
366 H4508_SimpleName
& H4508_SimpleName::operator=(const char * v
)
373 H4508_SimpleName
& H4508_SimpleName::operator=(const PString
& v
)
380 H4508_SimpleName
& H4508_SimpleName::operator=(const PBYTEArray
& v
)
387 PObject
* H4508_SimpleName::Clone() const
389 #ifndef PASN_LEANANDMEAN
390 PAssert(IsClass(H4508_SimpleName::Class()), PInvalidCast
);
392 return new H4508_SimpleName(*this);
400 H4508_ExtendedName::H4508_ExtendedName(unsigned tag
, PASN_Object::TagClass tagClass
)
401 : PASN_BMPString(tag
, tagClass
)
403 SetConstraints(PASN_Object::FixedConstraint
, 1, 256);
407 H4508_ExtendedName
& H4508_ExtendedName::operator=(const char * v
)
414 H4508_ExtendedName
& H4508_ExtendedName::operator=(const PString
& v
)
421 H4508_ExtendedName
& H4508_ExtendedName::operator=(const PWORDArray
& v
)
428 H4508_ExtendedName
& H4508_ExtendedName::operator=(const PASN_BMPString
& v
)
435 PObject
* H4508_ExtendedName::Clone() const
437 #ifndef PASN_LEANANDMEAN
438 PAssert(IsClass(H4508_ExtendedName::Class()), PInvalidCast
);
440 return new H4508_ExtendedName(*this);
444 #endif // if ! H323_DISABLE_H4508