started working on function to verify the configuration settings
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user