wesnothd::banned Class Reference

#include <ban.hpp>

List of all members.

Public Member Functions

 banned (const std::string &ip, const time_t end_time, const std::string &reason)
 banned (const config &)
void read (const config &)
void write (config &) const
time_t get_end_time () const
std::string get_human_end_time () const
std::string get_reason () const
std::string get_ip () const
void remove_ban ()
bool is_deleted () const
bool operator> (const banned &b) const
 Notice that comparision is done wrong way to make the smallest value in top of heap.

Private Member Functions

 banned ()

Private Attributes

std::string ip_
time_t end_time_
std::string reason_
bool deleted_


Detailed Description

Definition at line 37 of file ban.hpp.


Constructor & Destructor Documentation

wesnothd::banned::banned (  )  [inline, private]

Definition at line 43 of file ban.hpp.

wesnothd::banned::banned ( const std::string &  ip,
const time_t  end_time,
const std::string &  reason 
)

Definition at line 31 of file ban.cpp.

wesnothd::banned::banned ( const config cfg  ) 

Definition at line 35 of file ban.cpp.

References read().


Member Function Documentation

void wesnothd::banned::read ( const config cfg  ) 

Definition at line 40 of file ban.cpp.

References deleted_, end_time_, ip_, lexical_cast(), reason_, and utils::string_bool().

Referenced by banned().

void wesnothd::banned::write ( config cfg  )  const

Definition at line 48 of file ban.cpp.

References deleted_, end_time_, ip_, and reason_.

time_t wesnothd::banned::get_end_time (  )  const [inline]

Definition at line 52 of file ban.hpp.

References end_time_.

Referenced by wesnothd::ban_manager::check_ban_times(), and operator>().

std::string wesnothd::banned::get_human_end_time (  )  const

Definition at line 58 of file ban.cpp.

References buf, and end_time_.

std::string wesnothd::banned::get_reason (  )  const [inline]

Definition at line 57 of file ban.hpp.

References reason_.

std::string wesnothd::banned::get_ip (  )  const [inline]

Definition at line 60 of file ban.hpp.

References ip_.

Referenced by wesnothd::ban_manager::check_ban_times(), and wesnothd::ban_manager::read().

void wesnothd::banned::remove_ban (  )  [inline]

Definition at line 63 of file ban.hpp.

References deleted_.

bool wesnothd::banned::is_deleted (  )  const [inline]

Definition at line 66 of file ban.hpp.

References deleted_.

Referenced by wesnothd::ban_manager::check_ban_times(), and wesnothd::ban_manager::read().

bool wesnothd::banned::operator> ( const banned b  )  const

Notice that comparision is done wrong way to make the smallest value in top of heap.

Definition at line 67 of file ban.cpp.

References end_time_, and get_end_time().


Member Data Documentation

std::string wesnothd::banned::ip_ [private]

Definition at line 38 of file ban.hpp.

Referenced by get_ip(), read(), and write().

time_t wesnothd::banned::end_time_ [private]

Definition at line 39 of file ban.hpp.

Referenced by get_end_time(), get_human_end_time(), operator>(), read(), and write().

std::string wesnothd::banned::reason_ [private]

Definition at line 40 of file ban.hpp.

Referenced by get_reason(), read(), and write().

Definition at line 41 of file ban.hpp.

Referenced by is_deleted(), read(), remove_ban(), and write().


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

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs