#include <simple_wml.hpp>

Public Member Functions | |
| document () | |
| document (char *buf, INIT_BUFFER_CONTROL control=INIT_TAKE_OWNERSHIP) | |
| document (const char *buf, INIT_STATE state) | |
| document (string_span compressed_buf) | |
| ~document () | |
| const char * | dup_string (const char *str) |
| node & | root () |
| const node & | root () const |
| const char * | output () |
| string_span | output_compressed () |
| void | compress () |
| document * | clone () |
| const string_span & | operator[] (const char *key) const |
| const string_span & | attr (const char *key) const |
| node * | child (const char *name) |
| const node * | child (const char *name) const |
| node & | set_attr (const char *key, const char *value) |
| node & | set_attr_dup (const char *key, const char *value) |
| void | take_ownership_of_buffer (char *buffer) |
| void | swap (document &o) |
| void | clear () |
Static Public Member Functions | |
| static std::string | stats () |
Private Member Functions | |
| void | generate_root () |
| document (const document &) | |
| void | operator= (const document &) |
| void | attach_list () |
| void | detach_list () |
Private Attributes | |
| string_span | compressed_buf_ |
| const char * | output_ |
| std::vector< char * > | buffers_ |
| node * | root_ |
| document * | prev_ |
| document * | next_ |
Definition at line 210 of file simple_wml.hpp.
| simple_wml::document::document | ( | ) |
Definition at line 909 of file simple_wml.cpp.
References attach_list().
Referenced by clone().


| simple_wml::document::document | ( | char * | buf, | |
| INIT_BUFFER_CONTROL | control = INIT_TAKE_OWNERSHIP | |||
| ) | [explicit] |
Definition at line 920 of file simple_wml.cpp.
References attach_list(), buffers_, simple_wml::INIT_TAKE_OWNERSHIP, and root_.

| simple_wml::document::document | ( | const char * | buf, | |
| INIT_STATE | state | |||
| ) |
Definition at line 937 of file simple_wml.cpp.
References attach_list(), simple_wml::INIT_COMPRESSED, output_, output_compressed(), and root_.

| simple_wml::document::document | ( | string_span | compressed_buf | ) | [explicit] |
Definition at line 955 of file simple_wml.cpp.
References attach_list(), simple_wml::string_span::begin(), buffers_, output_, and root_.

| simple_wml::document::~document | ( | ) |
Definition at line 978 of file simple_wml.cpp.
References buffers_, detach_list(), and root_.

| simple_wml::document::document | ( | const document & | ) | [private] |
| void simple_wml::document::attach_list | ( | ) | [private] |
Definition at line 1125 of file simple_wml.cpp.
Referenced by document().

| const string_span& simple_wml::document::attr | ( | const char * | key | ) | const [inline] |
Definition at line 233 of file simple_wml.hpp.
References root().

| node* simple_wml::document::child | ( | const char * | name | ) | [inline] |
Definition at line 237 of file simple_wml.hpp.
References simple_wml::node::child(), and root().
Referenced by server::delete_game(), wesnothd::game::level_init(), server::process_data_game(), server::process_data_lobby(), server::process_login(), wesnothd::game::process_whiteboard(), server::send_error(), server::send_warning(), and server::update_game_in_lobby().


| const node* simple_wml::document::child | ( | const char * | name | ) | const [inline] |
Definition at line 241 of file simple_wml.hpp.
References simple_wml::node::child(), and root().

| void simple_wml::document::clear | ( | ) |
Definition at line 1108 of file simple_wml.cpp.
References buffers_, compressed_buf_, output_, and root_.
Referenced by server::process_data_game().

| document * simple_wml::document::clone | ( | ) |
Definition at line 1090 of file simple_wml.cpp.
References document(), and output().
Referenced by wesnothd::game::process_turn().


| void simple_wml::document::compress | ( | ) |
Definition at line 1057 of file simple_wml.cpp.
References simple_wml::string_span::begin(), buffers_, compressed_buf_, output_, output_compressed(), and root_.
Referenced by wesnothd::game::record_data(), and wesnothd::game::send_history().


| void simple_wml::document::detach_list | ( | ) | [private] |
Definition at line 1136 of file simple_wml.cpp.
Referenced by ~document().

| const char * simple_wml::document::dup_string | ( | const char * | str | ) |
Definition at line 990 of file simple_wml.cpp.
References buffers_.
Referenced by simple_wml::node::set_attr_dup().

| void simple_wml::document::generate_root | ( | ) | [private] |
Definition at line 1076 of file simple_wml.cpp.
References buffers_, compressed_buf_, simple_wml::string_span::empty(), output_, and root_.
Referenced by root().


