This commit is contained in:
2023-12-07 14:51:36 +01:00
parent 31c23daf5e
commit f92b2c708f
40 changed files with 3305 additions and 54 deletions

View File

@@ -3,6 +3,7 @@
#include "utils.h"
#include <filesystem>
#define FILEBUFFER 300
#define TWO_HOURSE_SECONDS 7200
@@ -11,10 +12,10 @@
/// @param argv parametry pro generování licence
/// 1-cid, 2-csd, 3-stanice 4-rozvadec 5-typ licence
/// @return
int main(int argc, char *argv[])
int main5(int argc, char *argv[])
{
map<string, string> arguments = getArguments(argc, argv);
unordered_map<string, string> arguments = getArguments(argc, argv);
PlcLicence plcWriteLicence = PlcLicence(arguments["-cid"], arguments["-csd"], arguments["-outputType"], arguments["-configFileName"]);
if (plcWriteLicence.CreateLicence() == false)
@@ -22,16 +23,7 @@ int main(int argc, char *argv[])
cerr << "Licence creation failed";
}
/* READ LICENCE CODE
// arguments: -cid, -csd, -licenceFi leName, -licenceType=EOV_OSV, -licenceVersion
PlcLicence plcLicence = PlcLicence();
if (plcLicence.ReadLicence(argumentsString["-licenceFileName"], argumentsString["-licenceType"], argumentsString["-licenceVersion"], argumentsString["-cid"], argumentsString["-csd"]) == false)
{
cout << "Reading error: " << plcLicence.operationErrors << endl;
}
*/
return EXIT_SUCCESS;
}