Cleanup of test suite init.

This commit is contained in:
chriseth
2016-08-12 15:11:30 +02:00
parent 0d894a6832
commit 1bc0320811
4 changed files with 33 additions and 92 deletions
+9 -13
View File
@@ -103,19 +103,15 @@ namespace test
while (0)
class Options
{
public:
std::string ipcPath;
int tArgc;
char **tArgv;
/// Get reference to options
/// The first time used, options are parsed with argc, argv
static Options const& get(int argc = 0, char** argv = 0);
struct Options: boost::noncopyable
{
std::string ipcPath;
Options const& get();
private:
Options();
};
private:
Options(int argc, char** argv = 0);
Options(Options const&) = delete;
};
}
}