#include <parser.hpp>
Public Member Functions | |
| parser () | |
| void | deserialise (const std::string &file) |
| void | deserialise (std::istream &stream) |
| void | deserialise_memory (const std::string &mem) |
| void | serialise (const std::string &file) const |
| void | serialise (std::ostream &stream) const |
| void | serialise_memory (std::string &mem) const |
| const std::string & | get_type () const |
| void | set_type (const std::string &type) |
| const object & | get_root () const |
| object & | get_root () |
Protected Attributes | |
| std::string | m_type |
| object | m_object |
Definition at line 33 of file parser.hpp.
| obby::serialise::parser::parser | ( | ) |
Definition at line 25 of file parser.cpp.
| void obby::serialise::parser::deserialise | ( | const std::string & | file | ) |
Definition at line 29 of file parser.cpp.
References obby::_(), and obby::basic_format_string< string_type, stream_type >::str().
Referenced by obby::basic_server_buffer< Document, Selector >::open().
| void obby::serialise::parser::deserialise | ( | std::istream & | stream | ) |
| void obby::serialise::parser::deserialise_memory | ( | const std::string & | mem | ) |
Definition at line 87 of file parser.cpp.
References obby::_(), obby::serialise::token_list::begin(), obby::serialise::object::deserialise(), obby::serialise::token_list::deserialise(), obby::serialise::token_list::end(), m_object, m_type, obby::serialise::token_list::next_token(), obby::serialise::token::TYPE_EXCLAMATION, obby::serialise::token::TYPE_IDENTIFIER, and obby::serialise::token::TYPE_INDENTATION.
Referenced by deserialise().
| void obby::serialise::parser::serialise | ( | const std::string & | file | ) | const |
Definition at line 153 of file parser.cpp.
References obby::_(), and obby::basic_format_string< string_type, stream_type >::str().
Referenced by obby::basic_buffer< Document, Selector >::serialise().
| void obby::serialise::parser::serialise | ( | std::ostream & | stream | ) | const |
| void obby::serialise::parser::serialise_memory | ( | std::string & | mem | ) | const |
Definition at line 180 of file parser.cpp.
References obby::serialise::token_list::add(), m_object, m_type, obby::serialise::token_list::serialise(), obby::serialise::object::serialise(), obby::serialise::token::TYPE_EXCLAMATION, obby::serialise::token::TYPE_IDENTIFIER, and obby::serialise::token::TYPE_INDENTATION.
Referenced by serialise().
| const std::string & obby::serialise::parser::get_type | ( | ) | const |
Definition at line 197 of file parser.cpp.
References m_type.
Referenced by obby::basic_server_buffer< Document, Selector >::open().
| void obby::serialise::parser::set_type | ( | const std::string & | type | ) |
Definition at line 202 of file parser.cpp.
References m_type.
Referenced by obby::basic_buffer< Document, Selector >::serialise().
| const obby::serialise::object & obby::serialise::parser::get_root | ( | ) | const |
Definition at line 207 of file parser.cpp.
References m_object.
Referenced by obby::basic_server_buffer< Document, Selector >::open(), and obby::basic_buffer< Document, Selector >::serialise().
| obby::serialise::object & obby::serialise::parser::get_root | ( | ) |
std::string obby::serialise::parser::m_type [protected] |
Definition at line 72 of file parser.hpp.
Referenced by deserialise_memory(), get_type(), serialise_memory(), and set_type().
object obby::serialise::parser::m_object [protected] |
Definition at line 73 of file parser.hpp.
Referenced by deserialise_memory(), get_root(), and serialise_memory().
1.5.1