|
Sese Framework
3.0.0
A cross-platform framework
|
XML Serialization Utility Class. More...
#include <XmlUtil.h>
Public Types | |
| using | InputStream = io::InputStream |
| using | OutputStream = io::OutputStream |
| using | Tokens = std::queue<std::string> |
Public Member Functions | |
| XmlUtil ()=delete | |
Public Member Functions inherited from sese::NotInstantiable | |
| NotInstantiable ()=delete | |
| virtual | ~NotInstantiable ()=default |
| NotInstantiable (const NotInstantiable &)=delete | |
| NotInstantiable & | operator= (const NotInstantiable &)=delete |
Static Public Member Functions | |
| static Element::Ptr | deserialize (const InputStream::Ptr &input_stream, size_t level) noexcept |
| static Element::Ptr | deserialize (InputStream *input_stream, size_t level) noexcept |
| static void | serialize (const Element::Ptr &object, const OutputStream::Ptr &output_stream) noexcept |
| static void | serialize (const Element::Ptr &object, OutputStream *output_stream) noexcept |
Static Private Member Functions | |
| static void | tokenizer (InputStream *input_stream, Tokens &tokens) noexcept |
| static bool | removeComment (Tokens &tokens) noexcept |
| static Element::Ptr | createElement (Tokens &tokens, size_t level, bool is_sub_element) noexcept |
XML Serialization Utility Class.
| using sese::xml::XmlUtil::Tokens = std::queue<std::string> |
|
delete |
|
staticprivatenoexcept |
|
staticnoexcept |
Deserialize an XML element object from a stream
| input_stream | Input stream |
| level | Deserialization depth |
| nullptr | Deserialization failed, otherwise succeeded |
|
staticnoexcept |
Deserialize an XML element object from a stream
| input_stream | Input stream |
| level | Deserialization depth |
| nullptr | Deserialization failed, otherwise succeeded |
|
staticprivatenoexcept |
|
staticnoexcept |
Serialize an XML element object to a stream
| object | Object to be serialized |
| output_stream | Output stream |
|
staticnoexcept |
Serialize an XML element object to a stream
| object | Object to be serialized |
| output_stream | Output stream |
|
staticprivatenoexcept |