HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pugixml.hpp File Reference
#include "pugiconfig.hpp"
#include <OpenImageIO/oiioversion.h>
#include <cstddef>
#include <exception>
#include <iterator>
#include <iosfwd>
#include <string>
#include "pugixml.cpp"
+ Include dependency graph for pugixml.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  pugi::xml_object_range< It >
 
class  pugi::xml_writer
 
class  pugi::xml_writer_file
 
class  pugi::xml_writer_stream
 
class  pugi::xml_attribute
 
class  pugi::xml_node
 
class  pugi::xml_text
 
class  pugi::xml_node_iterator
 
class  pugi::xml_attribute_iterator
 
class  pugi::xml_named_node_iterator
 
class  pugi::xml_tree_walker
 
struct  pugi::xml_parse_result
 
class  pugi::xml_document
 
struct  pugi::xpath_parse_result
 
class  pugi::xpath_variable
 
class  pugi::xpath_variable_set
 
class  pugi::xpath_query
 
class  pugi::xpath_exception
 
class  pugi::xpath_node
 
class  pugi::xpath_node_set
 

Namespaces

 pugi
 

Macros

#define PUGIXML_VERSION   180
 
#define USING_OIIO_PUGI   1
 
#define PUGIXML_DEPRECATED
 
#define PUGIXML_CLASS   PUGIXML_API
 
#define PUGIXML_FUNCTION   PUGIXML_API
 
#define PUGIXML_OVERRIDE
 
#define PUGIXML_TEXT(t)   t
 
#define PUGIXML_CHAR   char
 
#define PUGIXML_SOURCE   "pugixml.cpp"
 

Typedefs

typedef PUGIXML_CHAR char_t
 
typedef std::basic_string
< PUGIXML_CHAR,
std::char_traits< PUGIXML_CHAR >
, std::allocator< PUGIXML_CHAR > > 
string_t
 
typedef void *(* allocation_function )(size_t size)
 
typedef void(* deallocation_function )(void *ptr)
 

Enumerations

enum  xml_node_type {
  node_null, node_document, node_element, node_pcdata,
  node_cdata, node_comment, node_newline, node_pi,
  node_declaration, node_doctype, node_null, node_document,
  node_element, node_pcdata, node_cdata, node_comment,
  node_pi, node_declaration, node_doctype
}
 
enum  xml_encoding {
  encoding_auto, encoding_utf8, encoding_utf16_le, encoding_utf16_be,
  encoding_utf16, encoding_utf32_le, encoding_utf32_be, encoding_utf32,
  encoding_wchar, encoding_latin1, encoding_auto, encoding_utf8,
  encoding_utf16_le, encoding_utf16_be, encoding_utf16, encoding_utf32_le,
  encoding_utf32_be, encoding_utf32, encoding_wchar, encoding_latin1
}
 
enum  xml_parse_status {
  status_ok = 0, status_file_not_found, status_io_error, status_out_of_memory,
  status_internal_error, status_unrecognized_tag, status_bad_pi, status_bad_comment,
  status_bad_cdata, status_bad_doctype, status_bad_pcdata, status_bad_start_element,
  status_bad_attribute, status_bad_end_element, status_end_element_mismatch, status_append_invalid_root,
  status_no_document_element, status_ok = 0, status_file_not_found, status_io_error,
  status_out_of_memory, status_internal_error, status_unrecognized_tag, status_bad_pi,
  status_bad_comment, status_bad_cdata, status_bad_doctype, status_bad_pcdata,
  status_bad_start_element, status_bad_attribute, status_bad_end_element, status_end_element_mismatch,
  status_append_invalid_root, status_no_document_element
}
 
enum  xpath_value_type {
  xpath_type_none, xpath_type_node_set, xpath_type_number, xpath_type_string,
  xpath_type_boolean, xpath_type_none, xpath_type_node_set, xpath_type_number,
  xpath_type_string, xpath_type_boolean
}
 

Functions

std::basic_string< char,
std::char_traits< char >
, std::allocator< char >
> PUGIXML_FUNCTION 
as_utf8 (const wchar_t *str)
 
std::basic_string< char,
std::char_traits< char >
, std::allocator< char >
> PUGIXML_FUNCTION 
as_utf8 (const std::basic_string< wchar_t, std::char_traits< wchar_t >, std::allocator< wchar_t > > &str)
 
std::basic_string< wchar_t,
std::char_traits< wchar_t >
, std::allocator< wchar_t >
> PUGIXML_FUNCTION 
as_wide (const char *str)
 
std::basic_string< wchar_t,
std::char_traits< wchar_t >
, std::allocator< wchar_t >
> PUGIXML_FUNCTION 
as_wide (const std::basic_string< char, std::char_traits< char >, std::allocator< char > > &str)
 
void PUGIXML_FUNCTION set_memory_management_functions (allocation_function allocate, deallocation_function deallocate)
 
