Class that represents an xml type. More...
#include <SPL/Runtime/Type/Xml.h>
Class that represents an xml type.
An xml type has an optional schema, and contains the xml value
| SPL::xml::xml |
( |
const char * |
schema |
) |
|
|
inline |
Constructor
- Parameters
-
| schema |
Schema against which the xml is validated An empty string signifies no validation |
| SPL::xml::xml |
( |
const std::string & |
schema |
) |
|
|
inline |
Constructor
- Parameters
-
| schema |
Schema against which the xml is validated |
| SPL::xml::xml |
( |
const char * |
schema, |
|
|
const char * |
data, |
|
|
size_t |
size |
|
) |
|
|
|
inline |
Constructor
- Parameters
-
| schema |
Schema against which the xml is validated |
| data |
XML data |
| size |
size of XML data |
| SPL::xml::xml |
( |
const char * |
schema, |
|
|
const char * |
value |
|
) |
|
|
|
inline |
Constructor
- Parameters
-
| schema |
schema for XML |
| value |
initial XML value |
| SPL::xml::xml |
( |
const std::string & |
schema, |
|
|
const std::string & |
value |
|
) |
|
|
|
inline |
Constructor
- Parameters
-
| schema |
schema for XML |
| value |
initial XML value |
| SPL::xml::xml |
( |
const std::string & |
schema, |
|
|
const char * |
data, |
|
|
size_t |
size |
|
) |
|
|
|
inline |
Constructor
- Parameters
-
| schema |
schema for XML |
| data |
XML data |
| size |
size of XML data |
| SPL::xml::xml |
( |
const xml & |
ot |
) |
|
|
inline |
Copy contructor
- Parameters
-
| virtual SPL::xml::~xml |
( |
|
) |
|
|
inlinevirtual |
| bool SPL::xml::operator== |
( |
const xml & |
rhs |
) |
const |
|
inline |
Equality operator
- Parameters
-
| bool SPL::xml::operator!= |
( |
const xml & |
rhs |
) |
const |
|
inline |
Inequality operator
- Parameters
-
| xml& SPL::xml::operator= |
( |
const xml & |
rhs |
) |
|
|
inline |
Assignment operator
- Parameters
-
| xml& SPL::xml::operator= |
( |
const std::string & |
rhs |
) |
|
|
inline |
Assignment operator
- Parameters
-
| rhs |
string value to assign |
Assignment operator
- Parameters
-
| rhs |
tuple value to assign |
| void SPL::xml::swap |
( |
xml & |
ot |
) |
|
|
inline |
Clear - clear the XML object.
| const std::string& SPL::xml::getValue |
( |
|
) |
const |
|
inline |
The XML value
- Returns
- the XML value
| const std::string& SPL::xml::getSchema |
( |
|
) |
const |
|
inline |
The XML schema
- Returns
- the XML schema
| bool SPL::xml::hasSchema |
( |
|
) |
const |
|
inline |
Does this XML value have an associate XML schema
- Returns
- true if there is a schema associated with the value
template<class BufferType >
| void SPL::xml::serialize |
( |
ByteBuffer< BufferType > & |
buf |
) |
const |
|
inline |
Serialize (binary)
- Parameters
-
template<class BufferType >
| void SPL::xml::deserialize |
( |
ByteBuffer< BufferType > & |
buf |
) |
|
|
inline |
Deserialize (binary)
- Parameters
-
| void SPL::xml::serialize |
( |
std::ostream & |
ostr |
) |
const |
Serialize (character)
- Parameters
-
| void SPL::xml::deserialize |
( |
std::istream & |
istr |
) |
|
Deserialize (character)
- Parameters
-
| size_t SPL::xml::hashCode |
( |
|
) |
const |
|
inline |
Get hash code
- Returns
- hash code
| size_t SPL::xml::getSerializedSize |
( |
|
) |
const |
|
inline |
Get the size in bytes when serialized
- Returns
- size in bytes when serialized
The documentation for this class was generated from the following file: