libapt-pkg-dev  v0.9.7.5ubuntu5.4
Debian+Ubuntu APT Package Management
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Configuration Class Reference

#include <configuration.h>

Collaboration diagram for Configuration:

Classes

struct  Item
 
class  MatchAgainstConfig
 match a string against a configurable list of patterns More...
 

Public Member Functions

 Configuration (const Item *Root)
 
 Configuration ()
 
 ~Configuration ()
 
void Clear (const std::string &Name)
 
void Clear (std::string const &List, std::string const &Value)
 
void Clear (std::string const &List, int const &Value)
 
void CndSet (const char *Name, const std::string &Value)
 
void CndSet (const char *Name, const int Value)
 
void Dump ()
 
void Dump (std::ostream &str)
 
void Dump (std::ostream &str, char const *const root, char const *const format, bool const emptyValue)
 
bool Exists (const std::string &Name) const
 
bool Exists (const char *Name) const
 
bool ExistsAny (const char *Name) const
 
std::string Find (const char *Name, const char *Default=0) const
 
std::string Find (std::string const &Name, const char *Default=0) const
 
std::string Find (std::string const &Name, std::string const &Default) const
 
std::string FindAny (const char *Name, const char *Default=0) const
 
bool FindB (const char *Name, bool const &Default=false) const
 
bool FindB (std::string const &Name, bool const &Default=false) const
 
std::string FindDir (const char *Name, const char *Default=0) const
 
std::string FindFile (const char *Name, const char *Default=0) const
 
int FindI (const char *Name, int const &Default=0) const
 
int FindI (std::string const &Name, int const &Default=0) const
 
std::vector< std::string > FindVector (const char *Name) const
 
std::vector< std::string > FindVector (std::string const &Name) const
 
void Set (const std::string &Name, const std::string &Value)
 
void Set (const char *Name, const std::string &Value)
 
void Set (const char *Name, const int &Value)
 
const ItemTree (const char *Name) const
 

Private Member Functions

ItemLookup (Item *Head, const char *S, unsigned long const &Len, bool const &Create)
 
ItemLookup (const char *Name, const bool &Create)
 
const ItemLookup (const char *Name) const
 

Private Attributes

ItemRoot
 
bool ToFree
 

Constructor & Destructor Documentation

Configuration::Configuration ( const Item Root)
Configuration::Configuration ( )
Configuration::~Configuration ( )

Member Function Documentation

void Configuration::Clear ( const std::string &  Name)
void Configuration::Clear ( std::string const &  List,
std::string const &  Value 
)
void Configuration::Clear ( std::string const &  List,
int const &  Value 
)
void Configuration::CndSet ( const char *  Name,
const std::string &  Value 
)
void Configuration::CndSet ( const char *  Name,
const int  Value 
)
void Configuration::Dump ( )
inline

References Dump().

Referenced by Dump().

Here is the call graph for this function:

Here is the caller graph for this function:

void Configuration::Dump ( std::ostream &  str)
void Configuration::Dump ( std::ostream &  str,
char const *const  root,
char const *const  format,
bool const  emptyValue 
)
bool Configuration::Exists ( const std::string &  Name) const
inline

References Exists().

Referenced by Exists().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Configuration::Exists ( const char *  Name) const
bool Configuration::ExistsAny ( const char *  Name) const
std::string Configuration::Find ( const char *  Name,
const char *  Default = 0 
) const
std::string Configuration::Find ( std::string const &  Name,
const char *  Default = 0 
) const
inline

References Find().

Referenced by Find().

Here is the call graph for this function:

Here is the caller graph for this function:

std::string Configuration::Find ( std::string const &  Name,
std::string const &  Default 
) const
inline

References Find().

Referenced by Find().

Here is the call graph for this function:

Here is the caller graph for this function:

std::string Configuration::FindAny ( const char *  Name,
const char *  Default = 0 
) const
bool Configuration::FindB ( const char *  Name,
bool const &  Default = false 
) const

Referenced by pkgDepCache::Policy::Policy().

Here is the caller graph for this function:

bool Configuration::FindB ( std::string const &  Name,
bool const &  Default = false 
) const
inline

References FindB().

Referenced by FindB().

Here is the call graph for this function:

Here is the caller graph for this function:

std::string Configuration::FindDir ( const char *  Name,
const char *  Default = 0 
) const
std::string Configuration::FindFile ( const char *  Name,
const char *  Default = 0 
) const
int Configuration::FindI ( const char *  Name,
int const &  Default = 0 
) const
int Configuration::FindI ( std::string const &  Name,
int const &  Default = 0 
) const
inline

References FindI().

Referenced by FindI().

Here is the call graph for this function:

Here is the caller graph for this function:

std::vector<std::string> Configuration::FindVector ( const char *  Name) const
std::vector<std::string> Configuration::FindVector ( std::string const &  Name) const
inline

References FindVector().

Referenced by FindVector().

Here is the call graph for this function:

Here is the caller graph for this function:

Item* Configuration::Lookup ( Item Head,
const char *  S,
unsigned long const &  Len,
bool const &  Create 
)
private

Referenced by Tree().

Here is the caller graph for this function:

Item* Configuration::Lookup ( const char *  Name,
const bool &  Create 
)
private
const Item* Configuration::Lookup ( const char *  Name) const
inlineprivate
void Configuration::Set ( const std::string &  Name,
const std::string &  Value 
)
inline

References Set().

Referenced by Set().

Here is the call graph for this function:

Here is the caller graph for this function:

void Configuration::Set ( const char *  Name,
const std::string &  Value 
)
void Configuration::Set ( const char *  Name,
const int &  Value 
)
const Item* Configuration::Tree ( const char *  Name) const
inline

References Lookup().

Here is the call graph for this function:

Member Data Documentation

Item* Configuration::Root
private
bool Configuration::ToFree
private

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