Singleton class to configure and access the various Popcon paths. More...
#include <path.h>
Classes | |
class | OverrideIndexDir |
Static Public Member Functions | |
static std::string | indexDir () |
static std::string | index () |
static void | setIndexDir (const std::string &s) |
static int | access (const std::string &, int) |
static time_t | indexTimestamp () |
static void | setTimestamp (time_t ts) |
Static Protected Member Functions | |
static Path & | instance () |
Protected Attributes | |
std::string | m_indexDir |
Static Protected Attributes | |
static Path * | s_instance = 0 |
Singleton class to configure and access the various Popcon paths.
int ept::textsearch::Path::access | ( | const std::string & | s, | |
int | m | |||
) | [static] |
std::string ept::textsearch::Path::index | ( | ) | [static] |
References instance(), and m_indexDir.
Referenced by ept::core::xapian::Source::open(), and ept::textsearch::TextSearch::TextSearch().
std::string ept::textsearch::Path::indexDir | ( | ) | [static] |
References instance(), and m_indexDir.
Referenced by indexTimestamp(), and setTimestamp().
time_t ept::textsearch::Path::indexTimestamp | ( | ) | [static] |
References indexDir(), and instance().
Referenced by ept::textsearch::TextSearch::TextSearch(), and ept::core::xapian::Source::timestamp().
Path & ept::textsearch::Path::instance | ( | ) | [static, protected] |
References m_indexDir, and s_instance.
Referenced by index(), indexDir(), indexTimestamp(), setIndexDir(), and setTimestamp().
void ept::textsearch::Path::setIndexDir | ( | const std::string & | s | ) | [static] |
References instance(), and m_indexDir.
Referenced by ept::textsearch::Path::OverrideIndexDir::OverrideIndexDir(), and ept::textsearch::Path::OverrideIndexDir::~OverrideIndexDir().
void ept::textsearch::Path::setTimestamp | ( | time_t | ts | ) | [static] |
References indexDir(), and instance().
std::string ept::textsearch::Path::m_indexDir [protected] |
Referenced by index(), indexDir(), instance(), and setIndexDir().
Path * ept::textsearch::Path::s_instance = 0 [static, protected] |
Referenced by instance().