obby::serialise::parser Class Reference

#include <parser.hpp>

List of all members.

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 objectget_root () const
objectget_root ()

Protected Attributes

std::string m_type
object m_object


Detailed Description

Definition at line 33 of file parser.hpp.


Constructor & Destructor Documentation

obby::serialise::parser::parser (  ) 

Definition at line 25 of file parser.cpp.


Member Function Documentation

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  ) 

Definition at line 46 of file parser.cpp.

References deserialise_memory().

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

Definition at line 169 of file parser.cpp.

References serialise_memory().

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 (  ) 

Definition at line 212 of file parser.cpp.

References m_object.


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated on Fri Jan 11 10:01:33 2008 for obby by  doxygen 1.5.1