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

Debtags::Vocabulary Class Reference

#include <Vocabulary.h>

Collaboration diagram for Debtags::Vocabulary:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Vocabulary (const std::string &filename, const std::string &indexname) throw (Tagcoll::SystemException)
 ~Vocabulary () throw ()
bool hasFacet (const std::string &name) const throw ()
 Check if the vocabulary contains the facet `name'.
bool hasTag (const std::string &fullname) const throw ()
 Check if the vocabulary contains the tag `fullname'.
Facet getFacet (const std::string &name) const throw ()
 Return the facet with the given name.
Tag getTag (const std::string &fillname) const throw ()
 Return the tag with the given full name.
Tagcoll::OpSet< FacetgetFacets () const throw ()
 Return all the facets in the vocabulary.
Tagcoll::OpSet< TaggetTags () const throw ()
 Return all the tags in the vocabulary.
Tagcoll::OpSet< TaggetTags (const std::string &facetName) const throw ()
 Return the tags in the given facet.

Protected Attributes

std::string filename
int fd
Tagcoll::TDBFile db
char * vocdata
off_t vocdata_len

Constructor & Destructor Documentation

Vocabulary::Vocabulary const std::string &  filename,
const std::string &  indexname
throw (Tagcoll::SystemException)
 

Vocabulary::~Vocabulary  )  throw ()
 


Member Function Documentation

Facet Vocabulary::getFacet const std::string &  name  )  const throw ()
 

Return the facet with the given name.

OpSet< Facet > Vocabulary::getFacets  )  const throw ()
 

Return all the facets in the vocabulary.

Tag Vocabulary::getTag const std::string &  fillname  )  const throw ()
 

Return the tag with the given full name.

OpSet< Tag > Vocabulary::getTags const std::string &  facetName  )  const throw ()
 

Return the tags in the given facet.

OpSet< Tag > Vocabulary::getTags  )  const throw ()
 

Return all the tags in the vocabulary.

bool Vocabulary::hasFacet const std::string &  name  )  const throw ()
 

Check if the vocabulary contains the facet `name'.

bool Vocabulary::hasTag const std::string &  fullname  )  const throw ()
 

Check if the vocabulary contains the tag `fullname'.


Member Data Documentation

Tagcoll::TDBFile Debtags::Vocabulary::db [protected]
 

int Debtags::Vocabulary::fd [protected]
 

std::string Debtags::Vocabulary::filename [protected]
 

char* Debtags::Vocabulary::vocdata [protected]
 

off_t Debtags::Vocabulary::vocdata_len [protected]
 


The documentation for this class was generated from the following files:
Generated on Sat Sep 10 03:44:57 2005 for libdebtags by  doxygen 1.4.4