Moved path detection/initialization from main to configuration class.

This commit is contained in:
emb
2015-01-01 10:27:09 -06:00
parent c30bbb92d7
commit 48ac11f01a
3 changed files with 45 additions and 43 deletions

View File

@@ -12,6 +12,10 @@ class Configuration
public:
Configuration();
virtual ~Configuration();
static void Initialize();
static void SetAbsolutePath(std::string absolutePath);
static std::string GetAbsolutePath();
static std::string ConvertToAbsolutePath(std::string prefix, std::string path);
// gets the global configuration
bool Import(std::string keyPrefix, std::string file);
@@ -24,9 +28,6 @@ public:
bool PropertyExists(std::string key);
bool PropertyPrefixExists(std::string key);
bool GetPropertyAbsolutePath(std::string key, std::string &value);
static void SetAbsolutePath(std::string absolutePath);
static std::string GetAbsolutePath();
static std::string ConvertToAbsolutePath(std::string prefix, std::string path);
bool IsVerbose() const;
void SetVerbose(bool verbose);
bool IsRequiredPropertiesSet();