29 void setDurationOptionSupported(
bool supported);
30 void setSecureSampleOptionSupported(
bool supported);
32 void parse(
int argc,
char** argv);
33 void parse(
const std::vector<std::string>& arguments);
41 unsigned int getDurationSeconds()
const;
42 bool isInteractive()
const;
47 bool durationOptionSupported_ =
false;
48 bool secureSampleOptionSupported_ =
false;
58 unsigned int durationSeconds_ = 0;
bool wasHelpdisplayed_
Indicate that the help meesage was displayed and we should not continue.
Definition: Helper.h:51
std::string applicationName_
contains the application name as given as first parameter from command line
Definition: Helper.h:50
const std::string & getPassword() const
Get the password parse from command line.
Definition: Helper.cpp:224
std::string ipAddress_
The ip v4 address as string in the form xxx.xxx.xxx.xxx.
Definition: Helper.h:52
void showUsage()
Display the how to use message.
Definition: Helper.cpp:239
void parse(int argc, char **argv)
Parse the command line options.
bool wasHelpdisplayed() const
returns true if the help show be displayed
Definition: Helper.cpp:214
const std::string & getIpAddress() const
Get the ip address parse from command line.
Definition: Helper.cpp:219
std::string password_
Password for secure samples (second positional argument)
Definition: Helper.h:53