ReactOS  r73890
xmlstorage.h File Reference
#include <wchar.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <fstream>
#include <sstream>
#include <string>
#include <stack>
#include <list>
#include <map>
Include dependency graph for xmlstorage.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  XMLStorage::XS_String
 string class for TCHAR strings More...
 
struct  XMLStorage::tifstream
 
struct  XMLStorage::tofstream
 
struct  XMLStorage::XMLError
 XML Error with message and location. More...
 
struct  XMLStorage::XMLErrorList
 list of XMLError entries More...
 
struct  XMLStorage::StyleSheet
 XML Stylesheet entry. More...
 
struct  XMLStorage::StyleSheetList
 list of StyleSheet entries More...
 
struct  XMLStorage::DocType
 XML document type description. More...
 
struct  XMLStorage::XMLFormat
 Management of XML file headers and formating. More...
 
struct  XMLStorage::XPathElement
 
struct  XMLStorage::XPath
 
struct  XMLStorage::XMLNode
 in memory representation of an XML node More...
 
struct  XMLStorage::XMLNode::AttributeMap
 map of XML node attributes More...
 
struct  XMLStorage::XMLNode::Children
 internal children node list More...
 
struct  XMLStorage::XMLChildrenFilter
 iterator access to children nodes with name filtering More...
 
struct  XMLStorage::XMLChildrenFilter::iterator
 internal iterator class More...
 
struct  XMLStorage::const_XMLChildrenFilter
 read only iterator access to children nodes with name filtering More...
 
struct  XMLStorage::const_XMLChildrenFilter::const_iterator
 internal iterator class More...
 
struct  XMLStorage::XMLPos
 iterator for XML trees More...
 
struct  XMLStorage::const_XMLPos
 iterator for XML trees More...
 
struct  XMLStorage::XMLBool
 type converter for boolean data More...
 
struct  XMLStorage::XMLBoolRef
 type converter for boolean data with write access More...
 
struct  XMLStorage::XMLInt
 type converter for integer data More...
 
struct  XMLStorage::XMLIntRef
 type converter for integer data with write access More...
 
struct  XMLStorage::XMLDouble
 type converter for numeric data More...
 
struct  XMLStorage::XMLDoubleRef
 type converter for numeric data with write access More...
 
struct  XMLStorage::XMLString
 type converter for string data More...
 
struct  XMLStorage::XMLStringRef
 type converter for string data with write access More...
 
struct  XMLStorage::XMLProperty
 a key/value pair for property data access More...
 
struct  XMLStorage::XMLPropertyReader
 utility class to read property settings from a XML tree More...
 
struct  XMLStorage::XMLPropertyReader::const_iterator
 internal iterator class More...
 
struct  XMLStorage::XMLReaderBase
 XML reader base class. More...
 
struct  XMLStorage::XMLReader
 XML file reader. More...
 
struct  XMLStorage::XMLDoc
 XML document holder. More...
 
struct  XMLStorage::XMLMessage
 XML message wrapper. More...
 
struct  XMLStorage::XMLMessageFromString
 helper structure to read XML messages from strings More...
 
struct  XMLStorage::XMLMessageReader
 Reader for XML Messages. More...
 
struct  XMLStorage::XMLWriter
 on the fly XML writer More...
 
struct  XMLStorage::XMLWriter::StackEntry
 container for XMLWriter state information More...
 

Namespaces

 XMLStorage
 

Macros

#define XS_STRING_UTF8
 
#define TEXT(x)   x
 
#define _ttoi   atoi
 
#define _tfopen   fopen
 
#define _tcstod   strtod
 
#define _tcslen   strlen
 
#define _tcsstr   strstr
 
#define _snprintf   snprintf
 
#define _sntprintf   snprintf
 
#define _vsnprintf   vsnprintf
 
#define _vsntprintf   vsnprintf
 
#define _stricmp   strcasecmp
 
#define _tcsicmp   strcasecmp
 
#define strnicmp   strncasecmp
 
#define _tcsnicmp   strncasecmp
 
#define BUFFER_LEN   2048
 
#define XS_CHAR   char
 
#define XS_TEXT(x)   x
 
#define LPXSSTR   LPSTR
 
#define LPCXSSTR   LPCSTR
 
#define XS_cmp   strcmp
 
#define XS_icmp   _stricmp
 
#define XS_ncmp   strncmp
 
#define XS_nicmp   strnicmp
 
#define XS_toi   atoi
 
#define XS_tod   strtod
 
#define XS_len   strlen
 
#define XS_snprintf   _snprintf
 
#define XS_vsnprintf   _vsnprintf
 
#define XS_strstr   strstr
 
#define COUNTOF(b)   (sizeof(b)/sizeof(b[0]))
 
