Oddělení informace o licenci

This commit is contained in:
2024-04-12 12:15:37 +02:00
parent 2b7a68e64a
commit 671a764b04
8 changed files with 38 additions and 27 deletions

View File

@@ -23,6 +23,12 @@ struct InitStructure
string cid_csd_filePath = "";
};
/// @brief struktura pro informaci o licenci
struct LicenceInfo
{
string licenceFileName = "";
};
class LicenceReader
{
@@ -32,6 +38,7 @@ public:
bool argumentsCorrect = false;
ErrorMessage error;
SDCardInfo sdCardInfo {};
LicenceInfo licInfo {};
LicenceReader();
~LicenceReader();
@@ -39,13 +46,14 @@ public:
bool initread(int elcType, InitStructure &initStructure);
bool getLicenceInfo(void *returnStructure); //vrací informace o všech licenčních bodech základě předané návratové struktury
bool getLicenceItemInfo(int protocolId, void *returnItemStructure); //vrací informace o licenčím bodu na základě id protocolu a předané návratové struktury
LicenceInfoGeneral licenceInfo {}; //pole licencí
private:
Licence2 *licence2 {}; //interní struktura pro zpracování licence ELC2
Licence1 *licence1 {}; //interní struktura pro zpracování licence ELC1
LicenceIdentification licIdentification {};
string configFileName = "";
LicenceInfoGeneral licencesInfo {}; //pole licencí
};
#endif