#include <playturn_network_adapter.hpp>
Public Types | |
typedef std::function< bool(config &)> | source_type |
Public Member Functions | |
playturn_network_adapter (source_type source) | |
~playturn_network_adapter () | |
bool | read (config &dst) |
bool | is_at_end () const |
void | set_source (source_type source) |
void | push_front (config &&cfg) |
Static Public Member Functions | |
static source_type | get_source_from_config (config &src) |
Private Member Functions | |
void | read_from_network () |
Private Attributes | |
source_type | network_reader_ |
std::list< config > | data_ |
std::list< config > | data_front_ |
config::all_children_iterator | next_ |
unsigned int | next_command_num_ |
Definition at line 24 of file playturn_network_adapter.hpp.
typedef std::function<bool(config&)> playturn_network_adapter::source_type |
Definition at line 27 of file playturn_network_adapter.hpp.
playturn_network_adapter::playturn_network_adapter | ( | source_type | source | ) |
Definition at line 130 of file playturn_network_adapter.cpp.
playturn_network_adapter::~playturn_network_adapter | ( | ) |
Definition at line 142 of file playturn_network_adapter.cpp.
References is_at_end(), and LOG_NW.
|
static |
Definition at line 172 of file playturn_network_adapter.cpp.
References read_config().
bool playturn_network_adapter::is_at_end | ( | ) | const |
Definition at line 65 of file playturn_network_adapter.cpp.
Referenced by read(), and ~playturn_network_adapter().
void playturn_network_adapter::push_front | ( | config && | cfg | ) |
Definition at line 72 of file playturn_network_adapter.cpp.
References data_front_.
Referenced by playmp_controller::process_network_data().
bool playturn_network_adapter::read | ( | config & | dst | ) |
Definition at line 77 of file playturn_network_adapter.cpp.
References config::add_child(), data_, data_front_, dst, rect::empty(), is_at_end(), next_, next_command_num_, config::ordered_begin(), read_from_network(), and config::swap().
Referenced by playmp_controller::process_network_data().
|
private |
Definition at line 28 of file playturn_network_adapter.cpp.
References config::attribute_range(), data_, DBG_NW, config::debug(), config::empty(), ERR_NW, utils::get_unknown_exception_type(), network_reader_, and config::remove_attribute().
Referenced by read().
void playturn_network_adapter::set_source | ( | source_type | source | ) |
Definition at line 152 of file playturn_network_adapter.cpp.
References network_reader_.
|
private |
Definition at line 53 of file playturn_network_adapter.hpp.
Referenced by is_at_end(), read(), and read_from_network().
|
private |
Definition at line 55 of file playturn_network_adapter.hpp.
Referenced by push_front(), and read().
|
private |
Definition at line 46 of file playturn_network_adapter.hpp.
Referenced by read_from_network(), and set_source().
|
private |
Definition at line 57 of file playturn_network_adapter.hpp.
Referenced by is_at_end(), and read().
|
private |
Definition at line 60 of file playturn_network_adapter.hpp.
Referenced by read().