lsxml Namespace Reference

lsxml namespace More...


Classes

struct  Singleton
 Base for all singleton classes. More...
struct  ConstSingleton
 Base for all constant singleton classes. More...
class  ContextT
 Memory context. More...
class  ProxyContext
 Proxy context. More...
class  StackContext
 Stack context. More...
struct  BaseObject
 Base class for all library objects. More...
struct  ManagedObject
 Base class for all library objects which require destruction. More...
struct  InputStream
 input stream interface More...
struct  OutputStream
 output stream interface More...
class  StringInputStream
 string input stream interface More...
class  ContainerOutputStream
 output stream which writes to an object which meets the STL container requirements More...
class  FileStreamBase
 base file stream class template More...
class  FileInputStream
 file input stream class More...
class  FileOutputStream
 file output stream class More...
struct  XmlCharTraitsBase
 default character traits More...
struct  XmlCharTraitsBase< char >
 8 bit character traits More...
struct  XmlCharTraitsBase< wchar_t >
 16 bit character traits More...
class  XmlString
 string class More...
struct  XmlEntity
 xml entity structure More...
struct  XmlEntityList
 xml entity list More...
class  XmlAttribute
 xml attribute class More...
class  XmlReader
 sequential xml reader class More...
class  XmlWriter
 xml writer class More...
class  XmlNode
 xml node class More...
class  XmlElement
 xml element class More...
class  XmlComment
 xml comment class More...
class  XmlTextNode
 xml text node class More...
class  XmlDocument
 xml document class More...

Enumerations

enum  ContextFlags { , CF_STATIC = 0x1 , CF_STATIC = 0x1 }
enum  XmlNodeType { ,
  XNT_UNKNOWN , XNT_ELEMENT , XNT_ELEMENT_START , XNT_ELEMENT_END ,
  XNT_COMMENT , XNT_TEXT , XNT_DOCUMENT , XNT_UNKNOWN ,
  XNT_ELEMENT , XNT_ELEMENT_START , XNT_ELEMENT_END , XNT_COMMENT ,
  XNT_TEXT , XNT_DOCUMENT
}
 xml node type enumeration More...
enum  XmlReadStatus { ,
  XRS_OK , XRS_EOF , XRS_ERROR , XRS_OK ,
  XRS_EOF , XRS_ERROR
}
 reading status More...
enum  XmlReaderFlags { ,
  XRF_DEFAULT = 0x0 , XRF_PRESERVE_SPACES = 0x1 , XRF_SKIP_COMMENTS = 0x2 , XRF_PERSISTENT_DATA = 0x4 ,
  XRF_IGNORE_CLOSING_TAG_NAMES = 0x8 , XRF_DEFAULT = 0x0 , XRF_PRESERVE_SPACES = 0x1 , XRF_SKIP_COMMENTS = 0x2 ,
  XRF_PERSISTENT_DATA = 0x4 , XRF_IGNORE_CLOSING_TAG_NAMES = 0x8
}
 parser flags More...
enum  XmlWriterFlags { ,
  XWF_DEFAULT = 0x0 , XWF_REMEMBER_TAG_NAMES = 0x1 , XWF_NO_INDENT = 0x2 , XWF_DEFAULT = 0x0 ,
  XWF_REMEMBER_TAG_NAMES = 0x1 , XWF_NO_INDENT = 0x2
}
 xml writer flags More...
enum  ContextFlags { , CF_STATIC = 0x1 , CF_STATIC = 0x1 }
 Context flags. More...
enum  XmlNodeType { ,
  XNT_UNKNOWN , XNT_ELEMENT , XNT_ELEMENT_START , XNT_ELEMENT_END ,
  XNT_COMMENT , XNT_TEXT , XNT_DOCUMENT , XNT_UNKNOWN ,
  XNT_ELEMENT , XNT_ELEMENT_START , XNT_ELEMENT_END , XNT_COMMENT ,
  XNT_TEXT , XNT_DOCUMENT
}
 XML node types. More...