allocation_function
PUGIXML_FUNCTION 
get_memory_allocation_function ()
 
deallocation_function
PUGIXML_FUNCTION 
get_memory_deallocation_function ()
 

Variables

const unsigned int parse_minimal = 0x0000
 
const unsigned int parse_pi = 0x0001
 
const unsigned int parse_comments = 0x0002
 
const unsigned int parse_cdata = 0x0004
 
const unsigned int parse_ws_pcdata = 0x0008
 
const unsigned int parse_escapes = 0x0010
 
const unsigned int parse_eol = 0x0020
 
const unsigned int parse_wconv_attribute = 0x0040
 
const unsigned int parse_wnorm_attribute = 0x0080
 
const unsigned int parse_declaration = 0x0100
 
const unsigned int parse_doctype = 0x0200
 
const unsigned int parse_ws_pcdata_single = 0x0400
 
const unsigned int parse_trim_pcdata = 0x0800
 
const unsigned int parse_fragment = 0x1000
 
const unsigned int parse_embed_pcdata = 0x2000
 
const unsigned int parse_default = parse_cdata | parse_escapes | parse_wconv_attribute | parse_eol
 
const unsigned int parse_full = parse_default | parse_pi | parse_comments | parse_declaration | parse_doctype
 
const unsigned int format_indent = 0x01
 
const unsigned int format_write_bom = 0x02
 
const unsigned int format_raw = 0x04
 
const unsigned int format_no_declaration = 0x08
 
const unsigned int format_no_escapes = 0x10
 
const unsigned int format_save_file_text = 0x20
 
const unsigned int format_indent_attributes = 0x40
 
const unsigned int format_no_empty_element_tags = 0x80
 
const unsigned int format_default = format_indent
 

Macro Definition Documentation

#define PUGIXML_CHAR   char

Definition at line 103 of file pugixml.hpp.

#define PUGIXML_CLASS   PUGIXML_API

Definition at line 62 of file pugixml.hpp.

#define PUGIXML_DEPRECATED

Definition at line 51 of file pugixml.hpp.

#define PUGIXML_FUNCTION   PUGIXML_API

Definition at line 67 of file pugixml.hpp.

#define PUGIXML_OVERRIDE

Definition at line 93 of file pugixml.hpp.

#define PUGIXML_SOURCE   "pugixml.cpp"

Definition at line 1420 of file pugixml.hpp.

#define PUGIXML_TEXT (   t)    t

Definition at line 102 of file pugixml.hpp.

#define PUGIXML_VERSION   180

pugixml parser - version 1.8

Copyright (C) 2006-2016, by Arseny Kapoulkine (arsen.nosp@m.y.ka.nosp@m.poulk.nosp@m.ine@.nosp@m.gmail.nosp@m..com) Report bugs and download new versions at http://pugixml.org/

This library is distributed under the MIT License. See notice at the end of this file.

This work is based on the pugxml parser, which is: Copyright (C) 2003, by Kristen Wegner (krist.nosp@m.en@t.nosp@m.ima.n.nosp@m.et)

Definition at line 17 of file pugixml.hpp.

#define USING_OIIO_PUGI   1

Definition at line 27 of file pugixml.hpp.

Typedef Documentation

typedef void*(* allocation_function)(size_t size)

Definition at line 1381 of file pugixml.hpp.

Definition at line 117 of file pugixml.hpp.

typedef void(* deallocation_function)(void *ptr)

Definition at line 1384 of file pugixml.hpp.

typedef std::basic_string<PUGIXML_CHAR, std::char_traits<PUGIXML_CHAR>, std::allocator<PUGIXML_CHAR> > string_t

Definition at line 121 of file pugixml.hpp.

Enumeration Type Documentation

Enumerator
encoding_auto 
encoding_utf8 
encoding_utf16_le 
encoding_utf16_be 
encoding_utf16 
encoding_utf32_le 
encoding_utf32_be 
encoding_utf32 
encoding_wchar 
encoding_latin1 
encoding_auto 
encoding_utf8 
encoding_utf16_le 
encoding_utf16_be 
encoding_utf16 
encoding_utf32_le 
encoding_utf32_be 
encoding_utf32 
encoding_wchar 
encoding_latin1 

Definition at line 207 of file pugixml.hpp.

Enumerator
node_null 
node_document 
node_element 
node_pcdata 
node_cdata 
node_comment 
node_newline 
node_pi 
node_declaration 
node_doctype 
node_null 
node_document 
node_element 
node_pcdata 
node_cdata 
node_comment 
node_pi 
node_declaration 
node_doctype 

Definition at line 129 of file pugixml.hpp.

