Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CLicense.hpp
Go to the documentation of this file.
1#ifndef LIBS_TOOLS_CLICENSE_HPP_
2#define LIBS_TOOLS_CLICENSE_HPP_
3
5
6#include <bits/types/FILE.h>
7#include <memory>
8#include <string>
9
10class AbstractLog;
11
13{
14public:
15 static bool checkLicense(const std::string &reference, const std::shared_ptr<iv::logs::StartingLog> &logger);
16 [[maybe_unused]] static void generateLicense();
17 static void generateLicenseFromDataFile(const std::string &path);
18 static void generateDataLicense(const std::string &projectReference);
19
20 static std::string getSystemUniqueId(const std::string &reference);
21
22private:
23 [[maybe_unused]] static FILE *prvOpenFileLicense(const char *opentype);
24};
25
26#endif /* LIBS_TOOLS_CLICENSE_HPP_ */
Definition AbstractLog.hpp:9
Definition CLicense.hpp:13
static void generateLicense()
Definition CLicense.cpp:213
static void generateDataLicense(const std::string &projectReference)
Definition CLicense.cpp:329
static FILE * prvOpenFileLicense(const char *opentype)
Definition CLicense.cpp:386
static void generateLicenseFromDataFile(const std::string &path)
Definition CLicense.cpp:237
static bool checkLicense(const std::string &reference, const std::shared_ptr< iv::logs::StartingLog > &logger)
Definition CLicense.cpp:149
static std::string getSystemUniqueId(const std::string &reference)
Definition CLicense.cpp:401