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.
- Return
amount of arguments.
-
const string
getArgument
(int index) const¶ Retrieve argument at specific position.
- Return
value of the argument.
- Parameters
index
: the position of that argument
-
const vector<string> &
getArguments
() const¶ Retrieve arguments.
- Return
vector of arguments
Public Static Functions
-
ServiceArgumentsSharedPtr
create
()¶ Factory function to create instance of service arguments.
- Return
newly allocated arguments object.
-
ServiceArgumentsSharedPtr
create
(const string argument)¶ Factory function to create instance of service arguments.
- Return
newly allocated arguments object.
- Parameters
argument
: a string to initialize with
-
ServiceArgumentsSharedPtr
create
(const vector<string> &arguments)¶ Factory function to create instance of service arguments.
- Return
newly allocated arguments object.
- Parameters
arguments
: list of strings used to initialize the arguments
-