Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

Debtags::Environment Class Reference

Note: if you're not interested in using the Package support in libdebtags and are only interested in accessing the tag database, don't use Environment::get().tagDB(), but directly use the static methonds in TagDB, like TagDB::outputPatched. More...

#include <Environment.h>

Inheritance diagram for Debtags::Environment:

List of all members.

Public Member Functions

virtual const std::string & path_vocabulary () const =0 throw ()
virtual bool hasTagDatabase ()=0 throw ()
virtual const PackageSetpackages () const =0 throw ()
virtual const MaintainerSetmaintainers () const =0 throw ()
virtual const PackageDBpackageDB () const =0 throw ()
virtual const TagDBtagDB () const =0 throw ()
virtual TagDBtagDB ()=0 throw ()
virtual Vocabularyvocabulary () const =0 throw ()
virtual Package getPackage (const std::string &name) const =0 throw ()
virtual Maintainer getMaintainer (const std::string &name) const =0 throw ()
virtual void output (PackageConsumer &cons) const =0 throw ()
virtual void output (PackageConsumer &cons, PackageMatcher &filter) const =0 throw ()
virtual void outputRelated (PackageConsumer &cons, const Package &pivot, int distance=1) const =0 throw ()
virtual void outputRelated (PackageConsumer &cons, const TagSet &ts, int distance=1) const =0 throw ()
virtual void updateDebtagsDatabase ()=0 throw (ConsistencyCheckException)
virtual void updateDebtagsDatabase (pkgAcquireStatus *)=0 throw (ConsistencyCheckException)

Static Public Member Functions

static void init (bool editable=false, bool facet_only=true) throw (SystemException, ConsistencyCheckException)
static Environmentget () throw ()

Protected Member Functions

virtual void fillPackageData (Debtags::Package &name) const =0 throw ()

Static Protected Attributes

static Environmentinstance = 0

Friends

class PackageImpl

Detailed Description

Note: if you're not interested in using the Package support in libdebtags and are only interested in accessing the tag database, don't use Environment::get().tagDB(), but directly use the static methonds in TagDB, like TagDB::outputPatched.

This avoids creating a TagDB object, which would store in memory the Debtags database associated to Package objects that are not used.


Member Function Documentation

virtual void Debtags::Environment::fillPackageData Debtags::Package name  )  const throw () [protected, pure virtual]
 

static Environment& Debtags::Environment::get  )  throw () [inline, static]
 

virtual Maintainer Debtags::Environment::getMaintainer const std::string &  name  )  const throw () [pure virtual]
 

virtual Package Debtags::Environment::getPackage const std::string &  name  )  const throw () [pure virtual]
 

virtual bool Debtags::Environment::hasTagDatabase  )  throw () [pure virtual]
 

void Environment::init bool  editable = false,
bool  facet_only = true
throw (SystemException, ConsistencyCheckException) [static]
 

virtual const MaintainerSet& Debtags::Environment::maintainers  )  const throw () [pure virtual]
 

virtual void Debtags::Environment::output PackageConsumer cons,
PackageMatcher filter
const throw () [pure virtual]
 

virtual void Debtags::Environment::output PackageConsumer cons  )  const throw () [pure virtual]
 

virtual void Debtags::Environment::outputRelated PackageConsumer cons,
const TagSet ts,
int  distance = 1
const throw () [pure virtual]
 

virtual void Debtags::Environment::outputRelated PackageConsumer cons,
const Package pivot,
int  distance = 1
const throw () [pure virtual]
 

virtual const PackageDB& Debtags::Environment::packageDB  )  const throw () [pure virtual]
 

virtual const PackageSet& Debtags::Environment::packages  )  const throw () [pure virtual]
 

virtual const std::string& Debtags::Environment::path_vocabulary  )  const throw () [pure virtual]
 

virtual TagDB& Debtags::Environment::tagDB  )  throw () [pure virtual]
 

virtual const TagDB& Debtags::Environment::tagDB  )  const throw () [pure virtual]
 

virtual void Debtags::Environment::updateDebtagsDatabase pkgAcquireStatus *   )  throw (ConsistencyCheckException) [pure virtual]
 

virtual void Debtags::Environment::updateDebtagsDatabase  )  throw (ConsistencyCheckException) [pure virtual]
 

virtual Vocabulary& Debtags::Environment::vocabulary  )  const throw () [pure virtual]
 


Friends And Related Function Documentation

friend class PackageImpl [friend]
 


Member Data Documentation

Environment * Environment::instance = 0 [static, protected]
 


The documentation for this class was generated from the following files:
Generated on Sat Mar 19 17:04:14 2005 for libdebtags by  doxygen 1.4.1