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

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

#include <data.hpp>

Public Member Functions

 room_info (const std::string &name)
 
const std::stringname () 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::stringmembers_
 
chat_log log_
 

Detailed Description

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

Definition at line 65 of file data.hpp.

Constructor & Destructor Documentation

room_info::room_info ( const std::string name)
explicit

Definition at line 71 of file data.cpp.

Member Function Documentation

void room_info::add_member ( const std::string user)

Definition at line 80 of file 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 75 of file data.cpp.

References members_.

Referenced by user_info::update_state().

const chat_log& room_info::log ( ) const
inline

Definition at line 83 of file data.hpp.

References log_.

Referenced by gui2::tlobby_main::add_chat_room_message_sent().

chat_log& room_info::log ( )
inline

Definition at line 87 of file data.hpp.

References log_.

const std::set<std::string>& room_info::members ( ) const
inline

Definition at line 74 of file data.hpp.

References members_.

const std::string& room_info::name ( ) const
inline

Definition at line 70 of file data.hpp.

References name_.

void room_info::process_room_members ( const config data)
void room_info::remove_member ( const std::string user)

Definition at line 85 of file data.cpp.

References members_.

Referenced by gui2::tlobby_main::process_room_part().

Member Data Documentation

chat_log room_info::log_
private

Definition at line 95 of file data.hpp.

Referenced by log().

std::set<std::string> room_info::members_
private

Definition at line 94 of file data.hpp.

Referenced by add_member(), is_member(), members(), process_room_members(), and remove_member().

std::string room_info::name_
private

Definition at line 93 of file data.hpp.

Referenced by name().


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