-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.hh
More file actions
30 lines (25 loc) · 767 Bytes
/
Copy pathConfig.hh
File metadata and controls
30 lines (25 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef _CONFIG_HH_
#define _CONFIG_HH_
#include <list>
#include <string>
#include "YdbStr.hh"
class DomUtils;
class Config
{
public:
Config(DomUtils& domUtils);
const std::list<std::string>& getSchemas() const { return _schemas; }
const std::string& getRunningDbFile() const { return _runningDbFile; }
private:
static const YdbStr YDB_CONFIG;
static const YdbStr SCHEMA_PATH;
static const YdbStr SCHEMA;
void read();
DomUtils& _domUtils;
const char* _ydbConfigEnvVar = "YDB_CONFIG_FILE";
std::string _ydbConfigFile = "test_models/ydb-config.xml";
std::string _runningDbFile = "/tmp/ydb-running.db";
std::string _schemaPath;
std::list<std::string> _schemas = { "test_models/one-container.yang" };
};
#endif