refactor for better support with ch341 and other unreliable rs232 adapters
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// inputparser.h
|
||||
// @author iain
|
||||
#ifndef INPUTPARSER_H
|
||||
#define INPUTPARSER_H
|
||||
|
||||
#include <vector>
|
||||
|
||||
class InputParser {
|
||||
std::vector <std::string> tokens;
|
||||
|
||||
public:
|
||||
InputParser (int &argc, char **argv);
|
||||
const std::string& getCmdOption(const std::string &option) const;
|
||||
bool cmdOptionExists(const std::string &option) const;
|
||||
};
|
||||
|
||||
#endif // ___INPUTPARSER_H
|
||||
Reference in New Issue
Block a user