Enumerator
status_ok 
status_file_not_found 
status_io_error 
status_out_of_memory 
status_internal_error 
status_unrecognized_tag 
status_bad_pi 
status_bad_comment 
status_bad_cdata 
status_bad_doctype 
status_bad_pcdata 
status_bad_start_element 
status_bad_attribute 
status_bad_end_element 
status_end_element_mismatch 
status_append_invalid_root 
status_no_document_element 
status_ok 
status_file_not_found 
status_io_error 
status_out_of_memory 
status_internal_error 
status_unrecognized_tag 
status_bad_pi 
status_bad_comment 
status_bad_cdata 
status_bad_doctype 
status_bad_pcdata 
status_bad_start_element 
status_bad_attribute 
status_bad_end_element 
status_end_element_mismatch 
status_append_invalid_root 
status_no_document_element 

Definition at line 936 of file pugixml.hpp.

Enumerator
xpath_type_none 
xpath_type_node_set 
xpath_type_number 
xpath_type_string 
xpath_type_boolean 
xpath_type_none 
xpath_type_node_set 
xpath_type_number 
xpath_type_string 
xpath_type_boolean 

Definition at line 1058 of file pugixml.hpp.

Function Documentation

std::basic_string<char, std::char_traits<char>, std::allocator<char> > PUGIXML_FUNCTION pugi::as_utf8 ( const wchar_t *  str)

Definition at line 7053 of file pugixml.cpp.

std::basic_string<char, std::char_traits<char>, std::allocator<char> > PUGIXML_FUNCTION pugi::as_utf8 ( const std::basic_string< wchar_t, std::char_traits< wchar_t >, std::allocator< wchar_t > > &  str)
std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > PUGIXML_FUNCTION pugi::as_wide ( const char *  str)

Definition at line 7065 of file pugixml.cpp.

std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > PUGIXML_FUNCTION pugi::as_wide ( const std::basic_string< char, std::char_traits< char >, std::allocator< char > > &  str)
allocation_function PUGIXML_FUNCTION pugi::get_memory_allocation_function ( )

Definition at line 7084 of file pugixml.cpp.

deallocation_function PUGIXML_FUNCTION pugi::get_memory_deallocation_function ( )

Definition at line 7089 of file pugixml.cpp.

void PUGIXML_FUNCTION pugi::set_memory_management_functions ( allocation_function  allocate,
deallocation_function  deallocate 
)

Definition at line 7078 of file pugixml.cpp.

Variable Documentation

const unsigned int format_default = format_indent

Definition at line 249 of file pugixml.hpp.

const unsigned int format_indent = 0x01

Definition at line 224 of file pugixml.hpp.

const unsigned int format_indent_attributes = 0x40

Definition at line 242 of file pugixml.hpp.

const unsigned int format_no_declaration = 0x08

Definition at line 233 of file pugixml.hpp.

const unsigned int format_no_empty_element_tags = 0x80

Definition at line 245 of file pugixml.hpp.

const unsigned int format_no_escapes = 0x10

Definition at line 236 of file pugixml.hpp.

const unsigned int format_raw = 0x04

Definition at line 230 of file pugixml.hpp.

const unsigned int format_save_file_text = 0x20

Definition at line 239 of file pugixml.hpp.

const unsigned int format_write_bom = 0x02

Definition at line 227 of file pugixml.hpp.

const unsigned int parse_cdata = 0x0004

Definition at line 155 of file pugixml.hpp.

const unsigned int parse_comments = 0x0002

Definition at line 152 of file pugixml.hpp.

const unsigned int parse_declaration = 0x0100

Definition at line 174 of file pugixml.hpp.

Definition at line 199 of file pugixml.hpp.

const unsigned int parse_doctype = 0x0200

Definition at line 177 of file pugixml.hpp.

const unsigned int parse_embed_pcdata = 0x2000

Definition at line 194 of file pugixml.hpp.

const unsigned int parse_eol = 0x0020

Definition at line 165 of file pugixml.hpp.

const unsigned int parse_escapes = 0x0010

Definition at line 162 of file pugixml.hpp.

const unsigned int parse_fragment = 0x1000

Definition at line 189 of file pugixml.hpp.

Definition at line 204 of file pugixml.hpp.

const unsigned int parse_minimal = 0x0000

Definition at line 146 of file pugixml.hpp.

const unsigned int parse_pi = 0x0001

Definition at line 149 of file pugixml.hpp.

const unsigned int parse_trim_pcdata = 0x0800

Definition at line 185 of file pugixml.hpp.

const unsigned int parse_wconv_attribute = 0x0040

Definition at line 168 of file pugixml.hpp.

const unsigned int parse_wnorm_attribute = 0x0080

Definition at line 171 of file pugixml.hpp.

const unsigned int parse_ws_pcdata = 0x0008

Definition at line 159 of file pugixml.hpp.

const unsigned int parse_ws_pcdata_single = 0x0400

Definition at line 182 of file pugixml.hpp.