| | |
| | | * LicenseSigner.h |
| | | * |
| | | * Created on: Apr 6, 2014 |
| | | * |
| | | * |
| | | */ |
| | | |
| | | #ifndef LICENSE_GENERATOR_H_ |
| | | #define LICENSE_GENERATOR_H_ |
| | | |
| | | #include <boost/program_options.hpp> |
| | | |
| | | #include "../../library/LicenseReader.hpp" |
| | | |
| | | namespace license { |
| | |
| | | class LicenseGenerator { |
| | | private: |
| | | LicenseGenerator(); |
| | | |
| | | static void printHelp(const char* prog_name, const po::options_description& options); |
| | | static po::options_description configureProgramOptions(); |
| | | static vector<FullLicenseInfo> parseLicenseInfo(const po::variables_map& vm); |
| | | static std::vector<FullLicenseInfo> parseLicenseInfo(const po::variables_map& vm); |
| | | static void generateAndOutputLicenses(const po::variables_map& vm, |
| | | ostream& outputFile); |
| | | static string normalize_date(const std::string& s); |
| | | std::ostream& outputFile); |
| | | static void generateB64Licenses(const po::variables_map& vm, |
| | | std::ostream& outputFile); |
| | | static std::string normalize_date(const std::string& s); |
| | | public: |
| | | /** |
| | | * Available options: |