XBinder XML Runtime  XBinder Version 3.0.x
rtSaxCppSimpleType.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  *****************************************************************************/
24 
28 #ifndef RTSAXCPPSIMPLETYPESAX_H
29 #define RTSAXCPPSIMPLETYPESAX_H
30 
31 #include "rtxmlsrc/osrtxml.h"
32 #include "rtxmlsrc/rtSaxCppParser.h"
33 
34 /**************************************************************/
35 /* */
36 /* simpleType */
37 /* */
38 /**************************************************************/
39 class EXTXMLCLASS OSXMLSimpleTypeHandler : public OSXMLDefaultHandler {
40 private:
41  OSRTMEMBUF mCurrElemValue;
42 public:
43  EXTXMLMETHOD OSXMLSimpleTypeHandler
44  (OSRTContext* pContext, const OSUTF8CHAR* elemName);
45  EXTXMLMETHOD ~OSXMLSimpleTypeHandler ();
46 
47  EXTXMLMETHOD virtual int startElement
48  (const OSUTF8CHAR* const uri,
49  const OSUTF8CHAR* const localname,
50  const OSUTF8CHAR* const qname,
51  const OSUTF8CHAR* const* attrs);
52 
53  EXTXMLMETHOD virtual int characters
54  (const OSUTF8CHAR* const chars, unsigned int length);
55 
56  EXTXMLMETHOD virtual int endElement
57  (const OSUTF8CHAR* const uri,
58  const OSUTF8CHAR* const localname,
59  const OSUTF8CHAR* const qname);
60 } ;
61 
62 #endif /* RTSAXCPPSIMPLETYPESAX_H */
63 
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.