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
chat_log Class Reference

this class memorizes a chat session. More...

#include <data.hpp>

Public Member Functions

 chat_log ()
 
void add_message (const time_t &timestamp, const std::string &user, const std::string &message)
 
void add_message (const std::string &user, const std::string &message)
 
const std::deque< chat_message > & history () const
 
void clear ()
 

Private Attributes

std::deque< chat_messagehistory_
 

Detailed Description

this class memorizes a chat session.

Definition at line 40 of file data.hpp.

Constructor & Destructor Documentation

chat_log::chat_log ( )

Definition at line 49 of file data.cpp.

Member Function Documentation

void chat_log::add_message ( const time_t &  timestamp,
const std::string user,
const std::string message 
)
void chat_log::add_message ( const std::string user,
const std::string message 
)

Definition at line 61 of file data.cpp.

References add_message().

void chat_log::clear ( )

Definition at line 66 of file data.cpp.

References history_.

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

const std::deque<chat_message>& chat_log::history ( ) const
inline

Definition at line 51 of file data.hpp.

References history_.

Member Data Documentation

std::deque<chat_message> chat_log::history_
private

Definition at line 59 of file data.hpp.

Referenced by add_message(), clear(), and history().


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