#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 | push_front (config &&cfg) |
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 129 of file playturn_network_adapter.cpp.
| playturn_network_adapter::~playturn_network_adapter | ( | ) |
Definition at line 139 of file playturn_network_adapter.cpp.
References is_at_end(), and LOG_NW.
| bool playturn_network_adapter::is_at_end | ( | ) | const |
Definition at line 64 of file playturn_network_adapter.cpp.
Referenced by read(), and ~playturn_network_adapter().
| void playturn_network_adapter::push_front | ( | config && | cfg | ) |
Definition at line 71 of file playturn_network_adapter.cpp.
References cfg, and data_front_.
Referenced by playmp_controller::process_network_data().
| bool playturn_network_adapter::read | ( | config & | dst | ) |
Definition at line 76 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 29 of file playturn_network_adapter.cpp.
References config::attribute_range(), data_, DBG_NW, config::debug(), config::empty(), ERR_NW, utils::get_unknown_exception_type(), and network_reader_.
Referenced by read().
|
private |
Definition at line 50 of file playturn_network_adapter.hpp.
Referenced by is_at_end(), read(), and read_from_network().
|
private |
Definition at line 52 of file playturn_network_adapter.hpp.
Referenced by push_front(), and read().
|
private |
Definition at line 43 of file playturn_network_adapter.hpp.
Referenced by read_from_network().
|
private |
Definition at line 54 of file playturn_network_adapter.hpp.
Referenced by is_at_end(), and read().
|
private |
Definition at line 57 of file playturn_network_adapter.hpp.
Referenced by read().