#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 () |
void | set_source (source_type source) |
Static Public Member Functions | |
static source_type | get_source_from_config (config &src) |
Private Member Functions | |
void | read_from_network () |
Private Attributes | |
std::list< config > | data_ |
config::all_children_iterator | next_ |
unsigned int | next_command_num_ |
source_type | network_reader_ |
Definition at line 13 of file playturn_network_adapter.hpp.
typedef std::function<bool(config&)> playturn_network_adapter::source_type |
Definition at line 16 of file playturn_network_adapter.hpp.
playturn_network_adapter::playturn_network_adapter | ( | source_type | source | ) |
Definition at line 116 of file playturn_network_adapter.cpp.
playturn_network_adapter::~playturn_network_adapter | ( | ) |
Definition at line 126 of file playturn_network_adapter.cpp.
References is_at_end(), and LOG_NW.
|
static |
Definition at line 156 of file playturn_network_adapter.cpp.
References read_config().
Referenced by playmp_controller::wait_for_upload().
bool playturn_network_adapter::is_at_end | ( | ) |
Definition at line 61 of file playturn_network_adapter.cpp.
Referenced by read(), and ~playturn_network_adapter().
bool playturn_network_adapter::read | ( | config & | dst | ) |
Definition at line 67 of file playturn_network_adapter.cpp.
References config::add_child(), data_, config::empty(), is_at_end(), itor, next_, next_command_num_, config::ordered_begin(), read_from_network(), and config::swap().
Referenced by playmp_controller::play_linger_turn(), playmp_controller::process_network_data(), turn_info::process_network_data_from_reader(), and turn_info::sync_network().
|
private |
Definition at line 16 of file playturn_network_adapter.cpp.
References config::attribute_range(), data_, config::debug(), config::empty(), ERR_NW, config::has_attribute(), network_reader_, and config::remove_attribute().
Referenced by read().
void playturn_network_adapter::set_source | ( | source_type | source | ) |
Definition at line 136 of file playturn_network_adapter.cpp.
References network_reader_.
Referenced by playmp_controller::wait_for_upload().
|
private |
Definition at line 34 of file playturn_network_adapter.hpp.
Referenced by is_at_end(), read(), and read_from_network().
|
private |
Definition at line 41 of file playturn_network_adapter.hpp.
Referenced by read_from_network(), and set_source().
|
private |
Definition at line 36 of file playturn_network_adapter.hpp.
Referenced by is_at_end(), and read().
|
private |
Definition at line 39 of file playturn_network_adapter.hpp.
Referenced by read().