ReactOS 0.4.15-dev-8102-g108db8f
tinyxml2 Namespace Reference

Classes

class  DynArray
 
struct  Entity
 
struct  LongFitsIntoSizeTMinusOne
 
class  MemPool
 
class  MemPoolT
 
class  StrPair
 
class  XMLAttribute
 
class  XMLComment
 
class  XMLConstHandle
 
class  XMLDeclaration
 
class  XMLDocument
 
class  XMLElement
 
class  XMLHandle
 
class  XMLNode
 
class  XMLPrinter
 
class  XMLText
 
class  XMLUnknown
 
class  XMLUtil
 
class  XMLVisitor
 

Enumerations

enum  XMLError {
  XML_SUCCESS = 0 , XML_NO_ERROR = 0 , XML_NO_ATTRIBUTE , XML_WRONG_ATTRIBUTE_TYPE ,
  XML_ERROR_FILE_NOT_FOUND , XML_ERROR_FILE_COULD_NOT_BE_OPENED , XML_ERROR_FILE_READ_ERROR , XML_ERROR_ELEMENT_MISMATCH ,
  XML_ERROR_PARSING_ELEMENT , XML_ERROR_PARSING_ATTRIBUTE , XML_ERROR_IDENTIFYING_TAG , XML_ERROR_PARSING_TEXT ,
  XML_ERROR_PARSING_CDATA , XML_ERROR_PARSING_COMMENT , XML_ERROR_PARSING_DECLARATION , XML_ERROR_PARSING_UNKNOWN ,
  XML_ERROR_EMPTY_DOCUMENT , XML_ERROR_MISMATCHED_ELEMENT , XML_ERROR_PARSING , XML_CAN_NOT_CONVERT_TEXT ,
  XML_NO_TEXT_NODE , XML_ERROR_COUNT
}
 
enum  Whitespace { PRESERVE_WHITESPACE , COLLAPSE_WHITESPACE }
 

Functions

static FILEcallfopen (const char *filepath, const char *mode)
 

Variables

static const int NUM_ENTITIES = 5
 
static const Entity entities [NUM_ENTITIES]
 

Enumeration Type Documentation

◆ Whitespace

Enumerator
PRESERVE_WHITESPACE 
COLLAPSE_WHITESPACE 

Definition at line 1509 of file tinyxml2.h.

1509 {
1512};
@ PRESERVE_WHITESPACE
Definition: tinyxml2.h:1510
@ COLLAPSE_WHITESPACE
Definition: tinyxml2.h:1511

◆ XMLError

Enumerator
XML_SUCCESS 
XML_NO_ERROR 
XML_NO_ATTRIBUTE 
XML_WRONG_ATTRIBUTE_TYPE 
XML_ERROR_FILE_NOT_FOUND 
XML_ERROR_FILE_COULD_NOT_BE_OPENED 
XML_ERROR_FILE_READ_ERROR 
XML_ERROR_ELEMENT_MISMATCH 
XML_ERROR_PARSING_ELEMENT 
XML_ERROR_PARSING_ATTRIBUTE 
XML_ERROR_IDENTIFYING_TAG 
XML_ERROR_PARSING_TEXT 
XML_ERROR_PARSING_CDATA 
XML_ERROR_PARSING_COMMENT 
XML_ERROR_PARSING_DECLARATION 
XML_ERROR_PARSING_UNKNOWN 
XML_ERROR_EMPTY_DOCUMENT 
XML_ERROR_MISMATCHED_ELEMENT 
XML_ERROR_PARSING 
XML_CAN_NOT_CONVERT_TEXT 
XML_NO_TEXT_NODE 
XML_ERROR_COUNT 

Definition at line 486 of file tinyxml2.h.

486 {
487 XML_SUCCESS = 0,
488 XML_NO_ERROR = 0,
508
510};
@ XML_ERROR_MISMATCHED_ELEMENT
Definition: tinyxml2.h:504
@ XML_ERROR_EMPTY_DOCUMENT
Definition: tinyxml2.h:503
@ XML_SUCCESS
Definition: tinyxml2.h:487
@ XML_ERROR_ELEMENT_MISMATCH
Definition: tinyxml2.h:494
@ XML_ERROR_PARSING_ATTRIBUTE
Definition: tinyxml2.h:496
@ XML_ERROR_FILE_NOT_FOUND
Definition: tinyxml2.h:491
@ XML_ERROR_IDENTIFYING_TAG
Definition: tinyxml2.h:497
@ XML_ERROR_PARSING_TEXT
Definition: tinyxml2.h:498
@ XML_ERROR_PARSING_COMMENT
Definition: tinyxml2.h:500
@ XML_NO_TEXT_NODE
Definition: tinyxml2.h:507
@ XML_ERROR_FILE_READ_ERROR
Definition: tinyxml2.h:493
@ XML_ERROR_PARSING_UNKNOWN
Definition: tinyxml2.h:502
@ XML_ERROR_PARSING_CDATA
Definition: tinyxml2.h:499
@ XML_ERROR_COUNT
Definition: tinyxml2.h:509
@ XML_NO_ATTRIBUTE
Definition: tinyxml2.h:489
@ XML_NO_ERROR
Definition: tinyxml2.h:488
@ XML_ERROR_PARSING_DECLARATION
Definition: tinyxml2.h:501
@ XML_WRONG_ATTRIBUTE_TYPE
Definition: tinyxml2.h:490
@ XML_ERROR_PARSING
Definition: tinyxml2.h:505
@ XML_ERROR_PARSING_ELEMENT
Definition: tinyxml2.h:495
@ XML_ERROR_FILE_COULD_NOT_BE_OPENED
Definition: tinyxml2.h:492
@ XML_CAN_NOT_CONVERT_TEXT
Definition: tinyxml2.h:506

Function Documentation

◆ callfopen()

static FILE * tinyxml2::callfopen ( const char filepath,
const char mode 
)
static

Definition at line 1872 of file tinyxml2.cpp.

1873{
1874 TIXMLASSERT( filepath );
1875 TIXMLASSERT( mode );
1876#if defined(_MSC_VER) && (_MSC_VER >= 1400 ) && (!defined WINCE)
1877 FILE* fp = 0;
1878 errno_t err = fopen_s( &fp, filepath, mode );
1879 if ( err ) {
1880 return 0;
1881 }
1882#else
1883 FILE* fp = fopen( filepath, mode );
1884#endif
1885 return fp;
1886}
int errno_t
Definition: crtdefs.h:374
GLenum mode
Definition: glext.h:6217
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
#define err(...)
int CDECL fopen_s(FILE **pFile, const char *filename, const char *mode)
Definition: file.c:3257
#define TIXMLASSERT(x)
Definition: tinyxml2.h:88

Referenced by tinyxml2::XMLDocument::LoadFile(), and tinyxml2::XMLDocument::SaveFile().

Variable Documentation

◆ entities

const Entity tinyxml2::entities[NUM_ENTITIES]
static
Initial value:
= {
{ "quot", 4, DOUBLE_QUOTE },
{ "amp", 3, '&' },
{ "apos", 4, SINGLE_QUOTE },
{ "lt", 2, '<' },
{ "gt", 2, '>' }
}
static const char DOUBLE_QUOTE
Definition: tinyxml2.cpp:109
static const char SINGLE_QUOTE
Definition: tinyxml2.cpp:108

Definition at line 129 of file tinyxml2.cpp.

Referenced by tinyxml2::StrPair::GetStr(), tinyxml2::XMLPrinter::PrintString(), and tinyxml2::XMLPrinter::XMLPrinter().

◆ NUM_ENTITIES

const int tinyxml2::NUM_ENTITIES = 5
static