#include <soundsource.hpp>
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) |
| sourcespec | get (const std::string &id) |
| bool | contains (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", appended to existing content. More... | |
Public Member Functions inherited from events::observer | |
| virtual | ~observer () |
Private Types | |
| typedef std::map< std::string, std::unique_ptr< 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 display & | disp_ |
Definition at line 76 of file soundsource.hpp.
|
private |
Definition at line 81 of file soundsource.hpp.
|
private |
Definition at line 80 of file soundsource.hpp.
|
private |
Definition at line 79 of file soundsource.hpp.
| soundsource::manager::manager | ( | const display & | disp | ) |
Definition at line 30 of file soundsource.cpp.
References events::generic_event::attach_handler(), disp_, display::scroll_event(), and update_positions().
| soundsource::manager::~manager | ( | ) |
Definition at line 39 of file soundsource.cpp.
References sources_.
| void soundsource::manager::add | ( | const sourcespec & | source | ) |
Definition at line 50 of file soundsource.cpp.
References soundsource::sourcespec::id(), and sources_.
Referenced by impl_sndsrc_set(), and impl_source_set().
| bool soundsource::manager::contains | ( | const std::string & | id | ) |
Definition at line 76 of file soundsource.cpp.
References sources_.
| sourcespec soundsource::manager::get | ( | const std::string & | id | ) |
Definition at line 55 of file soundsource.cpp.
|
virtual |
Implements events::observer.
Definition at line 44 of file soundsource.cpp.
References update_positions().
| void soundsource::manager::remove | ( | const std::string & | id | ) |
Definition at line 65 of file soundsource.cpp.
References sources_.
Referenced by impl_sndsrc_set().
| void soundsource::manager::update | ( | ) |
Definition at line 81 of file soundsource.cpp.
References disp_, and sources_.
Referenced by impl_sndsrc_set(), and impl_source_set().
| void soundsource::manager::update_positions | ( | ) |
Definition at line 90 of file soundsource.cpp.
References disp_, and sources_.
Referenced by handle_generic_event(), and manager().
| void soundsource::manager::write_sourcespecs | ( | config & | cfg | ) | const |
Serializes information into cfg as new children of key "sound_source", appended to existing content.
Definition at line 99 of file soundsource.cpp.
References config::add_child(), cfg, i, and sources_.
|
private |
Definition at line 84 of file soundsource.hpp.
Referenced by manager(), update(), and update_positions().
|
private |
Definition at line 83 of file soundsource.hpp.
Referenced by add(), contains(), get(), remove(), update(), update_positions(), write_sourcespecs(), and ~manager().