home *** CD-ROM | disk | FTP | other *** search
/ ftp.muug.mb.ca / 2014.06.ftp.muug.mb.ca.tar / ftp.muug.mb.ca / pub / openh323.tar.gz / openh323.tar / openh323 / include / x880.h < prev   
C/C++ Source or Header  |  2004-06-22  |  9KB  |  408 lines

  1. //
  2. // x880.h
  3. //
  4. // Code automatically generated by asnparse.
  5. //
  6.  
  7. #if ! H323_DISABLE_X880
  8.  
  9. #ifndef __X880_H
  10. #define __X880_H
  11.  
  12. #ifdef P_USE_PRAGMA
  13. #pragma interface
  14. #endif
  15.  
  16. #include <ptclib/asner.h>
  17.  
  18. //
  19. // ROS
  20. //
  21.  
  22. class X880_Invoke;
  23. class X880_ReturnResult;
  24. class X880_ReturnError;
  25. class X880_Reject;
  26.  
  27. class X880_ROS : public PASN_Choice
  28. {
  29. #ifndef PASN_LEANANDMEAN
  30.     PCLASSINFO(X880_ROS, PASN_Choice);
  31. #endif
  32.   public:
  33.     X880_ROS(unsigned tag = 0, TagClass tagClass = UniversalTagClass);
  34.  
  35.     enum Choices {
  36.       e_invoke,
  37.       e_returnResult,
  38.       e_returnError,
  39.       e_reject
  40.     };
  41.  
  42. #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
  43.     operator X880_Invoke &() const;
  44. #else
  45.     operator X880_Invoke &();
  46.     operator const X880_Invoke &() const;
  47. #endif
  48. #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
  49.     operator X880_ReturnResult &() const;
  50. #else
  51.     operator X880_ReturnResult &();
  52.     operator const X880_ReturnResult &() const;
  53. #endif
  54. #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
  55.     operator X880_ReturnError &() const;
  56. #else
  57.     operator X880_ReturnError &();
  58.     operator const X880_ReturnError &() const;
  59. #endif
  60. #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
  61.     operator X880_Reject &() const;
  62. #else
  63.     operator X880_Reject &();
  64.     operator const X880_Reject &() const;
  65. #endif
  66.  
  67.     BOOL CreateObject();
  68.     PObject * Clone() const;
  69. };
  70.  
  71.  
  72. //
  73. // GeneralProblem
  74. //
  75.  
  76. class X880_GeneralProblem : public PASN_Integer
  77. {
  78. #ifndef PASN_LEANANDMEAN
  79.     PCLASSINFO(X880_GeneralProblem, PASN_Integer);
  80. #endif
  81.   public:
  82.     X880_GeneralProblem(unsigned tag = UniversalInteger, TagClass tagClass = UniversalTagClass);
  83.  
  84.     X880_GeneralProblem & operator=(int v);
  85.     X880_GeneralProblem & operator=(unsigned v);
  86.     PObject * Clone() const;
  87. };
  88.  
  89.  
  90. //
  91. // InvokeProblem
  92. //
  93.  
  94. class X880_InvokeProblem : public PASN_Integer
  95. {
  96. #ifndef PASN_LEANANDMEAN
  97.     PCLASSINFO(X880_InvokeProblem, PASN_Integer);
  98. #endif
  99.   public:
  100.     X880_InvokeProblem(unsigned tag = UniversalInteger, TagClass tagClass = UniversalTagClass);
  101.  
  102.     X880_InvokeProblem & operator=(int v);
  103.     X880_InvokeProblem & operator=(unsigned v);
  104.     PObject * Clone() const;
  105. };
  106.  
  107.  
  108. //
  109. // ReturnResultProblem
  110. //
  111.  
  112. class X880_ReturnResultProblem : public PASN_Integer
  113. {
  114. #ifndef PASN_LEANANDMEAN
  115.     PCLASSINFO(X880_ReturnResultProblem, PASN_Integer);
  116. #endif
  117.   public:
  118.     X880_ReturnResultProblem(unsigned tag = UniversalInteger, TagClass tagClass = UniversalTagClass);
  119.  
  120.     X880_ReturnResultProblem & operator=(int v);
  121.     X880_ReturnResultProblem & operator=(unsigned v);
  122.     PObject * Clone() const;
  123. };
  124.  
  125.  
  126. //
  127. // ReturnErrorProblem
  128. //
  129.  
  130. class X880_ReturnErrorProblem : public PASN_Integer
  131. {
  132. #ifndef PASN_LEANANDMEAN
  133.     PCLASSINFO(X880_ReturnErrorProblem, PASN_Integer);
  134. #endif
  135.   public:
  136.     X880_ReturnErrorProblem(unsigned tag = UniversalInteger, TagClass tagClass = UniversalTagClass);
  137.  
  138.     X880_ReturnErrorProblem & operator=(int v);
  139.     X880_ReturnErrorProblem & operator=(unsigned v);
  140.     PObject * Clone() const;
  141. };
  142.  
  143.  
  144. //
  145. // RejectProblem
  146. //
  147.  
  148. class X880_RejectProblem : public PASN_Integer
  149. {
  150. #ifndef PASN_LEANANDMEAN
  151.     PCLASSINFO(X880_RejectProblem, PASN_Integer);
  152. #endif
  153.   public:
  154.     X880_RejectProblem(unsigned tag = UniversalInteger, TagClass tagClass = UniversalTagClass);
  155.  
  156.     X880_RejectProblem & operator=(int v);
  157.     X880_RejectProblem & operator=(unsigned v);
  158.     PObject * Clone() const;
  159. };
  160.  
  161.  
  162. //
  163. // InvokeId
  164. //
  165.  
  166. class X880_InvokeId : public PASN_Integer
  167. {
  168. #ifndef PASN_LEANANDMEAN
  169.     PCLASSINFO(X880_InvokeId, PASN_Integer);
  170. #endif
  171.   public:
  172.     X880_InvokeId(unsigned tag = UniversalInteger, TagClass tagClass = UniversalTagClass);
  173.  
  174.     X880_InvokeId & operator=(int v);
  175.     X880_InvokeId & operator=(unsigned v);
  176.     PObject * Clone() const;
  177. };
  178.  
  179.  
  180. //
  181. // Code
  182. //
  183.  
  184. class X880_Code : public PASN_Choice
  185. {
  186. #ifndef PASN_LEANANDMEAN
  187.     PCLASSINFO(X880_Code, PASN_Choice);
  188. #endif
  189.   public:
  190.     X880_Code(unsigned tag = 0, TagClass tagClass = UniversalTagClass);
  191.  
  192.     enum Choices {
  193.       e_local,
  194.       e_global
  195.     };
  196.  
  197.     BOOL CreateObject();
  198.     PObject * Clone() const;
  199. };
  200.  
  201.  
  202. //
  203. // ReturnResult_result
  204. //
  205.  
  206. class X880_ReturnResult_result : public PASN_Sequence
  207. {
  208. #ifndef PASN_LEANANDMEAN
  209.     PCLASSINFO(X880_ReturnResult_result, PASN_Sequence);
  210. #endif
  211.   public:
  212.     X880_ReturnResult_result(unsigned tag = UniversalSequence, TagClass tagClass = UniversalTagClass);
  213.  
  214.     X880_Code m_opcode;
  215.     PASN_OctetString m_result;
  216.  
  217.     PINDEX GetDataLength() const;
  218.     BOOL Decode(PASN_Stream & strm);
  219.     void Encode(PASN_Stream & strm) const;
  220. #ifndef PASN_NOPRINTON
  221.     void PrintOn(ostream & strm) const;
  222. #endif
  223.     Comparison Compare(const PObject & obj) const;
  224.     PObject * Clone() const;
  225. };
  226.  
  227.  
  228. //
  229. // Reject_problem
  230. //
  231.  
  232. class X880_GeneralProblem;
  233. class X880_InvokeProblem;
  234. class X880_ReturnResultProblem;
  235. class X880_ReturnErrorProblem;
  236.  
  237. class X880_Reject_problem : public PASN_Choice
  238. {
  239. #ifndef PASN_LEANANDMEAN
  240.     PCLASSINFO(X880_Reject_problem, PASN_Choice);
  241. #endif
  242.   public:
  243.     X880_Reject_problem(unsigned tag = 0, TagClass tagClass = UniversalTagClass);
  244.  
  245.     enum Choices {
  246.       e_general,
  247.       e_invoke,
  248.       e_returnResult,
  249.       e_returnError
  250.     };
  251.  
  252. #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
  253.     operator X880_GeneralProblem &() const;
  254. #else
  255.     operator X880_GeneralProblem &();
  256.     operator const X880_GeneralProblem &() const;
  257. #endif
  258. #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
  259.     operator X880_InvokeProblem &() const;
  260. #else
  261.     operator X880_InvokeProblem &();
  262.     operator const X880_InvokeProblem &() const;
  263. #endif
  264. #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
  265.     operator X880_ReturnResultProblem &() const;
  266. #else
  267.     operator X880_ReturnResultProblem &();
  268.     operator const X880_ReturnResultProblem &() const;
  269. #endif
  270. #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
  271.     operator X880_ReturnErrorProblem &() const;
  272. #else
  273.     operator X880_ReturnErrorProblem &();
  274.     operator const X880_ReturnErrorProblem &() const;
  275. #endif
  276.  
  277.     BOOL CreateObject();
  278.     PObject * Clone() const;
  279. };
  280.  
  281.  
  282. //
  283. // Invoke
  284. //
  285.  
  286. class X880_Invoke : public PASN_Sequence
  287. {
  288. #ifndef PASN_LEANANDMEAN
  289.     PCLASSINFO(X880_Invoke, PASN_Sequence);
  290. #endif
  291.   public:
  292.     X880_Invoke(unsigned tag = UniversalSequence, TagClass tagClass = UniversalTagClass);
  293.  
  294.     enum OptionalFields {
  295.       e_linkedId,
  296.       e_argument
  297.     };
  298.  
  299.     PASN_Integer m_invokeId;
  300.     X880_InvokeId m_linkedId;
  301.     X880_Code m_opcode;
  302.     PASN_OctetString m_argument;
  303.  
  304.     PINDEX GetDataLength() const;
  305.     BOOL Decode(PASN_Stream & strm);
  306.     void Encode(PASN_Stream & strm) const;
  307. #ifndef PASN_NOPRINTON
  308.     void PrintOn(ostream & strm) const;
  309. #endif
  310.     Comparison Compare(const PObject & obj) const;
  311.     PObject * Clone() const;
  312. };
  313.  
  314.  
  315. //
  316. // ReturnResult
  317. //
  318.  
  319. class X880_ReturnResult : public PASN_Sequence
  320. {
  321. #ifndef PASN_LEANANDMEAN
  322.     PCLASSINFO(X880_ReturnResult, PASN_Sequence);
  323. #endif
  324.   public:
  325.     X880_ReturnResult(unsigned tag = UniversalSequence, TagClass tagClass = UniversalTagClass);
  326.  
  327.     enum OptionalFields {
  328.       e_result
  329.     };
  330.  
  331.     X880_InvokeId m_invokeId;
  332.     X880_ReturnResult_result m_result;
  333.  
  334.     PINDEX GetDataLength() const;
  335.     BOOL Decode(PASN_Stream & strm);
  336.     void Encode(PASN_Stream & strm) const;
  337. #ifndef PASN_NOPRINTON
  338.     void PrintOn(ostream & strm) const;
  339. #endif
  340.     Comparison Compare(const PObject & obj) const;
  341.     PObject * Clone() const;
  342. };
  343.  
  344.  
  345. //
  346. // ReturnError
  347. //
  348.  
  349. class X880_ReturnError : public PASN_Sequence
  350. {
  351. #ifndef PASN_LEANANDMEAN
  352.     PCLASSINFO(X880_ReturnError, PASN_Sequence);
  353. #endif
  354.   public:
  355.     X880_ReturnError(unsigned tag = UniversalSequence, TagClass tagClass = UniversalTagClass);
  356.  
  357.     enum OptionalFields {
  358.       e_parameter
  359.     };
  360.  
  361.     X880_InvokeId m_invokeId;
  362.     X880_Code m_errorCode;
  363.     PASN_OctetString m_parameter;
  364.  
  365.     PINDEX GetDataLength() const;
  366.     BOOL Decode(PASN_Stream & strm);
  367.     void Encode(PASN_Stream & strm) const;
  368. #ifndef PASN_NOPRINTON
  369.     void PrintOn(ostream & strm) const;
  370. #endif
  371.     Comparison Compare(const PObject & obj) const;
  372.     PObject * Clone() const;
  373. };
  374.  
  375.  
  376. //
  377. // Reject
  378. //
  379.  
  380. class X880_Reject : public PASN_Sequence
  381. {
  382. #ifndef PASN_LEANANDMEAN
  383.     PCLASSINFO(X880_Reject, PASN_Sequence);
  384. #endif
  385.   public:
  386.     X880_Reject(unsigned tag = UniversalSequence, TagClass tagClass = UniversalTagClass);
  387.  
  388.     X880_InvokeId m_invokeId;
  389.     X880_Reject_problem m_problem;
  390.  
  391.     PINDEX GetDataLength() const;
  392.     BOOL Decode(PASN_Stream & strm);
  393.     void Encode(PASN_Stream & strm) const;
  394. #ifndef PASN_NOPRINTON
  395.     void PrintOn(ostream & strm) const;
  396. #endif
  397.     Comparison Compare(const PObject & obj) const;
  398.     PObject * Clone() const;
  399. };
  400.  
  401.  
  402. #endif // __X880_H
  403.  
  404. #endif // if ! H323_DISABLE_X880
  405.  
  406.  
  407. // End of x880.h
  408.