mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-16 06:47:14 +02:00
WIP
This commit is contained in:
@ -27,6 +27,7 @@ class CmdParser {
|
||||
|
||||
int multi_id() const noexcept { return multi_id_; };
|
||||
int detector_id() const noexcept { return detector_id_; };
|
||||
int receiver_id() const noexcept { return receiver_id_; };
|
||||
int n_arguments() const noexcept { return arguments_.size(); }
|
||||
const std::string &command() const noexcept { return command_; }
|
||||
void setCommand(std::string cmd) { command_ = cmd; }
|
||||
@ -40,10 +41,11 @@ class CmdParser {
|
||||
std::string cli_line() const;
|
||||
|
||||
private:
|
||||
void DecodeIdAndPosition(const char *c);
|
||||
void DecodeIdAndPosition(std::string pre);
|
||||
void Reset(); // reset all private variables
|
||||
int multi_id_ = 0;
|
||||
int detector_id_ = -1;
|
||||
int receiver_id_ = -1;
|
||||
bool help_ = false;
|
||||
std::string command_;
|
||||
std::string executable_;
|
||||
|
Reference in New Issue
Block a user