| void simple_wml::document::operator= | ( | const document & | ) | [private] |
| const string_span& simple_wml::document::operator[] | ( | const char * | key | ) | const [inline] |
Definition at line 229 of file simple_wml.hpp.
References root().

| const char * simple_wml::document::output | ( | ) |
Definition at line 999 of file simple_wml.cpp.
References buffers_, compressed_buf_, simple_wml::string_span::empty(), ERR_SWML, error(), simple_wml::node::is_dirty(), simple_wml::node::output(), output_, simple_wml::node::output_size(), simple_wml::node::REFRESH_CACHE, and root_.
Referenced by clone(), output_compressed(), server::process_data_game(), and wesnothd::game::save_replay().


| string_span simple_wml::document::output_compressed | ( | ) |
Definition at line 1043 of file simple_wml.cpp.
References simple_wml::string_span::begin(), buffers_, compressed_buf_, simple_wml::string_span::empty(), simple_wml::node::is_dirty(), output(), and root_.
Referenced by compress(), document(), and wesnothd::game::send_history().


| const node& simple_wml::document::root | ( | ) | const [inline] |
Definition at line 220 of file simple_wml.hpp.
References generate_root(), and root_.

| node& simple_wml::document::root | ( | ) | [inline] |
Definition at line 219 of file simple_wml.hpp.
References generate_root(), and root_.
Referenced by server::adminmsg_handler(), wesnothd::game::allow_global(), attr(), wesnothd::game::change_controller(), child(), server::delete_game(), wesnothd::game::describe_slots(), wesnothd::game::is_on_team(), wesnothd::game::load_next_scenario(), operator[](), server::pm_handler(), server::process_data(), server::process_data_game(), server::process_data_lobby(), server::process_login(), wesnothd::room_manager::process_message(), wesnothd::game::process_message(), server::process_nickserv(), wesnothd::room_manager::process_room_join(), wesnothd::room_manager::process_room_part(), wesnothd::room_manager::process_room_query(), wesnothd::game::process_turn(), server::process_whisper(), server::run(), server::send_error(), wesnothd::game::send_observerjoins(), wesnothd::game::send_observerquit(), server::send_password_request(), wesnothd::room::send_server_message(), wesnothd::game::send_server_message(), wesnothd::game::send_taken_side(), wesnothd::game::send_user_list(), server::send_warning(), set_attr(), set_attr_dup(), wesnothd::game::start_game(), wesnothd::game::take_side(), wesnothd::game::transfer_side_control(), wesnothd::room_manager::unstore_player_rooms(), and wesnothd::game::update_side_data().


| node& simple_wml::document::set_attr | ( | const char * | key, | |
| const char * | value | |||
| ) | [inline] |
Definition at line 245 of file simple_wml.hpp.
References root(), and simple_wml::node::set_attr().

| node& simple_wml::document::set_attr_dup | ( | const char * | key, | |
| const char * | value | |||
| ) | [inline] |
Definition at line 249 of file simple_wml.hpp.
References root(), and simple_wml::node::set_attr_dup().

| std::string simple_wml::document::stats | ( | ) | [static] |
Definition at line 1152 of file simple_wml.cpp.
References simple_wml::string_span::size().
Referenced by server::wml_handler().


| void simple_wml::document::swap | ( | document & | o | ) |
Definition at line 1097 of file simple_wml.cpp.
References buffers_, compressed_buf_, output_, root_, and simple_wml::node::set_doc().
Referenced by server::process_data_game().


| void simple_wml::document::take_ownership_of_buffer | ( | char * | buffer | ) | [inline] |
Definition at line 253 of file simple_wml.hpp.
References buffers_.
Referenced by simple_wml::node::apply_diff(), simple_wml::node::copy_into(), and simple_wml::node::set_attr_dup().

std::vector<char*> simple_wml::document::buffers_ [private] |
Definition at line 269 of file simple_wml.hpp.
Referenced by clear(), compress(), document(), dup_string(), generate_root(), output(), output_compressed(), swap(), take_ownership_of_buffer(), and ~document().
Definition at line 267 of file simple_wml.hpp.
Referenced by clear(), compress(), generate_root(), output(), output_compressed(), and swap().
document* simple_wml::document::next_ [private] |
Definition at line 276 of file simple_wml.hpp.
Referenced by attach_list(), and detach_list().
const char* simple_wml::document::output_ [private] |
Definition at line 268 of file simple_wml.hpp.
Referenced by clear(), compress(), document(), generate_root(), output(), and swap().
document* simple_wml::document::prev_ [private] |
Definition at line 275 of file simple_wml.hpp.
Referenced by attach_list(), and detach_list().
node* simple_wml::document::root_ [private] |
Definition at line 270 of file simple_wml.hpp.
Referenced by clear(), compress(), document(), generate_root(), output(), output_compressed(), root(), swap(), and ~document().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:25:56 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |