oddělení generatoru od readeru
This commit is contained in:
@@ -1,28 +1,26 @@
|
||||
#include <stdio.h>
|
||||
#include "utils.h"
|
||||
#include "licenceGenerator.h"
|
||||
#include "licenceReader.h"
|
||||
#include "licenceCommon.h"
|
||||
|
||||
/// @brief hlavní funkce
|
||||
/// @param argc
|
||||
/// @param argv parametry pro generování licence
|
||||
/// @return
|
||||
int main5(int argc, char *argv[])
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
unordered_map<string, string> arguments = getArguments(argc, argv);
|
||||
// try
|
||||
// {
|
||||
// unordered_map<string, string> arguments = getArguments(argc, argv);
|
||||
// LicenceGenerator generatorOld = LicenceGenerator(arguments["-uid"], arguments["-cid"], arguments["-csd"], arguments["-configFileName"]);
|
||||
// generatorOld.createLicenceFile();
|
||||
// return SUCCES;
|
||||
// }
|
||||
// catch (...)
|
||||
// {
|
||||
// cerr << "Obecná chyba\n";
|
||||
// }
|
||||
try
|
||||
{
|
||||
unordered_map<string, string> arguments = getArguments(argc, argv);
|
||||
LicenceGenerator generatorOld = LicenceGenerator(arguments["-uid"], arguments["-cid"], arguments["-csd"], arguments["-configFileName"]);
|
||||
generatorOld.createLicenceFile();
|
||||
return SUCCES;
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
cerr << "Obecná chyba\n";
|
||||
}
|
||||
|
||||
// system("pause");
|
||||
system("pause");
|
||||
return SUCCES;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user