BAOS SDK v2  1.2.1
An SDK providing access to IP-BAOS devices through BAOS binary protocol version 2.x
Loading...
Searching...
No Matches
CommandLineOptions Class Referencefinal

#include </var/jenkins_workspace/8300_500_BAOS_SDK_v2/BAOS_SDK_v2.nightly/release/workspace/release_src/BAOS_SDK/samples/Helper.h>

Public Member Functions

void setDurationOptionSupported (bool supported)
 
void setSecureSampleOptionSupported (bool supported)
 
void parse (int argc, char **argv)
 Parse the command line options.
 
void parse (const std::vector< std::string > &arguments)
 
bool wasHelpdisplayed () const
 returns true if the help show be displayed
 
const std::string & getIpAddress () const
 Get the ip address parse from command line.
 
const std::string & getPassword () const
 Get the password parse from command line.
 
unsigned int getDurationSeconds () const
 
bool isInteractive () const
 
void showUsage ()
 Display the how to use message.
 

Public Attributes

bool durationOptionSupported_ = false
 
bool secureSampleOptionSupported_ = false
 
std::string applicationName_
 contains the application name as given as first parameter from command line
 
bool wasHelpdisplayed_ = false
 Indicate that the help meesage was displayed and we should not continue.
 
std::string ipAddress_
 The ip v4 address as string in the form xxx.xxx.xxx.xxx.
 
std::string password_
 Password for secure samples (second positional argument)
 
unsigned int durationSeconds_ = 0
 

Detailed Description


The documentation for this class was generated from the following files: