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

#include <replay_recorder_base.hpp>

Public Member Functions

 replay_recorder_base ()
 
 ~replay_recorder_base ()
 
void swap (replay_recorder_base &other)
 
int get_pos () const
 
int size () const
 
configget_command_at (int pos)
 
configadd_child ()
 
configget_upload_log ()
 
void remove_command (int index)
 
configinsert_command (int index)
 
void set_to_end ()
 
void set_pos (int pos)
 
void append_config (const config &data)
 
void append_config (config &data)
 Clears the passed config. More...
 
void write (config_writer &out) const
 
void write (config &out) const
 
void delete_upcoming_commands ()
 

Protected Attributes

config upload_log_
 
boost::ptr_vector< configcommands_
 
int pos_
 

Detailed Description

Definition at line 8 of file replay_recorder_base.hpp.

Constructor & Destructor Documentation

replay_recorder_base::replay_recorder_base ( void  )

Definition at line 5 of file replay_recorder_base.cpp.

replay_recorder_base::~replay_recorder_base ( void  )

Definition at line 14 of file replay_recorder_base.cpp.

Member Function Documentation

config & replay_recorder_base::add_child ( )

Definition at line 42 of file replay_recorder_base.cpp.

References commands_, pos_, and size().

Referenced by replay::add_command(), and replay::redo().

void replay_recorder_base::append_config ( const config data)

Definition at line 84 of file replay_recorder_base.cpp.

References config::child(), config::child_range(), commands_, and upload_log_.

Referenced by saved_game::set_data().

void replay_recorder_base::append_config ( config data)

Clears the passed config.

Definition at line 96 of file replay_recorder_base.cpp.

References config::child(), config::child_range(), commands_, config::swap(), and upload_log_.

void replay_recorder_base::delete_upcoming_commands ( )

Definition at line 127 of file replay_recorder_base.cpp.

References commands_, and pos_.

Referenced by replay::delete_upcoming_commands().

config & replay_recorder_base::get_command_at ( int  pos)
int replay_recorder_base::get_pos ( ) const
config & replay_recorder_base::get_upload_log ( )

Definition at line 58 of file replay_recorder_base.cpp.

References upload_log_.

Referenced by replay::add_log_data().

config & replay_recorder_base::insert_command ( int  index)
void replay_recorder_base::remove_command ( int  index)

Definition at line 63 of file replay_recorder_base.cpp.

References commands_, pos_, and size().

Referenced by replay::remove_command().

void replay_recorder_base::set_pos ( int  pos)
void replay_recorder_base::set_to_end ( )
int replay_recorder_base::size ( ) const
void replay_recorder_base::swap ( replay_recorder_base other)

Definition at line 19 of file replay_recorder_base.cpp.

References commands_, pos_, swap(), config::swap(), and upload_log_.

Referenced by saved_game::swap().

void replay_recorder_base::write ( config_writer out) const
void replay_recorder_base::write ( config out) const

Definition at line 119 of file replay_recorder_base.cpp.

References config::add_child(), commands_, i, pos_, and upload_log_.

Member Data Documentation

boost::ptr_vector<config> replay_recorder_base::commands_
protected
int replay_recorder_base::pos_
protected
config replay_recorder_base::upload_log_
protected

Definition at line 43 of file replay_recorder_base.hpp.

Referenced by append_config(), get_upload_log(), swap(), and write().


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