Anope IRC Services  Version 2.0
Public Types | Public Member Functions | Private Attributes | Friends
Configuration::Block Class Reference

#include <config.h>

Inheritance diagram for Configuration::Block:
Inheritance graph
[legend]
Collaboration diagram for Configuration::Block:
Collaboration graph
[legend]

Public Types

typedef Anope::map< Anope::stringitem_map
 
typedef Anope::multimap< Blockblock_map
 

Public Member Functions

 Block (const Anope::string &)
 
const Anope::stringGetName () const
 
int CountBlock (const Anope::string &name)
 
BlockGetBlock (const Anope::string &name, int num=0)
 
template<typename T >
Get (const Anope::string &tag)
 
template<typename T >
Get (const Anope::string &tag, const Anope::string &def) const
 
bool Set (const Anope::string &tag, const Anope::string &value)
 
const item_mapGetItems () const
 
template<>
CoreExport const Anope::string Get (const Anope::string &tag, const Anope::string &def) const
 
template<>
CoreExport time_t Get (const Anope::string &tag, const Anope::string &def) const
 
template<>
CoreExport bool Get (const Anope::string &tag, const Anope::string &def) const
 
template<>
const Anope::string Get (const Anope::string &tag, const Anope::string &def) const
 
template<>
time_t Get (const Anope::string &tag, const Anope::string &def) const
 
template<>
bool Get (const Anope::string &tag, const Anope::string &def) const
 

Private Attributes

Anope::string name
 
item_map items
 
block_map blocks
 
int linenum
 

Friends

struct Conf
 

Detailed Description

Definition at line 24 of file config.h.

Member Typedef Documentation

Definition at line 30 of file config.h.

Definition at line 29 of file config.h.

Constructor & Destructor Documentation

Block::Block ( const Anope::string n)

Definition at line 26 of file config.cpp.

Member Function Documentation

int Block::CountBlock ( const Anope::string name)
template<typename T >
T Configuration::Block::Get ( const Anope::string tag)
inline
template<typename T >
T Configuration::Block::Get ( const Anope::string tag,
const Anope::string def 
) const
inline

Definition at line 51 of file config.h.

References Anope::string::empty().

template<>
CoreExport const Anope::string Configuration::Block::Get ( const Anope::string tag,
const Anope::string def 
) const
template<>
CoreExport time_t Configuration::Block::Get ( const Anope::string tag,
const Anope::string def 
) const
template<>
CoreExport bool Configuration::Block::Get ( const Anope::string tag,
const Anope::string def 
) const
template<>
const Anope::string Configuration::Block::Get ( const Anope::string tag,
const Anope::string def 
) const

Definition at line 73 of file config.cpp.

References items.

template<>
time_t Configuration::Block::Get ( const Anope::string tag,
const Anope::string def 
) const

Definition at line 85 of file config.cpp.

References Anope::DoTime().

template<>
bool Configuration::Block::Get ( const Anope::string tag,
const Anope::string def 
) const

Definition at line 90 of file config.cpp.

References Anope::string::empty(), and Anope::string::equals_ci().

Block * Block::GetBlock ( const Anope::string name,
int  num = 0 
)
const Block::item_map * Block::GetItems ( ) const

Definition at line 65 of file config.cpp.

References items.

Referenced by CommandOSConfig::Execute().

const Anope::string & Block::GetName ( ) const

Definition at line 30 of file config.cpp.

References name.

Referenced by Configuration::Conf::Conf(), and CommandOSConfig::Execute().

bool Block::Set ( const Anope::string tag,
const Anope::string value 
)

Definition at line 56 of file config.cpp.

References items.

Referenced by CommandOSConfig::Execute().

Friends And Related Function Documentation

friend struct Conf
friend

Definition at line 26 of file config.h.

Field Documentation

block_map Configuration::Block::blocks
private
item_map Configuration::Block::items
private

Definition at line 34 of file config.h.

Referenced by Get(), GetItems(), Configuration::Conf::LoadConf(), and Set().

int Configuration::Block::linenum
private

Definition at line 36 of file config.h.

Referenced by Configuration::Conf::LoadConf().

Anope::string Configuration::Block::name
private

Definition at line 33 of file config.h.

Referenced by Configuration::Conf::Conf(), GetName(), and Configuration::Conf::LoadConf().


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