enum  XmlReadStatus { ,
  XRS_OK , XRS_EOF , XRS_ERROR , XRS_OK ,
  XRS_EOF , XRS_ERROR
}
 Reading status. More...
enum  XmlReaderFlags { ,
  XRF_DEFAULT = 0x0 , XRF_PRESERVE_SPACES = 0x1 , XRF_SKIP_COMMENTS = 0x2 , XRF_PERSISTENT_DATA = 0x4 ,
  XRF_IGNORE_CLOSING_TAG_NAMES = 0x8 , XRF_DEFAULT = 0x0 , XRF_PRESERVE_SPACES = 0x1 , XRF_SKIP_COMMENTS = 0x2 ,
  XRF_PERSISTENT_DATA = 0x4 , XRF_IGNORE_CLOSING_TAG_NAMES = 0x8
}
 Reader flags. More...
enum  XmlWriterFlags { ,
  XWF_DEFAULT = 0x0 , XWF_REMEMBER_TAG_NAMES = 0x1 , XWF_NO_INDENT = 0x2 , XWF_DEFAULT = 0x0 ,
  XWF_REMEMBER_TAG_NAMES = 0x1 , XWF_NO_INDENT = 0x2
}
 Xml writer flags. More...

Functions

template<typename _Ty>
int StringCompare (const _Ty *a, const _Ty *b)
 Compares two strings.
template<typename _Ty>
int StringCompare (const _Ty *a, const _Ty *b, int maxChars)
 Compares two strings.
template<typename _Dst, typename _Src>
_Dst * StringCopyUnsafe (_Dst *dst, const _Src *src)
 Copies a string (unsafe).
template<typename _Dst, typename _Src>
_Dst * StringCopy (_Dst *dst, uint size, const _Src *src)
 Copies a string.
template<typename _Dst, typename _Src>
_Dst * StringCopy (_Dst *dst, uint size, const _Src *src, uint count)
 Copies a string.
template<typename _Dst, typename _Src, uint _Size>
_Dst * StringCopy (_Dst(&dst)[_Size], const _Src *src)
 Copies a string.
template<typename _Dst, typename _Src, uint _Size>
_Dst * StringCopy (_Dst(&dst)[_Size], const _Src *src, uint count)
 Copies a string.
template<typename _Ty>
int StringLength (const _Ty *str)
 Calculates the length of a string.
template<typename _Ty>
_Ty * StringTrim (_Ty *str, _Ty *end=0)
 Trims a string.
template<typename _Ty>
int StringToInt (const _Ty *str, int def=0)
 Converts a string to an integer.
template<typename _Ty>
int StringToIntHex (const _Ty *str, int def=0)
 Converts a string containing a hexadecimal to an integer.


Detailed Description

lsxml namespace

Enumeration Type Documentation

enum lsxml::ContextFlags

Context flags.

Enumerator:
CF_STATIC  Indicates that a context is static (not resizable).
CF_STATIC  Indicates that a context is static (not resizable).

enum lsxml::ContextFlags

Enumerator:
CF_STATIC  Indicates that a context is static (not resizable).
CF_STATIC  Indicates that a context is static (not resizable).

enum lsxml::XmlNodeType

XML node types.

Enumerator:
XNT_UNKNOWN  unknown node
XNT_ELEMENT  element node
XNT_ELEMENT_START  opening tag
XNT_ELEMENT_END  closing tag
XNT_COMMENT  comment
XNT_TEXT  text node
XNT_DOCUMENT  document root
XNT_UNKNOWN  unknown node
XNT_ELEMENT  element node
XNT_ELEMENT_START  opening tag
XNT_ELEMENT_END  closing tag
XNT_COMMENT  comment
XNT_TEXT  text node
XNT_DOCUMENT  document root

enum lsxml::XmlNodeType

xml node type enumeration

