44 lines
880 B
C++
44 lines
880 B
C++
#ifndef PLC_LICENCE31_H
|
|
#define PLC_LICENCE31_H
|
|
|
|
#include <stdint.h>
|
|
#include <iostream>
|
|
#include <vector>
|
|
#include "utils.h"
|
|
#include "licenceCommon.h"
|
|
#include "pugixml.hpp"
|
|
|
|
using namespace std;
|
|
|
|
class LicenceELC31
|
|
{
|
|
struct LicData
|
|
{
|
|
string station = "";
|
|
string distributor = "";
|
|
string licenceName = "";
|
|
string projectDescription = "";
|
|
string cid = ""; // CID z SD karty
|
|
string csd = ""; // CSD z SD karty
|
|
string uid = ""; // jedinečný identifikátor z jiného systému
|
|
pugi::xml_document *doc;
|
|
};
|
|
|
|
LicData lData;
|
|
bool processInputConfiguration();
|
|
LicenceIdentification lIdentification;
|
|
|
|
|
|
public:
|
|
LicenceELC31();
|
|
~LicenceELC31();
|
|
LicenceELC31(LicData & licData);
|
|
LicenceELC31(LicenceIdentification & licIdentification);
|
|
void createLicence();
|
|
void readLicence();
|
|
int getDataPointsCount(int protocolId);
|
|
};
|
|
|
|
#endif
|
|
|