mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-17 07:17:13 +02:00
cleaning up tests for command line parser
This commit is contained in:
@ -5,22 +5,22 @@
|
||||
#include <vector>
|
||||
|
||||
class CmdLineParser {
|
||||
public:
|
||||
void Parse(int argc, char* argv[]);
|
||||
void Parse(std::string s);
|
||||
public:
|
||||
void Parse(int argc, char *argv[]);
|
||||
void Parse(const std::string &s);
|
||||
void Print();
|
||||
|
||||
//getters
|
||||
int multi_id() const { return multi_id_; };
|
||||
int detector_id() const { return detector_id_; };
|
||||
int n_arguments() const {return arguments_.size();}
|
||||
const std::string& command() const { return command_; }
|
||||
const std::string& executable() const { return executable_;}
|
||||
const std::vector<std::string>& arguments() const{ return arguments_; };
|
||||
std::vector<char*> argv();
|
||||
int n_arguments() const { return arguments_.size(); }
|
||||
const std::string &command() const { return command_; }
|
||||
const std::string &executable() const { return executable_; }
|
||||
const std::vector<std::string> &arguments() const { return arguments_; };
|
||||
std::vector<char *> argv();
|
||||
|
||||
private:
|
||||
void DecodeIdAndPosition(const char* c);
|
||||
private:
|
||||
void DecodeIdAndPosition(const char *c);
|
||||
int multi_id_ = 0;
|
||||
int detector_id_ = -1;
|
||||
std::string command_;
|
||||
|
Reference in New Issue
Block a user