Upravy popisků

This commit is contained in:
2024-04-03 09:38:01 +02:00
parent 2175852bc0
commit 79cc4998bc
3 changed files with 7 additions and 6 deletions

View File

@@ -51,9 +51,9 @@ enum class GeneralError
enum class ELCType enum class ELCType
{ {
ELC1 = 1, ELC1 = 1, //starý původní licenční soubor
ELC2 = 2, ELC2 = 2, //modifikovaný starý licenční soubor umoznující modifikace dle paramatetrů
ELC3 = 3 ELC3 = 3 //budoucí softwarový licenční soubor, který není zalození na existenci CID a CSD
}; };
enum class ELCSubType enum class ELCSubType
{ {
@@ -90,6 +90,7 @@ enum class FileNameGenerationType
DEFAULT = 1 DEFAULT = 1
}; };
//indexy musí být velká písmena ze základní ASCI tabulky
struct Mapping struct Mapping
{ {
unordered_map<string, LicenceType> licMapTypes = {{"EOV_OSV", LicenceType::EOS_EOV}, {"DDTS", LicenceType::DDTS}, {"DRT", LicenceType::DRT}}; unordered_map<string, LicenceType> licMapTypes = {{"EOV_OSV", LicenceType::EOS_EOV}, {"DDTS", LicenceType::DDTS}, {"DRT", LicenceType::DRT}};
@@ -105,13 +106,13 @@ struct ErrorMessage
struct LicenceIdentification struct LicenceIdentification
{ {
ELCType licElcType = ELCType::ELC2; ELCType licElcType = ELCType::ELC2; //hlavní typ licenčního souboru
LicenceType licLicenceType; LicenceType licLicenceType;
string licTypeName = ""; string licTypeName = "";
PlcType licPlcType; PlcType licPlcType;
uint8_t licenceVersion = 1; // verze licence, určuje kodování, pojmenování souborů uint8_t licenceVersion = 1; // verze licence, určuje kodování, pojmenování souborů
uint8_t licenceIndex = 0; uint8_t licenceIndex = 0; //index licenčního souboru v případě, ze jich je víc
uint8_t revision; uint8_t revision;
uint8_t licCompatibility = 0; // identikator hlavního ELC. 0 = nedefinová a vrací se defaultní k danému ELC uint8_t licCompatibility = 0; // identikator hlavního ELC. 0 = nedefinová a vrací se defaultní k danému ELC
uint16_t licItemsCount = 0; uint16_t licItemsCount = 0;

Binary file not shown.

View File

@@ -18,7 +18,7 @@ string LicenceELC2::getLicenceName()
char prefixChar = 97; char prefixChar = 97;
int licType = (int)lIdentification.licLicenceType; int licType = (int)lIdentification.licLicenceType;
int lVersion = lIdentification.licenceVersion; int lVersion = lIdentification.licenceVersion;
unordered_map<int, string> baseString; unordered_map<int, string> baseString;
baseString.insert(std::pair<int, string>((int)LicenceType::EOS_EOV, "ezlic_eovosv")); baseString.insert(std::pair<int, string>((int)LicenceType::EOS_EOV, "ezlic_eovosv"));
baseString.insert(std::pair<int, string>((int)LicenceType::DDTS, "ezlic_ddts")); baseString.insert(std::pair<int, string>((int)LicenceType::DDTS, "ezlic_ddts"));