32#ifndef TTA_HDB_REGISTRY_HH
33#define TTA_HDB_REGISTRY_HH
54 bool hasHDB(
const std::string& hdbFile);
57 std::string
hdbPath(
unsigned int index);
67 std::map<const std::string, CachedHDBManager*>
registry_;
static HDBRegistry & instance()
void addHDB(CachedHDBManager *hdbManager)
CachedHDBManager & hdb(const std::string fileName)
void loadFromSearchPaths()
void removeDeadHDBPaths()
Deletes nonexistent HDB paths from registry.
std::string hdbPath(unsigned int index)
std::string hdbErrorMessage(unsigned int index)
HDBRegistry()
HDB registry must be created with instance() method.
std::map< const std::string, CachedHDBManager * > registry_
all opened HDBs are stored in this map
std::vector< std::string > errorMessages_
errors found during loading HDBs are strored in this vector
static HDBRegistry * instance_
Unique instance of the class.
bool hasHDB(const std::string &hdbFile)