sword::XMLTag Class Reference

Simple XML helper class. More...

#include <utilxml.h>

Collaboration diagram for sword::XMLTag:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 XMLTag (const char *tagString=0)
void setText (const char *tagString)
const char * getName () const
bool isEmpty () const
void setEmpty (bool value)
bool isEndTag () const
const StringList getAttributeNames () const
int getAttributePartCount (const char *attribName, char partSplit= '|') const
const char * getAttribute (const char *attribName, int partNum=-1, char partSplit= '|') const
const char * setAttribute (const char *attribName, const char *attribValue)
const char * toString () const
 operator const char * () const
XMLTagoperator= (const char *tagString)
XMLTagoperator= (const XMLTag &other)

Private Member Functions

void parse () const
const char * getPart (const char *buf, int partNum=0, char partSplit= '|') const

Private Attributes

char * buf
char * name
bool parsed
bool empty
bool endTag
StringPairMap attributes
SWBuf junkBuf

Static Private Attributes

static const char * nullstr

Detailed Description

Simple XML helper class.

Definition at line 37 of file utilxml.h.


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