cmdopts: Add --interceptor, --extrospector, --actuator and --devicefile
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#ifndef OPTS_H
|
||||
#define OPTS_H
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <getopt.h>
|
||||
|
||||
// Define a class to hold the options and parse arguments
|
||||
class OptionParser
|
||||
{
|
||||
public:
|
||||
OptionParser() : verbose(false) {}
|
||||
~OptionParser() = default;
|
||||
|
||||
void parseArguments(int argc, char *argv[]);
|
||||
void dumpOptions() const;
|
||||
std::string getUsage() const;
|
||||
|
||||
private:
|
||||
std::vector<std::string> extro;
|
||||
std::vector<std::string> intero;
|
||||
std::vector<std::string> actuator;
|
||||
std::string devFile;
|
||||
bool verbose;
|
||||
|
||||
static struct option longOptions[];
|
||||
};
|
||||
|
||||
#endif // OPTS_H
|
||||
Reference in New Issue
Block a user