37 lines
854 B
C++
37 lines
854 B
C++
#ifndef EZ_APPLICATION_LICENCE_DISABLE
|
|
#define LINUX 1
|
|
//#define WINDOWS 1
|
|
|
|
#include <stdio.h>
|
|
#include "licenceGenerator.h"
|
|
|
|
/// @brief hlavní funkce
|
|
/// @param argc
|
|
/// @param argv parametry pro generování licence
|
|
/// @return
|
|
int main7(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 (const LicenceException &ex)
|
|
{
|
|
cout << "error: " << ex.getErrorMessage();
|
|
system("pause");
|
|
}
|
|
catch (...)
|
|
{
|
|
cerr << "Obecná chyba\n";
|
|
system("pause");
|
|
}
|
|
|
|
system("pause");
|
|
return SUCCES;
|
|
}
|
|
|
|
#endif |