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

Debtags::VocabularyMerger Class Reference

#include <VocabularyMerger.h>

List of all members.

Public Member Functions

void read (Tagcoll::ParserInput &input) throw (Tagcoll::ParserException)
 Parse and import the vocabulary from `input', merging the data with the previously imported ones.
void write (const std::string &fname) throw (Tagcoll::SystemException)
 Write the vocabulary data to the given file.
void write (FILE *out) throw (Tagcoll::SystemException)
 Write the vocabulary data to the given output stream.
void writeIndex (const std::string &fname, long base_ofs=0) throw (Tagcoll::SystemException)
 Write the vocabulary index to the given file.
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'.

Protected Member Functions

FacetDataobtainFacet (const std::string &name) throw ()
TagDataobtainTag (const std::string &fullname) throw ()

Protected Attributes

std::map< std::string, FacetDatafacets

Classes

class  FacetData
class  TagData


Member Function Documentation

bool Debtags::VocabularyMerger::hasFacet const std::string &  name  )  const throw () [inline]
 

Check if the vocabulary contains the facet `name'.

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

Check if the vocabulary contains the tag `fullname'.

VocabularyMerger::FacetData & VocabularyMerger::obtainFacet const std::string &  name  )  throw () [protected]
 

VocabularyMerger::TagData & VocabularyMerger::obtainTag const std::string &  fullname  )  throw () [protected]
 

void VocabularyMerger::read Tagcoll::ParserInput input  )  throw (Tagcoll::ParserException)
 

Parse and import the vocabulary from `input', merging the data with the previously imported ones.

void VocabularyMerger::write FILE *  out  )  throw (Tagcoll::SystemException)
 

Write the vocabulary data to the given output stream.

void VocabularyMerger::write const std::string &  fname  )  throw (Tagcoll::SystemException)
 

Write the vocabulary data to the given file.

void VocabularyMerger::writeIndex const std::string &  fname,
long  base_ofs = 0
throw (Tagcoll::SystemException)
 

Write the vocabulary index to the given file.

Parameters:
fname Pathname of the index file to write
base_ofs The offset to the beginning of the indexed file. It is usually 0, but it can be set to something higher, for example, to index data in a file with a fixed-length header.


Member Data Documentation

std::map<std::string, FacetData> Debtags::VocabularyMerger::facets [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