moved CmdLineParser to sls::

This commit is contained in:
Erik Frojdh 2019-08-23 10:42:35 +02:00
parent 6a20a780fe
commit 57ac5c0dab
4 changed files with 19 additions and 11 deletions

View File

@ -15,7 +15,7 @@ class multiSlsDetectorClient {
private:
int action_;
CmdLineParser parser;
sls::CmdLineParser parser;
multiSlsDetector *detPtr = nullptr;
std::ostream &os;

View File

@ -4,6 +4,8 @@
#include <string>
#include <vector>
namespace sls {
class CmdLineParser {
public:
void Parse(int argc, const char *const argv[]);
@ -30,4 +32,5 @@ class CmdLineParser {
std::vector<std::string> arguments_;
};
} // namespace sls
#endif // CMD_LINE_PARSER_H

View File

@ -7,6 +7,8 @@
#include <iterator>
#include <sstream>
namespace sls {
void CmdLineParser::Print() {
std::cout << "\nCmdLineParser::Print()\n";
std::cout << "\tmulti_id: " << multi_id_
@ -97,3 +99,5 @@ std::vector<const char *> CmdLineParser::argv() const {
}
return vec;
}
} // namespace sls

View File

@ -9,6 +9,7 @@
// command for all depreciated commands
using vs = std::vector<std::string>;
using sls::CmdLineParser;
SCENARIO("Construction", "[support]") {
GIVEN("A default constructed CmdLineParser") {