Enumerator:
XNT_UNKNOWN  unknown node
XNT_ELEMENT  element node
XNT_ELEMENT_START  opening tag
XNT_ELEMENT_END  closing tag
XNT_COMMENT  comment
XNT_TEXT  text node
XNT_DOCUMENT  document root
XNT_UNKNOWN  unknown node
XNT_ELEMENT  element node
XNT_ELEMENT_START  opening tag
XNT_ELEMENT_END  closing tag
XNT_COMMENT  comment
XNT_TEXT  text node
XNT_DOCUMENT  document root

enum lsxml::XmlReaderFlags

Reader flags.

Enumerator:
XRF_DEFAULT  default
XRF_PRESERVE_SPACES  Preserves spaces in text nodes.
XRF_SKIP_COMMENTS  Ignores comments.
XRF_PERSISTENT_DATA  Values read by the parser are not temporary.
XRF_IGNORE_CLOSING_TAG_NAMES  Closing tag names are not stored by the reader (improves performance).
XRF_DEFAULT  default
XRF_PRESERVE_SPACES  Preserves spaces in text nodes.
XRF_SKIP_COMMENTS  Ignores comments.
XRF_PERSISTENT_DATA  Values read by the parser are not temporary.
XRF_IGNORE_CLOSING_TAG_NAMES  Closing tag names are not stored by the reader (improves performance).

enum lsxml::XmlReaderFlags

parser flags

Enumerator:
XRF_DEFAULT  default
XRF_PRESERVE_SPACES  Preserves spaces in text nodes.
XRF_SKIP_COMMENTS  Ignores comments.
XRF_PERSISTENT_DATA  Values read by the parser are not temporary.
XRF_IGNORE_CLOSING_TAG_NAMES  Closing tag names are not stored by the reader (improves performance).
XRF_DEFAULT  default
XRF_PRESERVE_SPACES  Preserves spaces in text nodes.
XRF_SKIP_COMMENTS  Ignores comments.
XRF_PERSISTENT_DATA  Values read by the parser are not temporary.
XRF_IGNORE_CLOSING_TAG_NAMES  Closing tag names are not stored by the reader (improves performance).

enum lsxml::XmlReadStatus

Reading status.

Enumerator:
XRS_OK  Success.
XRS_EOF  Reading has reached the end of file.
XRS_ERROR  Reading has encountered an error.
XRS_OK  Success.
XRS_EOF  Reading has reached the end of file.
XRS_ERROR  Reading has encountered an error.

enum lsxml::XmlReadStatus

reading status

Enumerator:
XRS_OK  Success.
XRS_EOF  Reading has reached the end of file.
XRS_ERROR  Reading has encountered an error.
XRS_OK  Success.
XRS_EOF  Reading has reached the end of file.
XRS_ERROR  Reading has encountered an error.

enum lsxml::XmlWriterFlags

Xml writer flags.

Enumerator:
XWF_DEFAULT  default
XWF_REMEMBER_TAG_NAMES  remembers tag names, so closing a tag does not require specifying it's name
XWF_NO_INDENT  ignores indentation
XWF_DEFAULT  default
XWF_REMEMBER_TAG_NAMES  remembers tag names, so closing a tag does not require specifying it's name
XWF_NO_INDENT  ignores indentation

enum lsxml::XmlWriterFlags

xml writer flags

Enumerator:
XWF_DEFAULT  default
XWF_REMEMBER_TAG_NAMES  remembers tag names, so closing a tag does not require specifying it's name
XWF_NO_INDENT  ignores indentation
XWF_DEFAULT  default
XWF_REMEMBER_TAG_NAMES  remembers tag names, so closing a tag does not require specifying it's name
XWF_NO_INDENT  ignores indentation


Function Documentation

template<typename _Ty>
int lsxml::StringToInt ( const _Ty *  str,
int  def = 0 
)

Converts a string to an integer.

Parameters:
str the input string
def value returned if an error occurs

template<typename _Ty>
int lsxml::StringToIntHex ( const _Ty *  str,
int  def = 0 
)

Converts a string containing a hexadecimal to an integer.

Parameters:
str the input string
def value returned if an error occurs


Generated on Tue Sep 29 14:51:12 2009 for lsxml by  doxygen 1.5.1-p1