Public Member Functions | Private Attributes

room_info Class Reference

This class represents the information a client has about a room. More...

#include <lobby_data.hpp>

Collaboration diagram for room_info:
Collaboration graph
[legend]

List of all members.

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_loglog () const
chat_loglog ()

Private Attributes

std::string name_
std::set< std::string > members_
chat_log log_

Detailed Description

This class represents the information a client has about a room.

Definition at line 58 of file lobby_data.hpp.


Constructor & Destructor Documentation

room_info::room_info ( const std::string &  name  )  [explicit]

Definition at line 67 of file lobby_data.cpp.


Member Function Documentation

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:


Member Data Documentation

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().


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:15:52 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs