xmlTiny Namespace Reference


Classes

class  TiXmlString
class  TiXmlOutStream
struct  TiXmlCursor
class  TiXmlVisitor
 If you call the Accept() method, it requires being passed a TiXmlVisitor class to handle callbacks. More...
class  TiXmlBase
 TiXmlBase is a base class for every class in TinyXml. More...
class  TiXmlNode
 The parent class for everything in the Document Object Model. More...
class  TiXmlAttribute
 An attribute is a name-value pair. More...
class  TiXmlAttributeSet
class  TiXmlElement
 The element is a container class. More...
class  TiXmlComment
 An XML comment. More...
class  TiXmlText
 XML text. More...
class  TiXmlDeclaration
 In correct XML the declaration is the first entry in the file. More...
class  TiXmlUnknown
 Any tag that tinyXml doesn't recognize is saved as an unknown. More...
class  TiXmlDocument
 Always the top level node. More...
class  TiXmlHandle
 A TiXmlHandle is a class that wraps a node pointer with null checks; this is an incredibly useful thing. More...
class  TiXmlPrinter
 Print to memory functionality. More...
class  TiXmlParsingData

Enumerations

enum  {
  TIXML_SUCCESS,
  TIXML_NO_ATTRIBUTE,
  TIXML_WRONG_TYPE
}
enum  TiXmlEncoding {
  TIXML_ENCODING_UNKNOWN,
  TIXML_ENCODING_UTF8,
  TIXML_ENCODING_LEGACY
}

Functions

TiXmlString operator+ (const TiXmlString &a, const TiXmlString &b)
TiXmlString operator+ (const TiXmlString &a, const char *b)
TiXmlString operator+ (const char *a, const TiXmlString &b)
bool operator== (const TiXmlString &a, const TiXmlString &b)
bool operator< (const TiXmlString &a, const TiXmlString &b)
bool operator!= (const TiXmlString &a, const TiXmlString &b)
bool operator> (const TiXmlString &a, const TiXmlString &b)
bool operator<= (const TiXmlString &a, const TiXmlString &b)
bool operator>= (const TiXmlString &a, const TiXmlString &b)
bool operator== (const TiXmlString &a, const char *b)
bool operator== (const char *a, const TiXmlString &b)
bool operator!= (const TiXmlString &a, const char *b)
bool operator!= (const char *a, const TiXmlString &b)
FILE * TiXmlFOpen (const char *filename, const char *mode)

Variables

const int TIXML_MAJOR_VERSION = 2
const int TIXML_MINOR_VERSION = 5
const int TIXML_PATCH_VERSION = 3
const TiXmlEncoding TIXML_DEFAULT_ENCODING = TIXML_ENCODING_UNKNOWN
const unsigned char TIXML_UTF_LEAD_0 = 0xefU
const unsigned char TIXML_UTF_LEAD_1 = 0xbbU
const unsigned char TIXML_UTF_LEAD_2 = 0xbfU


Enumeration Type Documentation

anonymous enum

Enumerator:
TIXML_SUCCESS 
TIXML_NO_ATTRIBUTE 
TIXML_WRONG_TYPE 

Definition at line 161 of file tiny/tmp/OBTtinyxml.h.

00162 { 
00163         TIXML_SUCCESS,
00164         TIXML_NO_ATTRIBUTE,
00165         TIXML_WRONG_TYPE
00166 };

enum xmlTiny::TiXmlEncoding

Enumerator:
TIXML_ENCODING_UNKNOWN 
TIXML_ENCODING_UTF8 
TIXML_ENCODING_LEGACY 

Definition at line 170 of file tiny/tmp/OBTtinyxml.h.


Function Documentation

bool xmlTiny::operator!= ( const char *  a,
const TiXmlString &  b 
) [inline]

Definition at line 288 of file tmp/OBTtinystr.h.

00288 { return !(b == a); }

bool xmlTiny::operator!= ( const TiXmlString &  a,
const char *  b 
) [inline]

Definition at line 287 of file tmp/OBTtinystr.h.

00287 { return !(a == b); }

bool xmlTiny::operator!= ( const TiXmlString &  a,
const TiXmlString &  b 
) [inline]

Definition at line 280 of file tmp/OBTtinystr.h.

00280 { return !(a == b); }

TiXmlString xmlTiny::operator+ ( const char *  a,
const TiXmlString &  b 
)

Definition at line 107 of file tmp/OBTtinystr.cpp.

References xmlTiny::TiXmlString::append(), xmlTiny::TiXmlString::length(), and xmlTiny::TiXmlString::reserve().

00108 {
00109         TiXmlString tmp;
00110         TiXmlString::size_type a_len = static_cast<TiXmlString::size_type>( strlen(a) );
00111         tmp.reserve(a_len + b.length());
00112         tmp.append(a, a_len);
00113         tmp += b;
00114         return tmp;
00115 }

TiXmlString xmlTiny::operator+ ( const TiXmlString &  a,
const char *  b 
)

Definition at line 97 of file tmp/OBTtinystr.cpp.

References xmlTiny::TiXmlString::append(), xmlTiny::TiXmlString::length(), and xmlTiny::TiXmlString::reserve().

00098 {
00099         TiXmlString tmp;
00100         TiXmlString::size_type b_len = static_cast<TiXmlString::size_type>( strlen(b) );
00101         tmp.reserve(a.length() + b_len);
00102         tmp += a;
00103         tmp.append(b, b_len);
00104         return tmp;
00105 }

TiXmlString xmlTiny::operator+ ( const TiXmlString &  a,
const TiXmlString &  b 
)

Definition at line 88 of file tmp/OBTtinystr.cpp.

References xmlTiny::TiXmlString::length(), and xmlTiny::TiXmlString::reserve().

00089 {
00090         TiXmlString tmp;
00091         tmp.reserve(a.length() + b.length());
00092         tmp += a;
00093         tmp += b;
00094         return tmp;
00095 }

bool xmlTiny::operator< ( const TiXmlString &  a,
const TiXmlString &  b 
) [inline]

Definition at line 275 of file tmp/OBTtinystr.h.

References xmlTiny::TiXmlString::c_str().

00276 {
00277         return strcmp(a.c_str(), b.c_str()) < 0;
00278 }

bool xmlTiny::operator<= ( const TiXmlString &  a,
const TiXmlString &  b 
) [inline]

Definition at line 282 of file tmp/OBTtinystr.h.

00282 { return !(b < a); }

bool xmlTiny::operator== ( const char *  a,
const TiXmlString &  b 
) [inline]

Definition at line 286 of file tmp/OBTtinystr.h.

00286 { return b == a; }

bool xmlTiny::operator== ( const TiXmlString &  a,
const char *  b 
) [inline]

Definition at line 285 of file tmp/OBTtinystr.h.

References xmlTiny::TiXmlString::c_str().

00285 { return strcmp(a.c_str(), b) == 0; }

bool xmlTiny::operator== ( const TiXmlString &  a,
const TiXmlString &  b 
) [inline]

Definition at line 270 of file tmp/OBTtinystr.h.

References xmlTiny::TiXmlString::c_str(), and xmlTiny::TiXmlString::length().

00271 {
00272         return    ( a.length() == b.length() )                          // optimization on some platforms
00273                && ( strcmp(a.c_str(), b.c_str()) == 0 );        // actual compare
00274 }

bool xmlTiny::operator> ( const TiXmlString &  a,
const TiXmlString &  b 
) [inline]

Definition at line 281 of file tmp/OBTtinystr.h.

00281 { return b < a; }

bool xmlTiny::operator>= ( const TiXmlString &  a,
const TiXmlString &  b 
) [inline]

Definition at line 283 of file tmp/OBTtinystr.h.

00283 { return !(a < b); }

FILE* xmlTiny::TiXmlFOpen ( const char *  filename,
const char *  mode 
)

Definition at line 41 of file tiny/tmp/OBTtinyxml.cpp.

Referenced by xmlTiny::TiXmlDocument::LoadFile(), and xmlTiny::TiXmlDocument::SaveFile().

00042 {
00043         #if defined(_MSC_VER) && (_MSC_VER >= 1400 )
00044                 FILE* fp = 0;
00045                 errno_t err = fopen_s( &fp, filename, mode );
00046                 if ( !err && fp )
00047                         return fp;
00048                 return 0;
00049         #else
00050                 return fopen( filename, mode );
00051         #endif
00052 }


Variable Documentation

const TiXmlEncoding xmlTiny::TIXML_DEFAULT_ENCODING = TIXML_ENCODING_UNKNOWN

Definition at line 177 of file tiny/tmp/OBTtinyxml.h.

const int xmlTiny::TIXML_MAJOR_VERSION = 2

Definition at line 100 of file tiny/tmp/OBTtinyxml.h.

const int xmlTiny::TIXML_MINOR_VERSION = 5

Definition at line 101 of file tiny/tmp/OBTtinyxml.h.

const int xmlTiny::TIXML_PATCH_VERSION = 3

Definition at line 102 of file tiny/tmp/OBTtinyxml.h.

const unsigned char xmlTiny::TIXML_UTF_LEAD_0 = 0xefU

Definition at line 64 of file tiny/tmp/OBTtinyxmlparser.cpp.

Referenced by xmlTiny::TiXmlDocument::Parse(), xmlTiny::TiXmlDocument::SaveFile(), xmlTiny::TiXmlBase::SkipWhiteSpace(), and xmlTiny::TiXmlParsingData::Stamp().

const unsigned char xmlTiny::TIXML_UTF_LEAD_1 = 0xbbU

Definition at line 65 of file tiny/tmp/OBTtinyxmlparser.cpp.

Referenced by xmlTiny::TiXmlDocument::Parse(), xmlTiny::TiXmlDocument::SaveFile(), xmlTiny::TiXmlBase::SkipWhiteSpace(), and xmlTiny::TiXmlParsingData::Stamp().

const unsigned char xmlTiny::TIXML_UTF_LEAD_2 = 0xbfU

Definition at line 66 of file tiny/tmp/OBTtinyxmlparser.cpp.

Referenced by xmlTiny::TiXmlDocument::Parse(), xmlTiny::TiXmlDocument::SaveFile(), xmlTiny::TiXmlBase::SkipWhiteSpace(), and xmlTiny::TiXmlParsingData::Stamp().


Generated on Wed Oct 1 11:34:24 2008 for OBT by  doxygen 1.5.3