21    static vector<string> data_path;
 
   32    getDataPaths().push_back(path);
 
 
   37    for (
auto const& it : getDataPaths()) {
 
   38        string data_path = it;
 
   39        if (data_path.empty() || *data_path.rbegin() != 
'/') {
 
   40            data_path.push_back(
'/');
 
   42        ifs.open((data_path + datafile).c_str(), ios_base::in);
 
   48    throw runtime_error(
"failed to open data file in data paths: " +
 
 
void addTestDataPath(const string &path)
Add a path (directory) that openTestData() will search for test data files.
void openTestData(const char *const datafile, ifstream &ifs)
Open a file specified by 'datafile' using the data paths registered via addTestDataPath().
Defines the logger used by the top-level component of kea-lfc.
Manipulating test data files.