started working on function to verify the configuration settings

This commit is contained in:
kdeng00
2019-09-16 22:26:17 -04:00
parent 6e570cd495
commit bb783c61ad
4 changed files with 48 additions and 0 deletions
+2
View File
@@ -18,6 +18,7 @@
#include "controller/SongController.hpp"
#include "controller/YearController.hpp"
#include "model/Models.h"
#include "verify/Initialization.h"
namespace fs = std::filesystem;
@@ -59,6 +60,7 @@ int main(int argc, char **argv)
oatpp::base::Environment::init();
model::BinaryPath bConf(argv[0]);
verify::Initialization::checkIcarus(bConf);
run(bConf);
+25
View File
@@ -0,0 +1,25 @@
#include "verify/Initialization.h"
// verifies if the configuration settings are valid
void verify::Initialization::checkIcarus(const model::BinaryPath& bConf)
{
}
// verifies that the authorization settings are not the default values
bool verify::Initialization::confirmConfigAuth(const model::BinaryPath& bConf)
{
return true;
}
// verifies if database connectivity can be established
bool verify::Initialization::confirmConfigDatabase(const model::BinaryPath& bConf)
{
return true;
}
// verifies if the paths found in the config files exists
bool verify::Initialization::confirmConfigPaths(const model::BinaryPath& bConf)
{
return true;
}