#include <ban.hpp>
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_ |
Definition at line 37 of file ban.hpp.
wesnothd::banned::banned | ( | const std::string & | ip, | |
const time_t | end_time, | |||
const std::string & | reason | |||
) |
wesnothd::banned::banned | ( | const config & | cfg | ) |
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 |
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 |
std::string wesnothd::banned::get_reason | ( | ) | const [inline] |
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] |
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().
std::string wesnothd::banned::ip_ [private] |
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] |
bool wesnothd::banned::deleted_ [private] |
Definition at line 41 of file ban.hpp.
Referenced by is_deleted(), read(), remove_ban(), and write().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |