XBinder XML Runtime  XBinder Version 3.0.x
rtXmlpCppDecFuncs.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2003-2017 by 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  *****************************************************************************/
29 #ifndef _RTXMLPCPPDECFUNCS_H_
30 #define _RTXMLPCPPDECFUNCS_H_
31 
32 #include "rtxmlsrc/osrtxml.h"
33 #include "rtxmlsrc/rtXmlPull.h"
34 #include "rtxmlsrc/OSXSDComplexType.h"
35 #ifdef HAS_STL
36 #include "rtxsrc/rtxCppXmlSTLString.h"
37 EXTERNXML int rtXmlpCppDecSTLStrList (OSCTXT* pctxt, OSRTObjListClass* plist);
38 EXTERNXML int rtXmlpCppDecXmlStr (OSCTXT* pctxt, OSXMLSTLStringClass* outdata);
39 #endif
40 EXTERNXML int rtXmlpCppDecStrList (OSCTXT* pctxt, OSRTObjListClass* plist);
41 EXTERNXML int rtXmlpCppDecXmlStr (OSCTXT* pctxt, OSRTXMLString* outdata);
42 EXTERNXML int rtXmlpCppGetXmlnsAttrs (OSCTXT* pctxt, OSXSDComplexType* ptype);
43 
47 class EXTRTCLASS OSXMLStringListParser
48 {
49 private:
50  OSXMLDataCtxt dataCtxt;
51  OSCTXT* mpctxt;
52  OSBOOL mbInit; /* true if next has been called already */
53  const OSUTF8CHAR* inpdata; /* pointer to dataCtxt.mData.value where next
54  value begins (or whitespace prior to it).
55  If null, no more data is available.
56  Invalid until mbInit is true.
57  */
58 
59 public:
67  OSXMLStringListParser(OSCTXT* pctxt);
68 
82  int next(OSRTXMLString& value);
83 };
84 
85 #endif
Class enabling parsing of an XML Schema list into strings.
XML low-level C encode/decode functions.