Access a directory containing Debtags data files. More...
#include <sourcedir.h>
Public Member Functions | |
| SourceDir (const std::string &path) | |
| time_t | timestamp () |
| Return the time of the newest file in the source directory. | |
| bool | readScores (std::map< std::string, Score > &out, size_t &submissions) |
| Read the tag files in the directory and output their content to the map. | |
Protected Types | |
| enum | FileType { SKIP, RAW, RAWGZ } |
Protected Member Functions | |
| FileType | fileType (const std::string &name) |
Access a directory containing Debtags data files.
enum ept::popcon::SourceDir::FileType [protected] |
| ept::popcon::SourceDir::SourceDir | ( | const std::string & | path | ) | [inline] |
| SourceDir::FileType ept::popcon::SourceDir::fileType | ( | const std::string & | name | ) | [protected] |
Referenced by timestamp().
| bool ept::popcon::SourceDir::readScores | ( | std::map< std::string, Score > & | out, | |
| size_t & | submissions | |||
| ) |
Read the tag files in the directory and output their content to the map.
Referenced by ept::popcon::PopconIndexer::rebuild().
| time_t ept::popcon::SourceDir::timestamp | ( | ) |
Return the time of the newest file in the source directory.
References fileType(), and SKIP.
Referenced by ept::popcon::PopconIndexer::rescan().
1.7.1