XBinder XML Runtime  XBinder Version 3.0.x
Public Member Functions | List of all members
OSXMLStringListParser Class Reference

Class enabling parsing of an XML Schema list into strings. More...

#include <rtXmlpCppDecFuncs.h>

Public Member Functions

 OSXMLStringListParser (OSCTXT *pctxt)
 Create a parser on the given context. More...
 
int next (OSRTXMLString &value)
 Assign the next string from the XML schema list to value. More...
 

Detailed Description

Class enabling parsing of an XML Schema list into strings.

Definition at line 47 of file rtXmlpCppDecFuncs.h.

Constructor & Destructor Documentation

◆ OSXMLStringListParser()

OSXMLStringListParser::OSXMLStringListParser ( OSCTXT *  pctxt)

Create a parser on the given context.

The OSXMLReader associated with the context is used to read the XML value.

Parameters
pctxtHolds state information and provides access to the input that is to be parsed.

Member Function Documentation

◆ next()

int OSXMLStringListParser::next ( OSRTXMLString &  value)

Assign the next string from the XML schema list to value.

To get all of the values from the list, call this function repeatedly until it returns zero or a negative value. After that, this object can no longer be used.

Parameters
valueReceives the next string value or empty string if there isn't one.
Returns
Return value indicates the result as follows: return < 0: error return == 0: no more strings; value is assigned empty return == 1: value is assigned the next string

The documentation for this class was generated from the following file: