This commit is contained in:
2024-05-14 14:51:30 +02:00
parent 63d8178b4b
commit ca93b3369f
21 changed files with 1037 additions and 96 deletions

View File

@@ -3,9 +3,29 @@
#ifndef ELC3_READER__H
#define ELC3_READER__H
#include "utils.h"
#include "licenceCommon.h"
#include "licenceELC3.h"
namespace Reader
{
class Licence3 : public LicenceELC3
{
public:
LicenceELC3Info licenceInfo;
Licence3();
~Licence3();
Licence3(LicenceIdentification &licIdentification);
bool readLicence(LicenceInfoGeneral *licences);
bool getLicenceInfo(void *ptr);
void getLicenceItems();
private:
bool getUID();
};
}
#endif

View File

@@ -21,6 +21,7 @@ struct InitStructure
int compatibility = 0;
string licenceFilePath = "";
string cid_csd_filePath = "";
string uid_filePath = "";
};
/// @brief struktura pro informaci o licenci
@@ -49,6 +50,7 @@ public:
bool getLicenceItemInfo(int protocolId, void *returnItemStructure); //vrací informace o licenčím bodu na základě id protocolu a předané návratové struktury
private:
Licence3 *licence3 {}; //interní struktura pro zpracování licence ELC2
Licence2 *licence2 {}; //interní struktura pro zpracování licence ELC2
Licence1 *licence1 {}; //interní struktura pro zpracování licence ELC1
LicenceIdentification licIdentification {};