diff --git a/include/common/licenceCommon.h b/include/common/licenceCommon.h index f432daf..454680b 100644 --- a/include/common/licenceCommon.h +++ b/include/common/licenceCommon.h @@ -51,9 +51,9 @@ enum class GeneralError enum class ELCType { - ELC1 = 1, - ELC2 = 2, - ELC3 = 3 + ELC1 = 1, //starý původní licenční soubor + ELC2 = 2, //modifikovaný starý licenční soubor umoznující modifikace dle paramatetrů + ELC3 = 3 //budoucí softwarový licenční soubor, který není zalození na existenci CID a CSD }; enum class ELCSubType { @@ -90,6 +90,7 @@ enum class FileNameGenerationType DEFAULT = 1 }; +//indexy musí být velká písmena ze základní ASCI tabulky struct Mapping { unordered_map licMapTypes = {{"EOV_OSV", LicenceType::EOS_EOV}, {"DDTS", LicenceType::DDTS}, {"DRT", LicenceType::DRT}}; @@ -105,13 +106,13 @@ struct ErrorMessage struct LicenceIdentification { - ELCType licElcType = ELCType::ELC2; + ELCType licElcType = ELCType::ELC2; //hlavní typ licenčního souboru LicenceType licLicenceType; string licTypeName = ""; PlcType licPlcType; 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 licCompatibility = 0; // identikator hlavního ELC. 0 = nedefinová a vrací se defaultní k danému ELC uint16_t licItemsCount = 0; diff --git a/output/licenceGenerator b/output/licenceGenerator index 9bd0a56..6b8d889 100644 Binary files a/output/licenceGenerator and b/output/licenceGenerator differ diff --git a/src/common/licenceELC2.cpp b/src/common/licenceELC2.cpp index fa2b48d..7377888 100644 --- a/src/common/licenceELC2.cpp +++ b/src/common/licenceELC2.cpp @@ -18,7 +18,7 @@ string LicenceELC2::getLicenceName() char prefixChar = 97; int licType = (int)lIdentification.licLicenceType; int lVersion = lIdentification.licenceVersion; - + unordered_map baseString; baseString.insert(std::pair((int)LicenceType::EOS_EOV, "ezlic_eovosv")); baseString.insert(std::pair((int)LicenceType::DDTS, "ezlic_ddts"));