ServiceArguments¶
-
class
kanzi::connect
::
ServiceArguments
¶ Startup arguments given for a server when it is started.
Public Functions
-
ServiceArguments
()¶ Construct the arguments class.
-
ServiceArguments
(const string argument)¶ Construct the arguments class.
- Parameters
argument – argument to initialize with.
-
ServiceArguments
(const vector<string> &arguments)¶ Construct the arguments class.
- Parameters
arguments – arguments to initialize with.
-
void
addArgument
(const string &argument)¶ Add one argument.
- Parameters
argument – the argument
-
void
addArguments
(const vector<string> &arguments)¶ Add multiple arguments.
- Parameters
arguments – vector of arguments
-
void
clear
()¶ Clears the argument vector contents.
-
size_t
countArguments
() const¶ Retrieve amount of arguments.
- Returns
amount of arguments.
-
const string
getArgument
(int index) const¶ Retrieve argument at specific position.
- Parameters
index – the position of that argument
- Returns
value of the argument.
-
const vector<string> &
getArguments
() const¶ Retrieve arguments.
- Returns
vector of arguments
Public Static Functions
-
static ServiceArgumentsSharedPtr
create
()¶ Factory function to create instance of service arguments.
- Returns
newly allocated arguments object.
-
static ServiceArgumentsSharedPtr
create
(const string argument)¶ Factory function to create instance of service arguments.
- Parameters
argument – a string to initialize with
- Returns
newly allocated arguments object.
-
static ServiceArgumentsSharedPtr
create
(const vector<string> &arguments)¶ Factory function to create instance of service arguments.
- Parameters
arguments – list of strings used to initialize the arguments
- Returns
newly allocated arguments object.
-