Planeshift
Public Member Functions | Protected Member Functions

psXMLString Class Reference

#include <psxmlparser.h>

List of all members.

Public Member Functions

size_t FindNextTag (size_t start)
int FindTag (const char *tagName, int start=0)
size_t GetTag (int start, psXMLTag &tag)
size_t GetTagSection (int start, const char *tagName, psXMLString &tagSection)
size_t GetWithinTagSection (int start, const char *tagName, csString &value)
 GetWithinTagSection return a csString containing the text in a tag section.
size_t GetWithinTagSection (int start, const char *tagName, int &value)
size_t GetWithinTagSection (int start, const char *tagName, double &value)
size_t GetWithinTagSection (int start, const char *tagName, psXMLString &tagSection)
 GetWithinTagSection return the psXMLString section text of a tag.
void operator= (const char *str)
 psXMLString ()
 psXMLString (const char *str)

Protected Member Functions

size_t FindMatchingEndTag (int iStart, const char *tagName)

Detailed Description

Definition at line 70 of file psxmlparser.h.


Constructor & Destructor Documentation

psXMLString::psXMLString ( ) [inline]

Definition at line 73 of file psxmlparser.h.

psXMLString::psXMLString ( const char *  str) [inline]

Definition at line 74 of file psxmlparser.h.


Member Function Documentation

size_t psXMLString::FindMatchingEndTag ( int  iStart,
const char *  tagName 
) [protected]
size_t psXMLString::FindNextTag ( size_t  start)
int psXMLString::FindTag ( const char *  tagName,
int  start = 0 
)
size_t psXMLString::GetTag ( int  start,
psXMLTag tag 
)
size_t psXMLString::GetTagSection ( int  start,
const char *  tagName,
psXMLString tagSection 
)
size_t psXMLString::GetWithinTagSection ( int  start,
const char *  tagName,
int value 
)
size_t psXMLString::GetWithinTagSection ( int  start,
const char *  tagName,
psXMLString tagSection 
)

GetWithinTagSection return the psXMLString section text of a tag.

<TAG>XML</TAG>
Parameters:
startThe start position.
tagNameThe name of the tag.
tagSectionReturn the section text. If tag not found returning "".
size_t psXMLString::GetWithinTagSection ( int  start,
const char *  tagName,
double &  value 
)
size_t psXMLString::GetWithinTagSection ( int  start,
const char *  tagName,
csString &  value 
)

GetWithinTagSection return a csString containing the text in a tag section.

<TAG>Text</TAG>
Parameters:
startThe start position.
tagNameThe name of the tag.
valueReturn the section text. If TAG not found the string isn't modified.
void psXMLString::operator= ( const char *  str) [inline]

Definition at line 105 of file psxmlparser.h.


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