Go to the documentation of this file.
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_;
std::vector< std::string > errorMessages_
errors found during loading HDBs are strored in this vector
HDBRegistry()
HDB registry must be created with instance() method.
CachedHDBManager & hdb(const std::string fileName)
std::string hdbErrorMessage(unsigned int index)
bool hasHDB(const std::string &hdbFile)
static HDBRegistry * instance_
Unique instance of the class.
std::map< const std::string, CachedHDBManager * > registry_
all opened HDBs are stored in this map
void addHDB(CachedHDBManager *hdbManager)
void loadFromSearchPaths()
std::string hdbPath(unsigned int index)
static HDBRegistry & instance()
void removeDeadHDBPaths()
Deletes nonexistent HDB paths from registry.