Move cmdLineArgs lib to external
This commit is contained in:
25
external/cmdLineArgs/cmdLineArgs.hpp
vendored
Normal file
25
external/cmdLineArgs/cmdLineArgs.hpp
vendored
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user