code cleaning
This commit is contained in:
@@ -42,9 +42,9 @@ enum PrefixType
|
||||
ELC1 = 1
|
||||
};
|
||||
|
||||
typedef uint32_t DWORD; // DWORD = unsigned 32 bit value
|
||||
typedef uint16_t WORD; // WORD = unsigned 16 bit value
|
||||
typedef uint8_t BYTE; // BYTE = unsigned 8 bit value
|
||||
typedef uint32_t DWORD;
|
||||
typedef uint16_t WORD;
|
||||
typedef uint8_t BYTE;
|
||||
typedef uint32_t UDINT;
|
||||
typedef uint32_t DATE;
|
||||
typedef uint8_t USINT;
|
||||
@@ -227,20 +227,16 @@ private:
|
||||
|
||||
void processConfigFile(string &dataFileName); //process data from config file
|
||||
void getSDData(); // reads SD card
|
||||
string getLicenceName(BYTE licPostfix); // get proper licencname
|
||||
void initCrypto(); // inits keys and vectors for encryptin
|
||||
unsigned char *getLicenceContent(); // reads content of licence
|
||||
string getLicenceName(BYTE licPostfix); // get proper licencename
|
||||
void initCrypto(); // inits keys and vectors for encrypting
|
||||
|
||||
|
||||
public:
|
||||
string operationErrors = "";
|
||||
|
||||
PlcLicence();
|
||||
PlcLicence(char *cid, char *csd, char *stationName, char *switchName, char *licenceType, char *binaryType, const char *dataFileName);
|
||||
PlcLicence(string cid, string csd, char *stationName, char *switchName, char *licenceType, char *binaryType, const char *dataFileName);
|
||||
PlcLicence(map<string, string> & arguments);
|
||||
PlcLicence(char *cid, char *csd, string binaryType, string dataFileName);
|
||||
bool CreateLicence(); // creates licence
|
||||
bool CreateLicence(); // creates licence
|
||||
bool ReadLicence(const char *dataFileName, WORD licType, BYTE licPostfix, char *cid, char *csd); // reads licence file to readable structures
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user