This class represents the information a client has about a room. More...
#include <lobby_data.hpp>

Public Member Functions | |
| room_info (const std::string &name) | |
| const std::string & | name () const |
| const std::set< std::string > & | members () const |
| bool | is_member (const std::string &user) const |
| void | add_member (const std::string &user) |
| void | remove_member (const std::string &user) |
| void | process_room_members (const config &data) |
| const chat_log & | log () const |
| chat_log & | log () |
Private Attributes | |
| std::string | name_ |
| std::set< std::string > | members_ |
| chat_log | log_ |
This class represents the information a client has about a room.
Definition at line 58 of file lobby_data.hpp.
| room_info::room_info | ( | const std::string & | name | ) | [explicit] |
Definition at line 67 of file lobby_data.cpp.
| void room_info::add_member | ( | const std::string & | user | ) |
Definition at line 79 of file lobby_data.cpp.
References members_.
Referenced by gui2::tlobby_main::process_room_join().

| bool room_info::is_member | ( | const std::string & | user | ) | const |
Definition at line 74 of file lobby_data.cpp.
References members_.
Referenced by user_info::update_state().

| chat_log& room_info::log | ( | ) | [inline] |
Definition at line 71 of file lobby_data.hpp.
References log_.
| const chat_log& room_info::log | ( | ) | const [inline] |
Definition at line 70 of file lobby_data.hpp.
References log_.
Referenced by gui2::tlobby_main::add_chat_room_message_sent().

| const std::set<std::string>& room_info::members | ( | ) | const [inline] |
Definition at line 64 of file lobby_data.hpp.
References members_.
| const std::string& room_info::name | ( | ) | const [inline] |
Definition at line 63 of file lobby_data.hpp.
References name_.
Referenced by lobby_info::get_room().

| void room_info::process_room_members | ( | const config & | data | ) |
Definition at line 89 of file lobby_data.cpp.
References config::child_range(), and members_.
Referenced by gui2::tlobby_main::process_room_join(), and gui2::tlobby_main::process_room_query_response().


| void room_info::remove_member | ( | const std::string & | user | ) |
Definition at line 84 of file lobby_data.cpp.
References members_.
Referenced by gui2::tlobby_main::process_room_part().

chat_log room_info::log_ [private] |
Definition at line 76 of file lobby_data.hpp.
Referenced by log().
std::set<std::string> room_info::members_ [private] |
Definition at line 75 of file lobby_data.hpp.
Referenced by add_member(), is_member(), members(), process_room_members(), and remove_member().
std::string room_info::name_ [private] |
Definition at line 74 of file lobby_data.hpp.
Referenced by name().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:15:52 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |