Data Structures | Defines | Typedefs | Enumerations | Variables

config.h File Reference

#include "account.h"
#include "regchannel.h"
#include "users.h"
Include dependency graph for config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  ValueItem
class  ValueContainerBase
class  ValueContainer< T >
class  ValueContainer< Anope::string * >
class  ConfigurationFile
class  ConfigItems
struct  ConfigItems::Item
struct  ConfigItems::MultiItem
class  ServerConfig
struct  ServerConfig::Uplink
class  ConfigException
class  ConfigReader

Defines

#define CONF_NO_ERROR   0x000000
#define CONF_NOT_A_NUMBER   0x000010
#define CONF_INT_NEGATIVE   0x000080
#define CONF_VALUE_NOT_FOUND   0x000100
#define CONF_FILE_NOT_FOUND   0x000200

Typedefs

typedef std::pair
< Anope::string, Anope::string
KeyVal
typedef std::vector< KeyValKeyValList
typedef std::multimap
< Anope::string, KeyValList
ConfigDataHash
typedef ValueContainer< bool * > ValueContainerBool
typedef ValueContainer
< unsigned * > 
ValueContainerUInt
typedef ValueContainer< long
unsigned * > 
ValueContainerLUInt
typedef ValueContainer< int * > ValueContainerInt
typedef ValueContainer< time_t * > ValueContainerTime
typedef ValueContainer
< Anope::string * > 
ValueContainerString
typedef std::deque< ValueItemValueList
typedef bool(* Validator )(ServerConfig *, const Anope::string &, const Anope::string &, ValueItem &)
typedef bool(* MultiValidator )(ServerConfig *, const Anope::string &, const Anope::string *, ValueList &, int *)
typedef bool(* MultiNotify )(ServerConfig *, const Anope::string &)

Enumerations

enum  ConfigDataType {
  DT_NOTHING, DT_INTEGER, DT_UINTEGER, DT_LUINTEGER,
  DT_STRING, DT_BOOLEAN, DT_HOSTNAME, DT_NOSPACES,
  DT_IPADDRESS, DT_TIME, DT_NORELOAD = 32, DT_ALLOW_WILD = 64,
  DT_ALLOW_NEWLINE = 128, DT_ALLOW_EMPTY = 256
}

Variables

ConfigurationFile ServicesConf
CoreExport ServerConfigConfig

Define Documentation

#define CONF_FILE_NOT_FOUND   0x000200

Definition at line 712 of file config.h.

#define CONF_INT_NEGATIVE   0x000080

Definition at line 710 of file config.h.

#define CONF_NO_ERROR   0x000000

Definition at line 708 of file config.h.

#define CONF_NOT_A_NUMBER   0x000010

Definition at line 709 of file config.h.

#define CONF_VALUE_NOT_FOUND   0x000100

Definition at line 711 of file config.h.

Referenced by ConfigReader::ReadValue().


Typedef Documentation

typedef std::multimap<Anope::string, KeyValList> ConfigDataHash

An entire config file, built up of KeyValLists

Definition at line 30 of file config.h.

typedef std::pair<Anope::string, Anope::string> KeyVal

A configuration key and value pair

Definition at line 22 of file config.h.

typedef std::vector<KeyVal> KeyValList

A list of related configuration keys and values

Definition at line 26 of file config.h.

typedef bool(* MultiNotify)(ServerConfig *, const Anope::string &)

A callback indicating the end of a group of entries

Definition at line 207 of file config.h.

typedef bool(* MultiValidator)(ServerConfig *, const Anope::string &, const Anope::string *, ValueList &, int *)

A callback for validating multiple value entries

Definition at line 204 of file config.h.

typedef bool(* Validator)(ServerConfig *, const Anope::string &, const Anope::string &, ValueItem &)

A callback for validating a single value

Definition at line 201 of file config.h.

A specialization of ValueContainer to hold a pointer to a bool

Definition at line 168 of file config.h.

A specialization of ValueContainer to hold a pointer to an int

Definition at line 183 of file config.h.

typedef ValueContainer<long unsigned *> ValueContainerLUInt

A specialization of ValueContainer to hold a pointer to a long unsigned int

Definition at line 178 of file config.h.

A specialization of ValueContainer to hold a pointer to an Anope::string

Definition at line 193 of file config.h.

A specialization of ValueContainer to hold a pointer to a time_t

Definition at line 188 of file config.h.

typedef ValueContainer<unsigned *> ValueContainerUInt

A specialization of ValueContainer to hold a pointer to an unsigned int

Definition at line 173 of file config.h.

typedef std::deque<ValueItem> ValueList

A set of ValueItems used by multi-value validator functions

Definition at line 197 of file config.h.


Enumeration Type Documentation

Types of data in the core config

Enumerator:
DT_NOTHING 
DT_INTEGER 
DT_UINTEGER 
DT_LUINTEGER 
DT_STRING 
DT_BOOLEAN 
DT_HOSTNAME 
DT_NOSPACES 
DT_IPADDRESS 
DT_TIME 
DT_NORELOAD 
DT_ALLOW_WILD 
DT_ALLOW_NEWLINE 
DT_ALLOW_EMPTY 

Definition at line 36 of file config.h.


Variable Documentation

CoreExport ServerConfig* Config

Definition at line 31 of file config.cpp.

Referenced by ModeManager::AddChannelMode(), OSSession::AddSession(), BotInfo::Assign(), DBPlain::BackupDatabase(), DBFlatFile::BackupDatabase(), User::BadPassword(), ProxyConnect::Ban(), BotServCore::BotServCore(), ChannelMode::CanSet(), ChannelInfo::ChannelInfo(), ChanServCore::ChanServCore(), DBMySQL::CheckSQL(), User::Collide(), CommandNSRegister::CommandNSRegister(), CommandNSSetPrivate::CommandNSSetPrivate(), CommandOSLogin::CommandOSLogin(), CommandOSLogout::CommandOSLogout(), Uplink::Connect(), OSNews::DisplayNews(), CommandOSException::DoAdd(), CommandOSAKill::DoAdd(), CommandNSCert::DoAdd(), CommandNSAJoin::DoAdd(), CommandNSAccess::DoAdd(), XOPBase::DoAdd(), CommandCSAKick::DoAdd(), CommandCSAccess::DoAdd(), CommandBSBot::DoAdd(), CommandBSBadwords::DoAdd(), CommandBSBot::DoChange(), CommandCSLevels::DoDisable(), CommandMSSet::DoLimit(), CommandHSWaiting::DoList(), CommandCSFlags::DoModify(), CommandMSSet::DoNotify(), MyXMLRPCEvent::DoOperType(), MemoListCallback::DoRead(), CommandCSLevels::DoSet(), CommandOSSet::DoSetSuperAdmin(), CommandOSStats::DoStatsAkill(), CommandOSSession::DoView(), ConfigReader::Enumerate(), ConfigReader::EnumerateValues(), CommandOSSVSNick::Execute(), CommandOSException::Execute(), CommandOSSession::Execute(), CommandOSReload::Execute(), CommandOSNOOP::Execute(), CommandOSKill::Execute(), CommandOSForbid::Execute(), CommandOSConfig::Execute(), CommandOSChanKill::Execute(), CommandNSUpdate::Execute(), CommandNSSuspend::Execute(), CommandNSSASetPassword::Execute(), CommandNSSetPassword::Execute(), CommandNSResetPass::Execute(), CommandNSResend::Execute(), CommandNSRegister::Execute(), CommandNSConfirm::Execute(), CommandNSList::Execute(), CommandNSInfo::Execute(), CommandNSGList::Execute(), CommandNSGroup::Execute(), CommandNSGetPass::Execute(), CommandNSDrop::Execute(), CommandNSAccess::Execute(), CommandMSSend::Execute(), CommandMSRSend::Execute(), CommandHSSetAll::Execute(), CommandHSSet::Execute(), CommandHSReject::Execute(), CommandHSActivate::Execute(), CommandHSRequest::Execute(), CommandHSList::Execute(), CommandHelp::Execute(), CommandCSSuspend::Execute(), CommandCSSetPersist::Execute(), CommandCSSetFounder::Execute(), CommandSeen::Execute(), CommandCSRegister::Execute(), CommandCSList::Execute(), CommandCSKick::Execute(), CommandCSInfo::Execute(), CommandCSBan::Execute(), CommandBSKick::Execute(), OperType::Find(), Oper::Find(), CommandHelp::FindGroup(), MySessionService::FindSession(), XLine::GetReason(), GlobalCore::GlobalCore(), Anope::HandleSignal(), Channel::Hold(), HostServCore::HostServCore(), User::Identify(), Anope::Init(), Language::InitLanguages(), XLine::InitRegex(), IRCDProto::IsChannelValid(), IRCDProto::IsHostValid(), IRCDProto::IsIdentValid(), Server::IsULined(), BotInfo::Join(), User::Kill(), Log::Log(), MyNickServService::Login(), main(), Anope::Match(), MemoServCore::MemoServCore(), ModuleWebCPanel::ModuleWebCPanel(), MSRSend::MSRSend(), NickCore::NickCore(), NickServCore::NickServCore(), Server::Notice(), NSGroup::NSGroup(), NSRecover::NSRecover(), NSRegister::NSRegister(), NSResetPass::NSResetPass(), CommandOSSQLine::OnAdd(), CommandOSSNLine::OnAdd(), OperServCore::OnBotPrivmsg(), ChanServCore::OnBotPrivmsg(), NickAlias::OnCancel(), ProtoUnreal::OnChannelCreate(), ProtoInspIRCd::OnChannelCreate(), BotServCore::OnChannelModeSet(), ProtoUnreal::OnChanRegistered(), ProtoInspIRCd::OnChanRegistered(), CSAKick::OnCheckKick(), ChanServCore::OnCheckModes(), UplinkSocket::OnConnect(), OnDatabaseReadMetadata(), ProtoUnreal::OnDelChan(), ProtoInspIRCd::OnDelChan(), ChanServCore::OnDelCore(), UplinkSocket::OnError(), CommandOSSQLine::OnHelp(), CommandOSSNLine::OnHelp(), CommandOSSet::OnHelp(), CommandOSException::OnHelp(), CommandOSOperNews::OnHelp(), CommandOSLogonNews::OnHelp(), CommandOSUserList::OnHelp(), CommandOSChanList::OnHelp(), CommandOSIgnore::OnHelp(), CommandOSForbid::OnHelp(), CommandOSAKill::OnHelp(), CommandNSSASetSecure::OnHelp(), CommandNSSetSecure::OnHelp(), CommandNSSASetPrivate::OnHelp(), CommandNSSetPrivate::OnHelp(), CommandNSSASetKill::OnHelp(), CommandNSSetKill::OnHelp(), CommandNSSASetHide::OnHelp(), CommandNSSetHide::OnHelp(), CommandNSSASet::OnHelp(), CommandNSSet::OnHelp(), CommandNSResend::OnHelp(), CommandNSRegister::OnHelp(), CommandNSList::OnHelp(), CommandNSCert::OnHelp(), CommandNSAccess::OnHelp(), CommandMSSet::OnHelp(), CommandCSVOP::OnHelp(), CommandCSSOP::OnHelp(), CommandCSHOP::OnHelp(), CommandCSAOP::OnHelp(), CommandCSQOP::OnHelp(), CommandCSSetSuccessor::OnHelp(), CommandCSSetPrivate::OnHelp(), CommandCSSetAutoOp::OnHelp(), CommandCSSASet::OnHelp(), CommandCSSet::OnHelp(), CommandCSRegister::OnHelp(), CommandCSList::OnHelp(), CommandCSAccess::OnHelp(), CommandBSSetFantasy::OnHelp(), CommandBSSet::OnHelp(), CommandBSKick::OnHelp(), CommandBSBadwords::OnHelp(), BotServCore::OnJoinChannel(), OSForbid::OnJoinChannel(), NSRecover::OnJoinChannel(), BotServCore::OnLeaveChannel(), DNSBLResolver::OnLookupComplete(), ProtoUnreal::OnMLock(), ProtoInspIRCd::OnMLock(), GlobalCore::OnNewServer(), NickServCore::OnNickIdentify(), DBFlatFile::OnNotify(), NickServCore::OnPostHelp(), MemoServCore::OnPostHelp(), ChanServCore::OnPostHelp(), BotServCore::OnPostHelp(), OperServCore::OnPreHelp(), NickServCore::OnPreHelp(), MemoServCore::OnPreHelp(), HostServCore::OnPreHelp(), GlobalCore::OnPreHelp(), ChanServCore::OnPreHelp(), BotServCore::OnPreHelp(), OSSession::OnPreUserLogoff(), BotServCore::OnPrivmsg(), MChanstats::OnPrivmsg(), BSKick::OnPrivmsg(), ModuleProxyScan::OnReload(), NSIdentifyLDAP::OnReload(), WebCPanel::Register::OnRequest(), WebCPanel::OperServ::Akill::OnRequest(), WebCPanel::NickServ::Cert::OnRequest(), WebCPanel::MemoServ::Memos::OnRequest(), WebCPanel::HostServ::Request::OnRequest(), WebCPanel::Confirm::OnRequest(), WebCPanel::ChanServ::Drop::OnRequest(), WebCPanel::ChanServ::Akick::OnRequest(), WebCPanel::NickServ::Access::OnRequest(), WebCPanel::ChanServ::Access::OnRequest(), GlobalCore::OnRestart(), SQLOperResult::OnResult(), SQLAuthenticationResult::OnResult(), IdentifyInterface::OnResult(), CommandNSSetMessage::OnServHelp(), CommandNSResend::OnServHelp(), GlobalCore::OnShutdown(), NSRecoverRequest::OnSuccess(), NSGroupRequest::OnSuccess(), Command::OnSyntaxError(), ProtoUnreal::OnUnMLock(), ProtoInspIRCd::OnUnMLock(), NickServCore::OnUserConnect(), OSSession::OnUserConnect(), OSDefcon::OnUserConnect(), OSNOOP::OnUserModeSet(), NickServCore::OnUserNickChange(), NSRecover::OnUserNickChange(), OperServCore::OperServCore(), SocketEngine::Process(), ProtoHybrid::ProtoHybrid(), ProtoInspIRCd::ProtoInspIRCd(), BanData::purge(), ConfigReader::ReadFlag(), ConfigReader::ReadInteger(), ConfigReader::ReadValue(), BotInfo::RejoinAll(), remove_pidfile(), req_send_memos(), Message::Whois::Run(), Message::Version::Run(), Message::Time::Run(), Message::Stats::Run(), Message::Privmsg::Run(), Message::MOTD::Run(), IRCDMessageSASL::Run(), IRCDMessage005::Run(), IRCDMessageEncap::Run(), IRCDMessageCapab::Run(), IRCDMessageMetadata::Run(), IRCDMessageRSQuit::Run(), IRCDMessageSID::Run(), IRCDMessageServer::Run(), CommandNSSetMessage::Run(), CommandNSSetKill::Run(), CommandNSSetHide::Run(), CommandNSSetEmail::Run(), CommandNSSetDisplay::Run(), RunCommand(), Mail::Send(), MyMemoServService::Send(), UnrealIRCdProto::SendAkillDel(), CommandNSSetEmail::SendConfirmMail(), UnrealIRCdProto::SendConnect(), RatboxProto::SendConnect(), PlexusProto::SendConnect(), ngIRCdProto::SendConnect(), InspIRCd12Proto::SendConnect(), InspIRCdProto::SendConnect(), HybridProto::SendConnect(), BahamutIRCdProto::SendConnect(), SendMemoMail(), User::SendMessage(), IRCDProto::SendMessageInternal(), SendRegmail(), SendResetEmail(), UnrealIRCdProto::SendServer(), InspIRCd12Proto::SendServer(), UnrealIRCdProto::SendSVSHold(), InspIRCd12Proto::SendSVSHold(), InspIRCdProto::SendSVSHold(), HybridProto::SendSVSHold(), BahamutIRCdProto::SendSVSHold(), UnrealIRCdProto::SendSVSHoldDel(), Command::SendSyntax(), UnrealIRCdProto::SendSZLineDel(), ReconnectTimer::Tick(), ExpireCallback::Tick(), Language::Translate(), Servers::TS6_SID_Retrieve(), Servers::TS6_UID_Retrieve(), MyNickServService::Validate(), write_pidfile(), Log::~Log(), Server::~Server(), and UplinkSocket::~UplinkSocket().

Referenced by Anope::Init(), and ServerConfig::Read().