XBinder XML Runtime  XBinder Version 3.0.x
rtSaxCppAnyType.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2003-2018 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 _RTSAXCPPANYTYPE_H_
28 #define _RTSAXCPPANYTYPE_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"
37 #endif
38 
39 class EXTERNXML OSXMLAnyTypeHandler : public OSXMLDefaultHandler {
40  private:
41  OSRTContext mEncCtxt;
42  OSXSDAnyTypeClass* mpAnyTypeMsgData;
43  void localInit (OSRTContext* pContext);
44  OSBOOL isEmptyElement (const OSUTF8CHAR* qname);
45  OSXMLAnyTypeHandler& operator= (const OSXMLAnyTypeHandler&);
46 
47  public:
49  (OSXSDAnyTypeClass& msgData, OSRTContext* pContext, int level = 0);
50 
52  (OSXSDAnyTypeClass& msgData, OSRTContext* pContext,
53  const OSUTF8CHAR* elemName);
54 
56 
57  virtual int startElement
58  (const OSUTF8CHAR* const uri,
59  const OSUTF8CHAR* const localname,
60  const OSUTF8CHAR* const qname,
61  const OSUTF8CHAR* const* attrs);
62 
63  virtual int characters
64  (const OSUTF8CHAR* const chars, OSUINT32 length);
65 
66  virtual int endElement
67  (const OSUTF8CHAR* const uri,
68  const OSUTF8CHAR* const localname,
69  const OSUTF8CHAR* const qname);
70 } ;
71 
72 #endif /* _RTSAXCPPANYTYPE_H_ */
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.