Public Member Functions | Private Types | Private Attributes

soundsource::manager Class Reference

#include <soundsource.hpp>

Inheritance diagram for soundsource::manager:
Inheritance graph
[legend]
Collaboration diagram for soundsource::manager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 manager (const display &disp)
 ~manager ()
void handle_generic_event (const std::string &event_name)
void add (const sourcespec &source)
void remove (const std::string &id)
void update ()
void update_positions ()
void write_sourcespecs (config &cfg) const
 Serializes information into cfg as new children of key "sound_source", appendend to existing content.
config to_config () const

Private Types

typedef std::map< std::string,
positional_source * > 
positional_source_map
typedef
positional_source_map::iterator 
positional_source_iterator
typedef
positional_source_map::const_iterator 
positional_source_const_iterator

Private Attributes

positional_source_map sources_
const displaydisp_

Detailed Description

Definition at line 78 of file soundsource.hpp.


Member Typedef Documentation

typedef positional_source_map::const_iterator soundsource::manager::positional_source_const_iterator [private]

Definition at line 82 of file soundsource.hpp.

typedef positional_source_map::iterator soundsource::manager::positional_source_iterator [private]

Definition at line 81 of file soundsource.hpp.

typedef std::map<std::string, positional_source *> soundsource::manager::positional_source_map [private]

Definition at line 80 of file soundsource.hpp.


Constructor & Destructor Documentation

soundsource::manager::manager ( const display disp  ) 

Definition at line 35 of file soundsource.cpp.

References events::generic_event::attach_handler(), disp_, display::scroll_event(), and update_positions().

Here is the call graph for this function:

soundsource::manager::~manager (  ) 

Definition at line 45 of file soundsource.cpp.

References sources_.


Member Function Documentation

void soundsource::manager::add ( const sourcespec source  ) 

Definition at line 60 of file soundsource.cpp.

References soundsource::sourcespec::id(), and sources_.

Referenced by WML_HANDLER_FUNCTION().

Here is the call graph for this function:

Here is the caller graph for this function:

void soundsource::manager::handle_generic_event ( const std::string &  event_name  ) 

Definition at line 54 of file soundsource.cpp.

References update_positions().

Here is the call graph for this function:

void soundsource::manager::remove ( const std::string &  id  ) 

Definition at line 72 of file soundsource.cpp.

References sources_.

Referenced by WML_HANDLER_FUNCTION().

Here is the caller graph for this function:

config soundsource::manager::to_config (  )  const [virtual]

Implements savegame::savegame_config.

Definition at line 113 of file soundsource.cpp.

References config::child(), and write_sourcespecs().

Here is the call graph for this function:

void soundsource::manager::update (  ) 

Definition at line 84 of file soundsource.cpp.

References disp_, and sources_.

void soundsource::manager::update_positions (  ) 

Definition at line 93 of file soundsource.cpp.

References disp_, and sources_.

Referenced by handle_generic_event(), and manager().

Here is the caller graph for this function:

void soundsource::manager::write_sourcespecs ( config cfg  )  const

Serializes information into cfg as new children of key "sound_source", appendend to existing content.

Definition at line 102 of file soundsource.cpp.

References config::add_child(), and sources_.

Referenced by to_config().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 85 of file soundsource.hpp.

Referenced by manager(), update(), and update_positions().

Definition at line 84 of file soundsource.hpp.

Referenced by add(), remove(), update(), update_positions(), write_sourcespecs(), and ~manager().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:26:01 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs