XBinder XML Runtime  XBinder Version 3.0.x
rtSaxCppAny.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2003-2022 Objective Systems, Inc.
3  *
4  * This software is furnished under a license and may be used and copied
5  * only in accordance with the terms of such license and with the
6  * inclusion of the above copyright notice. This software or any other
7  * copies thereof may not be provided or otherwise made available to any
8  * other person. No title to and ownership of the software is hereby
9  * transferred.
10  *
11  * The information in this software is subject to change without notice
12  * and should not be construed as a commitment by Objective Systems, Inc.
13  *
14  * PROPRIETARY NOTICE
15  *
16  * This software is an unpublished work subject to a confidentiality agreement
17  * and is protected by copyright and trade secret law. Unauthorized copying,
18  * redistribution or other use of this work is prohibited.
19  *
20  * The above notice of copyright on this source code product does not indicate
21  * any actual or intended publication of such source code.
22  *
23  *****************************************************************************/
27 #ifndef _RTSAXCPPANY_H_
28 #define _RTSAXCPPANY_H_
29 
30 #include "rtxsrc/OSRTContext.h"
31 #include "rtxmlsrc/osrtxml.h"
32 #include "rtxmlsrc/rtSaxCppParser.h"
34 #ifndef ASN1RT
35 #include "rtxsrc/rtxCppXmlString.h"
36 #include "rtxmlsrc/OSXSDAnyTypeClass.h"
38 #endif
39 
40 class EXTXMLCLASS OSXMLAnyHandler : public OSXMLDefaultHandler {
41  private:
42  OSRTContext mEncCtxt;
43 #ifndef ASN1RT
44  OSRTXMLString* mpAnyMsgData;
45  OSXSDAnyTypeClass* mpAnyTypeMsgData;
46 #else
47  const OSUTF8CHAR** mppMsgData;
48 #endif
49  EXTXMLMETHOD void localInit (OSRTContext* pContext);
50  EXTXMLMETHOD OSBOOL isEmptyElement (const OSUTF8CHAR* qname);
51  EXTXMLMETHOD OSXMLAnyHandler& operator= (const OSXMLAnyHandler&);
52 
53  public:
54 #ifndef ASN1RT
55  EXTXMLMETHOD OSXMLAnyHandler
56  (OSXSDAnyTypeClass& msgData, OSRTContext* pContext, int level = 0);
57 
58  EXTXMLMETHOD OSXMLAnyHandler
59  (OSXSDAnyTypeClass& msgData, OSRTContext* pContext,
60  const OSUTF8CHAR* elemName);
61 
62  // xsd:any
63  EXTXMLMETHOD OSXMLAnyHandler
64  (OSRTXMLString& msgData, OSRTContext* pContext, int level = 0);
65 
66  EXTXMLMETHOD OSXMLAnyHandler
67  (OSRTXMLString& msgData, OSRTContext* pContext,
68  const OSUTF8CHAR* elemName);
69 #else
70  EXTXMLMETHOD OSXMLAnyHandler
71  (const OSUTF8CHAR** ppMsgData, OSRTContext* pContext, int level = 0);
72 
73  EXTXMLMETHOD OSXMLAnyHandler
74  (const OSUTF8CHAR** ppMsgData, OSRTContext* pContext,
75  const OSUTF8CHAR* elemName);
76 #endif
77  EXTXMLMETHOD ~OSXMLAnyHandler ();
78 
79  EXTXMLMETHOD virtual int startElement
80  (const OSUTF8CHAR* const uri,
81  const OSUTF8CHAR* const localname,
82  const OSUTF8CHAR* const qname,
83  const OSUTF8CHAR* const* attrs);
84 
85  EXTXMLMETHOD virtual int characters
86  (const OSUTF8CHAR* const chars, OSUINT32 length);
87 
88  EXTXMLMETHOD virtual int endElement
89  (const OSUTF8CHAR* const uri,
90  const OSUTF8CHAR* const localname,
91  const OSUTF8CHAR* const qname);
92 } ;
93 
94 #endif /* _RTSAXCPPANY_H_ */
95 
This file is deprecated.
virtual EXTXMLMETHOD int startElement(const OSUTF8CHAR *const uri, const OSUTF8CHAR *const localname, const OSUTF8CHAR *const qname, const OSUTF8CHAR *const *attrs)
Receive notification of the beginning of an element.
This class is derived from the SAX class DefaultHandler base class.
XML low-level C encode/decode functions.
virtual EXTXMLMETHOD int characters(const OSUTF8CHAR *const chars, unsigned int length)
Receive notification of character data.
virtual EXTXMLMETHOD int endElement(const OSUTF8CHAR *const uri, const OSUTF8CHAR *const localname, const OSUTF8CHAR *const qname)
Receive notification of the end of an element.