The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
playturn_network_adapter Class Reference

#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< configdata_
 
config::all_children_iterator next_
 
unsigned int next_command_num_
 
source_type network_reader_
 

Detailed Description

Definition at line 13 of file playturn_network_adapter.hpp.

Member Typedef Documentation

typedef std::function<bool(config&)> playturn_network_adapter::source_type

Definition at line 16 of file playturn_network_adapter.hpp.

Constructor & Destructor Documentation

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.

Member Function Documentation

playturn_network_adapter::source_type playturn_network_adapter::get_source_from_config ( config src)
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.

References data_, and next_.

Referenced by read(), and ~playturn_network_adapter().

bool playturn_network_adapter::read ( config dst)
void playturn_network_adapter::read_from_network ( )
private
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().

Member Data Documentation

std::list<config> playturn_network_adapter::data_
private

Definition at line 34 of file playturn_network_adapter.hpp.

Referenced by is_at_end(), read(), and read_from_network().

source_type playturn_network_adapter::network_reader_
private

Definition at line 41 of file playturn_network_adapter.hpp.

Referenced by read_from_network(), and set_source().

config::all_children_iterator playturn_network_adapter::next_
private

Definition at line 36 of file playturn_network_adapter.hpp.

Referenced by is_at_end(), and read().

unsigned int playturn_network_adapter::next_command_num_
private

Definition at line 39 of file playturn_network_adapter.hpp.

Referenced by read().


The documentation for this class was generated from the following files: