25 lines
551 B
C++
25 lines
551 B
C++
#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;
|
|
}; |