Major release

This commit is contained in:
2022-11-12 19:02:52 +01:00
parent cca140f6d7
commit b09dfcb7be
18 changed files with 985 additions and 0 deletions

25
src/cmdLineArgs.hpp Normal file
View File

@@ -0,0 +1,25 @@
#pragma once
#include <string>
#include <vector>
#include "debug.hpp"
class cmdLineArgs_c
{
public:
cmdLineArgs_c(int argc, char *argv[]);
std::string get_option(
const std::string &option_name);
bool has_option(
const std::string &option_name);
void setUsage(std::string usage);
std::string getUsage();
bool available(
const std::string &option_name, const std::string usage);
bool available(
const std::string &option_name);
private:
std::vector<std::string> args;
std::string usage;
};