#include <signal.h>#include "hashcomp.h"

Go to the source code of this file.
Data Structures | |
| class | Anope::string |
| struct | Anope::hash_ci |
| struct | Anope::hash_cs |
| struct | Anope::compare |
| class | Anope::map< T > |
| class | Anope::hash_map< T > |
| class | sepstream |
| class | commasepstream |
| class | spacesepstream |
| class | CoreException |
| class | ModuleException |
| class | ConvertException |
Namespaces | |
| namespace | Anope |
Functions | |
| std::ostream & | Anope::operator<< (std::ostream &os, const string &_str) |
| std::istream & | Anope::operator>> (std::istream &is, string &_str) |
| const string | Anope::operator+ (char chr, const string &str) |
| const string | Anope::operator+ (const char *_str, const string &str) |
| const string | Anope::operator+ (const std::string &_str, const string &str) |
| CoreExport string | Anope::Version () |
| CoreExport string | Anope::VersionShort () |
| CoreExport string | Anope::VersionBuildString () |
| CoreExport int | Anope::VersionMajor () |
| CoreExport int | Anope::VersionMinor () |
| CoreExport int | Anope::VersionPatch () |
| bool | Anope::AtTerm () |
| void | Anope::Fork () |
| void | Anope::HandleSignal () |
| void | Anope::Init (int ac, char **av) |
| CoreExport void | Anope::SaveDatabases () |
| CoreExport bool | Anope::Match (const string &str, const string &mask, bool case_sensitive=false, bool use_regex=false) |
| CoreExport string | Anope::Hex (const string &data) |
| CoreExport string | Anope::Hex (const char *data, unsigned len) |
| CoreExport void | Anope::Unhex (const string &src, string &dest) |
| CoreExport void | Anope::Unhex (const string &src, char *dest, size_t sz) |
| CoreExport void | Anope::B64Encode (const string &src, string &target) |
| CoreExport void | Anope::B64Decode (const string &src, string &target) |
| CoreExport void | Anope::Encrypt (const Anope::string &src, Anope::string &dest) |
| CoreExport bool | Anope::Decrypt (const Anope::string &src, Anope::string &dest) |
| CoreExport string | Anope::printf (const char *fmt,...) |
| CoreExport int | Anope::LastErrorCode () |
| CoreExport const string | Anope::LastError () |
| CoreExport bool | Anope::IsFile (const Anope::string &file) |
| CoreExport time_t | Anope::DoTime (const Anope::string &s) |
| CoreExport Anope::string | Anope::Duration (time_t seconds, const NickCore *nc=NULL) |
| CoreExport Anope::string | Anope::Expires (time_t seconds, const NickCore *nc=NULL) |
| CoreExport Anope::string | Anope::strftime (time_t t, const NickCore *nc=NULL, bool short_output=false) |
| CoreExport Anope::string | Anope::NormalizeBuffer (const Anope::string &) |
| void | Anope::Process (const Anope::string &) |
| Anope::string | Anope::Resolve (const Anope::string &host, int type) |
| template<typename T > | |
| Anope::string | stringify (const T &x) |
| template<typename T > | |
| void | convert (const Anope::string &s, T &x, Anope::string &leftover, bool failIfLeftoverChars=true) |
| template<typename T > | |
| void | convert (const Anope::string &s, T &x, bool failIfLeftoverChars=true) |
| template<typename T > | |
| T | convertTo (const Anope::string &s, Anope::string &leftover, bool failIfLeftoverChars=true) |
| template<typename T > | |
| T | convertTo (const Anope::string &s, bool failIfLeftoverChars=true) |
| template<typename T , typename O > | |
| T | anope_dynamic_static_cast (O ptr) |
Variables | |
| static const char *const | Anope::compiled = " " __DATE__ |
| CoreExport time_t | Anope::StartTime = time(NULL) |
| int | Anope::ReturnValue = 0 |
| sig_atomic_t | Anope::Signal = 0 |
| CoreExport bool | Anope::Quitting = false |
| CoreExport bool | Anope::Restarting = false |
| CoreExport Anope::string | Anope::QuitReason |
| CoreExport time_t | Anope::CurTime = time(NULL) |
| CoreExport int | Anope::Debug = 0 |
| CoreExport bool | Anope::ReadOnly = false |
| CoreExport bool | Anope::NoFork = false |
| CoreExport bool | Anope::NoThird = false |
| CoreExport bool | Anope::NoExpire = false |
| CoreExport bool | Anope::ProtocolDebug = false |
| CoreExport Anope::string | Anope::ServicesDir |
| CoreExport Anope::string | Anope::ServicesBin |
| CoreExport Anope::string | Anope::ConfigDir = "conf" |
| CoreExport Anope::string | Anope::DataDir = "data" |
| CoreExport Anope::string | Anope::ModuleDir = "lib" |
| CoreExport Anope::string | Anope::LocaleDir = "locale" |
| CoreExport Anope::string | Anope::LogDir = "logs" |
| CoreExport int | Anope::CurrentUplink = -1 |
| T anope_dynamic_static_cast | ( | O | ptr | ) | [inline] |
Casts to be used instead of dynamic_cast, this uses dynamic_cast for debug builds and static_cast on releass builds to speed up the program because dynamic_cast relies on RTTI.
Definition at line 761 of file anope.h.
Referenced by SSLSocketIO::Accept(), ChannelStatus::BuildModePrefixList(), CommandCSMode::CanSet(), XOPChanAccess::DetermineLevel(), AccessChanAccess::DetermineLevel(), XOPBase::DoAdd(), CommandCSAccess::DoAdd(), CommandCSFlags::DoModify(), CommandOSConfig::Execute(), SSLSocketIO::FinishAccept(), SSLSocketIO::FinishConnect(), Channel::GetModes(), ModeManager::GetStatusChar(), Entry::Matches(), OSDefcon::ParseModeString(), ServerConfig::Read(), Channel::RemoveMode(), Channel::RemoveModeInternal(), IRCDMessageCapab::Run(), Channel::SetMode(), Channel::SetModeInternal(), Channel::SetModesInternal(), XLine::Unserialize(), ChannelInfo::Unserialize(), LogSetting::Unserialize(), ModeLock::Unserialize(), AutoKick::Unserialize(), BadWord::Unserialize(), NickCore::Unserialize(), NickAlias::Unserialize(), BotInfo::Unserialize(), Memo::Unserialize(), ChanAccess::Unserialize(), Exception::Unserialize(), MyOper::Unserialize(), NewsItem::Unserialize(), IgnoreData::Unserialize(), ForbidData::Unserialize(), DNSServer::Unserialize(), DNSZone::Unserialize(), NSMiscData::Unserialize(), AJoinEntry::Unserialize(), HostRequest::Unserialize(), CSMiscData::Unserialize(), SeenInfo::Unserialize(), and EntryMsg::Unserialize().
| void convert | ( | const Anope::string & | s, | |
| T & | x, | |||
| Anope::string & | leftover, | |||
| bool | failIfLeftoverChars = true | |||
| ) | [inline] |
Definition at line 713 of file anope.h.
References Anope::string::clear(), and Anope::string::str().
Referenced by convert(), and convertTo().
| void convert | ( | const Anope::string & | s, | |
| T & | x, | |||
| bool | failIfLeftoverChars = true | |||
| ) | [inline] |
| T convertTo | ( | const Anope::string & | s, | |
| bool | failIfLeftoverChars = true | |||
| ) | [inline] |
| T convertTo | ( | const Anope::string & | s, | |
| Anope::string & | leftover, | |||
| bool | failIfLeftoverChars = true | |||
| ) | [inline] |
| Anope::string stringify | ( | const T & | x | ) | [inline] |
Convert something to a string
Definition at line 703 of file anope.h.
Referenced by AccessChanAccess::AccessSerialize(), ModeManager::AddChannelMode(), ModeManager::AddUserMode(), DBPlain::BackupDatabase(), DBFlatFile::BackupDatabase(), ProxyConnect::Ban(), SQLiteService::BuildInsert(), MySQLService::BuildInsert(), SocketEngine::Change(), User::Collide(), CommandOSDNS::DisplayPoolState(), MyXMLRPCEvent::DoChannel(), CommandCSMode::DoClear(), CommandOSSession::DoList(), NewsBase::DoList(), CommandNSAJoin::DoList(), CommandHSWaiting::DoList(), XOPBase::DoList(), CommandCSFlags::DoList(), CommandEntryMessage::DoList(), CommandCSLevels::DoList(), CommandBSBadwords::DoList(), MyXMLRPCEvent::DoStats(), MyXMLRPCEvent::DoUser(), Anope::Duration(), CommandOSChanList::Execute(), CommandNSSuspend::Execute(), CommandNSAList::Execute(), CommandMSList::Execute(), CommandHSList::Execute(), CommandCSSuspend::Execute(), CommandCSLog::Execute(), CommandCSInfo::Execute(), CommandBSInfo::Execute(), SQLiteService::FromUnixtime(), MySQLService::FromUnixtime(), Anope::HandleSignal(), LoadChannels(), ServerConfig::LoadConf(), ModuleDNSBL::OnReload(), WebCPanel::OperServ::Akill::OnRequest(), WebCPanel::NickServ::Alist::OnRequest(), WebCPanel::MemoServ::Memos::OnRequest(), WebCPanel::ChanServ::Access::OnRequest(), DBMySQL::OnSerializableDestruct(), DBSQL::OnSerializableDestruct(), PCRERegex::PCRERegex(), CommandOSSXLineBase::ProcessList(), CommandOSException::ProcessList(), CommandOSAKill::ProcessList(), CommandCSAKick::ProcessList(), CommandCSAccess::ProcessList(), ModuleManager::RequireVersion(), InspIRCdProto::SendLogin(), SendMemoMail(), IRCDProto::SendNumericInternal(), MyHTTPClient::SendReply(), ChannelInfo::Serialize(), DNSServer::Serialize(), DNSZone::Serialize(), SQL::Query::SetValue(), DNSServer::Unserialize(), DNSZone::Unserialize(), Anope::Version(), Anope::VersionBuildString(), and Anope::VersionShort().
1.7.1