#define XS_EMPTY_STR   XS_TEXT("")
 
#define XS_TRUE_STR   XS_TEXT("true")
 
#define XS_FALSE_STR   XS_TEXT("false")
 
#define XS_INTFMT_STR   XS_TEXT("%d")
 
#define XS_FLOATFMT_STR   XS_TEXT("%f")
 
#define XS_KEY_STR   XS_TEXT("key")
 
#define XS_VALUE_STR   XS_TEXT("value")
 
#define XS_PROPERTY_STR   XS_TEXT("property")
 
#define XS_EMPTY   XS_EMPTY_STR
 
#define XS_TRUE   XS_TRUE_STR
 
#define XS_FALSE   XS_FALSE_STR
 
#define XS_INTFMT   XS_INTFMT_STR
 
#define XS_FLOATFMT   XS_FLOATFMT_STR
 
#define CDATA_START   "<![CDATA["
 
#define CDATA_END   "]]>"
 
#define XML_INDENT_SPACE   " "
 
#define _XMLSTORAGE_H
 

Typedefs

typedef char CHAR
 
typedef __wchar_t WCHAR
 
typedef unsigned char UCHAR
 
typedef charLPSTR
 
typedef const charLPCSTR
 
typedef WCHARLPWSTR
 
typedef const WCHARLPCWSTR
 
typedef char TCHAR
 
typedef unsigned char _TUCHAR
 
typedef CHARPTSTR
 
typedef CHARLPTSTR
 
typedef const CHARLPCTSTR
 
typedef std::ostringstream XMLStorage::fast_ostringstream
 

Enumerations

enum  XMLStorage::PRETTY_FLAGS { XMLStorage::PRETTY_PLAIN = 0, XMLStorage::PRETTY_LINEFEED = 1, XMLStorage::PRETTY_INDENT = 2 }
 
enum  XMLStorage::WRITE_MODE { XMLStorage::FORMAT_PLAIN, XMLStorage::FORMAT_SMART, XMLStorage::FORMAT_ORIGINAL, XMLStorage::FORMAT_PRETTY }
 

Functions

const charXMLStorage::get_xmlsym_end_utf8 (const char *p)
 
std::string XMLStorage::EncodeXMLString (const XS_String &str, bool cdata)
 encode XML string literals More...
 
XS_String XMLStorage::DecodeXMLString (const std::string &str)
 decode XML string literals More...
 
template<typename T >
void XMLStorage::read_option (T &var, const_XMLPos &cfg, LPCXSSTR key)
 
template<>
void XMLStorage::read_option (int &var, const_XMLPos &cfg, LPCXSSTR key)
 

Detailed Description

XMLStorage header file

Definition in file xmlstorage.h.

Macro Definition Documentation

#define _stricmp   strcasecmp

Definition at line 204 of file xmlstorage.h.

#define _tcsicmp   strcasecmp

Definition at line 205 of file xmlstorage.h.

Referenced by _tmain(), StartMenu::AddEntry(), AddListViewItems(), AddScreenSavers(), StartMenu::AddShellEntries(), AddWallpapersFromDirectory(), Batch(), cmd_date(), cmd_goto(), cmd_mklink(), cmd_move(), cmd_setlocal(), cmd_shift(), cmd_start(), cmd_time(), CommandAttrib(), CommandTimer(), CompareFiles(), DirList(), DoCommand(), EnumerateSoundProfiles(), ExplorerCmd::EvaluateOption(), CShellCommandNewKey::Execute(), CShellCommandOwner::Execute(), CShellCommandSACL::Execute(), CShellCommandSetValue::Execute(), CShellCommandValue::Execute(), CShellCommandConnect::Execute(), CShellCommandDACL::Execute(), CShellCommandDeleteKey::Execute(), CShellCommandDeleteValue::Execute(), CShellCommandDir::Execute(), CShellCommandDOKA::Execute(), CShellCommandHelp::Execute(), Execute(), ExecuteIf(), FindLabelContext(), FindSoundProfile(), get_windows_version_str(), GetEnhancedVar(), GetEnvVarOrSpecial(), GetModuleTitle(), BookmarkList::import_IE_favorites(), ImportSoundLabel(), InstallBootSector(), CRegistryTree::InternalGetSubkey(), isUnattendSetup(), FileChildWindow::jump_to_int(), LoadAndParseAppCompatibilityFlags(), main(), CShellCommandVersion::Match(), CShellCommandExit::Match(), CShellCommandDeleteValue::Match(), CShellCommandSetValue::Match(), CShellCommandDeleteKey::Match(), CShellCommandOwner::Match(), CShellCommandConnect::Match(), CShellCommandValue::Match(), CShellCommandDACL::Match(), CShellCommandSACL::Match(), CShellCommandNewKey::Match(), CShellCommandChangeKey::Match(), CShellCommandDOKA::Match(), CShellCommandDir::Match(), CShellCommandHelp::Match(), NotifyIconConfig::match(), CRegistryKey::OpenSubkey(), ParseCommandPart(), ParseFor(), ParseIf(), ShellDirectory::read_directory(), RunAction(), and SoundsDlgProc().

#define _tcslen   strlen

Definition at line 198 of file xmlstorage.h.

#define _tcstod   strtod

Definition at line 197 of file xmlstorage.h.

Referenced by ATTDlgWinProc().

#define _tfopen   fopen

Definition at line 196 of file xmlstorage.h.

Referenced by ForF(), import_registry_file(), and REGPROC_open_export_file().

#define _ttoi   atoi

Definition at line 195 of file xmlstorage.h.

#define _vsntprintf   vsnprintf
#define _XMLSTORAGE_H

Definition at line 2997 of file xmlstorage.h.

#define CDATA_START   "<![CDATA["
#define LPCXSSTR   LPCSTR

Definition at line 239 of file xmlstorage.h.

Referenced by XMLStorage::DecodeXMLString(), and XMLStorage::EncodeXMLString().

#define LPXSSTR   LPSTR

Definition at line 238 of file xmlstorage.h.

Referenced by XMLStorage::DecodeXMLString(), and XMLStorage::EncodeXMLString().

#define strnicmp   strncasecmp

Definition at line 206 of file xmlstorage.h.

#define TEXT (   x)    x

Definition at line 188 of file xmlstorage.h.

#define XML_INDENT_SPACE   " "

Definition at line 617 of file xmlstorage.h.

#define XS_cmp   strcmp

Definition at line 240 of file xmlstorage.h.

#define XS_EMPTY   XS_EMPTY_STR

Definition at line 424 of file xmlstorage.h.

#define XS_EMPTY_STR   XS_TEXT("")

Definition at line 406 of file xmlstorage.h.

Referenced by XMLStorage::XMLNode::get_sub_content().

#define XS_FALSE   XS_FALSE_STR
#define XS_FALSE_STR   XS_TEXT("false")

Definition at line 408 of file xmlstorage.h.

#define XS_FLOATFMT_STR   XS_TEXT("%f")

Definition at line 410 of file xmlstorage.h.

#define XS_INTFMT   XS_INTFMT_STR
#define XS_INTFMT_STR   XS_TEXT("%d")

Definition at line 409 of file xmlstorage.h.

#define XS_KEY_STR   XS_TEXT("key")

Definition at line 412 of file xmlstorage.h.

#define XS_len   strlen

Definition at line 246 of file xmlstorage.h.

Referenced by XMLStorage::DecodeXMLString(), and XMLStorage::EncodeXMLString().

#define XS_ncmp   strncmp

Definition at line 242 of file xmlstorage.h.

#define XS_nicmp   strnicmp

Definition at line 243 of file xmlstorage.h.

Referenced by XMLStorage::DecodeXMLString().

#define XS_PROPERTY_STR   XS_TEXT("property")

Definition at line 414 of file xmlstorage.h.

#define XS_STRING_UTF8

Definition at line 58 of file xmlstorage.h.

#define XS_strstr   strstr

Definition at line 249 of file xmlstorage.h.

Referenced by XMLStorage::DecodeXMLString().

#define XS_TRUE_STR   XS_TEXT("true")

Definition at line 407 of file xmlstorage.h.

#define XS_VALUE_STR   XS_TEXT("value")

Definition at line 413 of file xmlstorage.h.

Typedef Documentation

typedef unsigned char _TUCHAR

Definition at line 190 of file xmlstorage.h.

typedef char CHAR

Definition at line 175 of file xmlstorage.h.

static LPCSTR

Definition at line 183 of file xmlstorage.h.

typedef const CHAR* LPCTSTR

Definition at line 193 of file xmlstorage.h.

typedef const WCHAR* LPCWSTR

Definition at line 185 of file xmlstorage.h.

typedef LPSTR

Definition at line 182 of file xmlstorage.h.

typedef CHAR* LPTSTR

Definition at line 192 of file xmlstorage.h.

typedef LPWSTR

Definition at line 184 of file xmlstorage.h.

typedef CHAR* PTSTR

Definition at line 191 of file xmlstorage.h.

typedef char TCHAR

Definition at line 189 of file xmlstorage.h.

typedef unsigned char UCHAR

Definition at line 181 of file xmlstorage.h.

typedef __wchar_t WCHAR

Definition at line 180 of file xmlstorage.h.