libept  0.5.25
Public Member Functions | Protected Types | Protected Member Functions | List of all members
ept::debtags::SourceDir Class Reference

Access a directory containing Debtags data files. More...

#include <sourcedir.h>

Inheritance diagram for ept::debtags::SourceDir:
Inheritance graph
[legend]
Collaboration diagram for ept::debtags::SourceDir:
Collaboration graph
[legend]

Public Member Functions

 SourceDir (const std::string &path)
 
time_t timestamp ()
 Return the time of the newest file in the source directory. More...
 
time_t vocTimestamp ()
 Return the time of the newest vocabulary file in the source directory. More...
 
time_t tagTimestamp ()
 Return the time of the newest tag file in the source directory. More...
 
template<typename OUT >
void readTags (OUT out)
 Read the tag files in the directory and output their content to out. More...
 
void readVocabularies (VocabularyMerger &out)
 Read the vocabulary files in the directory and output their content to out. More...
 

Protected Types

enum  FileType {
  SKIP, TAG, VOC, TAGGZ,
  VOCGZ
}
 

Protected Member Functions

FileType fileType (const std::string &name)
 

Detailed Description

Access a directory containing Debtags data files.

Member Enumeration Documentation

Enumerator
SKIP 
TAG 
VOC 
TAGGZ 
VOCGZ 

Constructor & Destructor Documentation

ept::debtags::SourceDir::SourceDir ( const std::string &  path)
inline

Member Function Documentation

SourceDir::FileType ept::debtags::SourceDir::fileType ( const std::string &  name)
protected
template<typename OUT >
void ept::debtags::SourceDir::readTags ( OUT  out)

Read the tag files in the directory and output their content to out.

Referenced by ept::debtags::DebtagsIndexer::rebuild().

void ept::debtags::SourceDir::readVocabularies ( VocabularyMerger out)

Read the vocabulary files in the directory and output their content to out.

References D_NAME, and ept::debtags::VocabularyMerger::read().

Referenced by ept::debtags::VocabularyIndexer::rebuild().

time_t ept::debtags::SourceDir::tagTimestamp ( )

Return the time of the newest tag file in the source directory.

References D_NAME.

time_t ept::debtags::SourceDir::timestamp ( )

Return the time of the newest file in the source directory.

References D_NAME.

Referenced by ept::debtags::DebtagsIndexer::rescan().

time_t ept::debtags::SourceDir::vocTimestamp ( )

Return the time of the newest vocabulary file in the source directory.

References D_NAME.

Referenced by ept::debtags::VocabularyIndexer::rescan().


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