Singleton class to configure and access the various Debtags paths. More...
#include <path.h>
Classes | |
class | OverrideDebtagsIndexDir |
class | OverrideDebtagsSourceDir |
class | OverrideDebtagsUserIndexDir |
class | OverrideDebtagsUserSourceDir |
Static Public Member Functions | |
static std::string | vocabulary () |
static std::string | userVocabulary () |
static std::string | tagdb () |
static std::string | userTagdb () |
static std::string | debtagsSourceDir () |
static std::string | debtagsIndexDir () |
static std::string | debtagsUserSourceDir () |
static std::string | debtagsUserIndexDir () |
static void | setDebtagsSourceDir (const std::string &s) |
static void | setDebtagsIndexDir (const std::string &s) |
static void | setDebtagsUserSourceDir (const std::string &s) |
static void | setDebtagsUserIndexDir (const std::string &s) |
static int | access (const std::string &, int) |
static time_t | timestamp (const std::string &) |
Static Protected Member Functions | |
static Path & | instance () |
Protected Attributes | |
std::string | m_debtagsSourceDir |
std::string | m_debtagsIndexDir |
std::string | m_debtagsUserSourceDir |
std::string | m_debtagsUserIndexDir |
Static Protected Attributes | |
static Path * | s_instance = 0 |
Singleton class to configure and access the various Debtags paths.
int ept::debtags::Path::access | ( | const std::string & | s, | |
int | m | |||
) | [static] |
Referenced by ept::debtags::Debtags::Debtags().
std::string ept::debtags::Path::debtagsIndexDir | ( | ) | [static] |
References instance(), and m_debtagsIndexDir.
Referenced by tagdb(), and vocabulary().
std::string ept::debtags::Path::debtagsSourceDir | ( | ) | [static] |
References instance(), and m_debtagsSourceDir.
Referenced by ept::debtags::Debtags::changes(), ept::debtags::Debtags::Debtags(), ept::debtags::Vocabulary::Vocabulary(), and ept::debtags::Vocabulary::write().
std::string ept::debtags::Path::debtagsUserIndexDir | ( | ) | [static] |
References instance(), and m_debtagsUserIndexDir.
Referenced by userTagdb(), and userVocabulary().
std::string ept::debtags::Path::debtagsUserSourceDir | ( | ) | [static] |
References instance(), and m_debtagsUserSourceDir.
Referenced by ept::debtags::Debtags::changes(), ept::debtags::Debtags::Debtags(), ept::debtags::Vocabulary::Vocabulary(), and ept::debtags::Vocabulary::write().
Path & ept::debtags::Path::instance | ( | ) | [static, protected] |
References m_debtagsIndexDir, m_debtagsSourceDir, m_debtagsUserIndexDir, m_debtagsUserSourceDir, and s_instance.
Referenced by debtagsIndexDir(), debtagsSourceDir(), debtagsUserIndexDir(), debtagsUserSourceDir(), setDebtagsIndexDir(), setDebtagsSourceDir(), setDebtagsUserIndexDir(), and setDebtagsUserSourceDir().
void ept::debtags::Path::setDebtagsIndexDir | ( | const std::string & | s | ) | [static] |
void ept::debtags::Path::setDebtagsSourceDir | ( | const std::string & | s | ) | [static] |
void ept::debtags::Path::setDebtagsUserIndexDir | ( | const std::string & | s | ) | [static] |
void ept::debtags::Path::setDebtagsUserSourceDir | ( | const std::string & | s | ) | [static] |
std::string ept::debtags::Path::tagdb | ( | ) | [static] |
References debtagsIndexDir().
time_t ept::debtags::Path::timestamp | ( | const std::string & | file | ) | [static] |
std::string ept::debtags::Path::userTagdb | ( | ) | [static] |
References debtagsUserIndexDir().
std::string ept::debtags::Path::userVocabulary | ( | ) | [static] |
References debtagsUserIndexDir().
Referenced by ept::debtags::Vocabulary::write().
std::string ept::debtags::Path::vocabulary | ( | ) | [static] |
References debtagsIndexDir().
Referenced by ept::debtags::Vocabulary::write().
std::string ept::debtags::Path::m_debtagsIndexDir [protected] |
Referenced by debtagsIndexDir(), instance(), and setDebtagsIndexDir().
std::string ept::debtags::Path::m_debtagsSourceDir [protected] |
Referenced by debtagsSourceDir(), instance(), and setDebtagsSourceDir().
std::string ept::debtags::Path::m_debtagsUserIndexDir [protected] |
Referenced by debtagsUserIndexDir(), instance(), and setDebtagsUserIndexDir().
std::string ept::debtags::Path::m_debtagsUserSourceDir [protected] |
Referenced by debtagsUserSourceDir(), instance(), and setDebtagsUserSourceDir().
Path * ept::debtags::Path::s_instance = 0 [static, protected] |
Referenced by instance().