Publikační verze 1
This commit is contained in:
7
docker/startELC12.sh
Normal file
7
docker/startELC12.sh
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
chmod 777 output/licenceGenerator
|
||||||
|
|
||||||
|
#./output/licenceGenerator -cid=9f54495344434954615ad803c50171bf -csd=400e00325b5900003be77f800a400043 -outputType=file -configFileName=licData.xml
|
||||||
|
|
||||||
|
cd output
|
||||||
|
./licenceGenerator -cid=9f54495344434954615ad803c50171bf -csd=400e00325b5900003be77f800a400043 -outputType=file -configFileName=licData.xml
|
||||||
7
docker/startuid.sh
Normal file
7
docker/startuid.sh
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
chmod 777 output/licenceGenerator
|
||||||
|
|
||||||
|
#./output/licenceGenerator -uid=a3395d1b898b4fdbbd563f9c75b3e885 -outputType=file -configFileName=licData.xml
|
||||||
|
|
||||||
|
cd output
|
||||||
|
./licenceGenerator -uid=a3395d1b898b4fdbbd563f9c75b3e885 -outputType=file -configFileName=licData.xml
|
||||||
8
licData.xml
Normal file
8
licData.xml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
|
<licence elc="1" xmlVersion="1" revision="1" compatibility="1">
|
||||||
|
<licenceType licenceVersion="1" licenceIndex="0">EOV_OSV</licenceType>
|
||||||
|
<plcType>wago</plcType>
|
||||||
|
<licenceName>Licence pro EOV_OSV</licenceName>
|
||||||
|
<station>zst.ceskatrebova.ddts.cz</station>
|
||||||
|
<distributor>ROV21</distributor>
|
||||||
|
</licence>
|
||||||
Binary file not shown.
BIN
output/ezlic_eovosv0_wqxcyjpdxji.lic
Normal file
BIN
output/ezlic_eovosv0_wqxcyjpdxji.lic
Normal file
Binary file not shown.
@@ -1,39 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<licence elc="3" xmlVersion="1" revision="1" compatibility="1">
|
<licence elc="1" xmlVersion="1" revision="1" compatibility="1">
|
||||||
<licenceType licenceVersion="1" licenceIndex="0">DRT</licenceType>
|
<licenceType licenceVersion="1" licenceIndex="0">EOV_OSV</licenceType>
|
||||||
<plcType>wago</plcType>
|
<plcType>wago</plcType>
|
||||||
<licenceName>Licence pro EOV_OSV</licenceName>
|
<licenceName>Licence pro EOV_OSV</licenceName>
|
||||||
<project>Licence ELC3</project>
|
<station>zst.ceskatrebova.ddts.cz</station>
|
||||||
<items>
|
<distributor>ROV21</distributor>
|
||||||
<item>
|
|
||||||
<name>pt_Ez_interHW</name>
|
|
||||||
<protoId>0</protoId>
|
|
||||||
<dataPointsCount>3</dataPointsCount>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<name>pt_Ez_buffer</name>
|
|
||||||
<protoId>1</protoId>
|
|
||||||
<dataPointsCount>4294967295</dataPointsCount>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<name>pt_Ez_webs</name>
|
|
||||||
<protoId>2</protoId>
|
|
||||||
<dataPointsCount>4294967295</dataPointsCount>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<name>pt_Ez_iec104c</name>
|
|
||||||
<protoId>5</protoId>
|
|
||||||
<dataPointsCount>55</dataPointsCount>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<name>pt_Ez_iec104s</name>
|
|
||||||
<protoId>6</protoId>
|
|
||||||
<dataPointsCount>66</dataPointsCount>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<name>pt_Ez_iec61850c</name>
|
|
||||||
<protoId>7</protoId>
|
|
||||||
<dataPointsCount>77</dataPointsCount>
|
|
||||||
</item>
|
|
||||||
</items>
|
|
||||||
</licence>
|
</licence>
|
||||||
39
output/licDataActual3.xml
Normal file
39
output/licDataActual3.xml
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<licence elc="3" xmlVersion="1" revision="1" compatibility="1">
|
||||||
|
<licenceType licenceVersion="1" licenceIndex="0">DRT</licenceType>
|
||||||
|
<plcType>wago</plcType>
|
||||||
|
<licenceName>Licence pro EOV_OSV</licenceName>
|
||||||
|
<project>Licence ELC3</project>
|
||||||
|
<items>
|
||||||
|
<item>
|
||||||
|
<name>pt_Ez_interHW</name>
|
||||||
|
<protoId>0</protoId>
|
||||||
|
<dataPointsCount>3</dataPointsCount>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<name>pt_Ez_buffer</name>
|
||||||
|
<protoId>1</protoId>
|
||||||
|
<dataPointsCount>4294967295</dataPointsCount>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<name>pt_Ez_webs</name>
|
||||||
|
<protoId>2</protoId>
|
||||||
|
<dataPointsCount>4294967295</dataPointsCount>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<name>pt_Ez_iec104c</name>
|
||||||
|
<protoId>5</protoId>
|
||||||
|
<dataPointsCount>55</dataPointsCount>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<name>pt_Ez_iec104s</name>
|
||||||
|
<protoId>6</protoId>
|
||||||
|
<dataPointsCount>66</dataPointsCount>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<name>pt_Ez_iec61850c</name>
|
||||||
|
<protoId>7</protoId>
|
||||||
|
<dataPointsCount>77</dataPointsCount>
|
||||||
|
</item>
|
||||||
|
</items>
|
||||||
|
</licence>
|
||||||
8
output/licDataTest.xml
Normal file
8
output/licDataTest.xml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
|
<licence elc="1" xmlVersion="1" revision="1" compatibility="1">
|
||||||
|
<licenceType licenceVersion="1" licenceIndex="0">EOV_OSV</licenceType>
|
||||||
|
<plcType>wago</plcType>
|
||||||
|
<licenceName>Licence pro EOV_OSV</licenceName>
|
||||||
|
<station>zst.ceskatrebova.ddts.cz</station>
|
||||||
|
<distributor>ROV21</distributor>
|
||||||
|
</licence>
|
||||||
Binary file not shown.
@@ -1,7 +1,7 @@
|
|||||||
#ifndef EZ_APPLICATION_LICENCE_DISABLE
|
#ifndef EZ_APPLICATION_LICENCE_DISABLE
|
||||||
#define LINUX 1
|
#define LINUX 1
|
||||||
//#define WINDOWS 1
|
//#define WINDOWS 1
|
||||||
#define READ 1
|
//#define READ 1
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "licenceGenerator.h"
|
#include "licenceGenerator.h"
|
||||||
@@ -19,7 +19,7 @@ int main(int argc, char *argv[])
|
|||||||
unordered_map<string, string> arguments = getArguments(argc, argv);
|
unordered_map<string, string> arguments = getArguments(argc, argv);
|
||||||
LicenceGenerator generatorOld = LicenceGenerator(arguments["-uid"], arguments["-cid"], arguments["-csd"], arguments["-configFileName"]);
|
LicenceGenerator generatorOld = LicenceGenerator(arguments["-uid"], arguments["-cid"], arguments["-csd"], arguments["-configFileName"]);
|
||||||
generatorOld.createLicenceFile();
|
generatorOld.createLicenceFile();
|
||||||
system("pause");
|
//system("pause");
|
||||||
|
|
||||||
#ifdef READ
|
#ifdef READ
|
||||||
InitStructure initStructure = {};
|
InitStructure initStructure = {};
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
#include "pugixml.hpp"
|
#include "pugixml.hpp"
|
||||||
#include <typeinfo>
|
#include <typeinfo>
|
||||||
|
|
||||||
#define WINDOWS 1
|
#define LINUX 1
|
||||||
|
|
||||||
LicenceGenerator::LicenceGenerator()
|
LicenceGenerator::LicenceGenerator()
|
||||||
{
|
{
|
||||||
@@ -44,7 +44,7 @@ bool LicenceGenerator::processInputConfiguration()
|
|||||||
{
|
{
|
||||||
|
|
||||||
string fullFile = getCompletePath(this->configFileName);
|
string fullFile = getCompletePath(this->configFileName);
|
||||||
const int fileNameLength = fullFile.length();
|
const int fileNameLength = fullFile.length();
|
||||||
char fileName[fileNameLength] = {};
|
char fileName[fileNameLength] = {};
|
||||||
getCharsFromString(fullFile, fileName, fileNameLength);
|
getCharsFromString(fullFile, fileName, fileNameLength);
|
||||||
|
|
||||||
@@ -89,8 +89,7 @@ bool LicenceGenerator::processInputConfiguration()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
cout << "file: " << fileName << "\n";
|
throw LicenceException((int)GeneralError::FileOpenError, "Unable to open the config file: " + fullFile + "\n");
|
||||||
throw LicenceException((int)GeneralError::FileOpenError, "Unable to open the config file.");
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
7
start.sh
Normal file
7
start.sh
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
chmod 777 output/licenceGenerator
|
||||||
|
|
||||||
|
#./output/licenceGenerator -uid=a3395d1b898b4fdbbd563f9c75b3e885 -outputType=file -configFileName=licData.xml
|
||||||
|
|
||||||
|
cd output
|
||||||
|
./licenceGenerator -uid=a3395d1b898b4fdbbd563f9c75b3e885 -outputType=file -configFileName=licData.xml
|
||||||
Reference in New Issue
Block a user