Startup arguments given for a server when it is started.
More...
#include <service_arguments.hpp>
|
| void | addArgument (const string &argument) |
| | Add one argument.
|
| |
| void | addArguments (const vector< string > &arguments) |
| | Add multiple arguments.
|
| |
| void | clear () |
| | Clears the argument vector contents.
|
| |
| size_t | countArguments () const |
| | Retrieve amount of arguments.
|
| |
| const string | getArgument (int index) const |
| | Retrieve argument at specific position.
|
| |
| const vector< string > & | getArguments () const |
| | Retrieve arguments.
|
| |
| | ServiceArguments () |
| | Construct the arguments class.
|
| |
| | ServiceArguments (const string argument) |
| | Construct the arguments class.
|
| |
| | ServiceArguments (const vector< string > &arguments) |
| | Construct the arguments class.
|
| |
Startup arguments given for a server when it is started.
◆ ServiceArguments() [1/3]
| kanzi::connect::ServiceArguments::ServiceArguments |
( |
| ) |
|
Construct the arguments class.
◆ ServiceArguments() [2/3]
| kanzi::connect::ServiceArguments::ServiceArguments |
( |
const string | argument | ) |
|
Construct the arguments class.
- Parameters
-
| argument | argument to initialize with. |
◆ ServiceArguments() [3/3]
| kanzi::connect::ServiceArguments::ServiceArguments |
( |
const vector< string > & | arguments | ) |
|
Construct the arguments class.
- Parameters
-
| arguments | arguments to initialize with. |
◆ addArgument()
| void kanzi::connect::ServiceArguments::addArgument |
( |
const string & | argument | ) |
|
Add one argument.
- Parameters
-
◆ addArguments()
| void kanzi::connect::ServiceArguments::addArguments |
( |
const vector< string > & | arguments | ) |
|
Add multiple arguments.
- Parameters
-
| arguments | vector of arguments |
◆ clear()
| void kanzi::connect::ServiceArguments::clear |
( |
| ) |
|
Clears the argument vector contents.
◆ countArguments()
| size_t kanzi::connect::ServiceArguments::countArguments |
( |
| ) |
const |
Retrieve amount of arguments.
- Returns
- amount of arguments.
◆ create() [1/3]
Factory function to create instance of service arguments.
- Returns
- newly allocated arguments object.
◆ create() [2/3]
Factory function to create instance of service arguments.
- Parameters
-
| argument | a string to initialize with |
- Returns
- newly allocated arguments object.
◆ create() [3/3]
Factory function to create instance of service arguments.
- Parameters
-
| arguments | list of strings used to initialize the arguments |
- Returns
- newly allocated arguments object.
◆ getArgument()
| const string kanzi::connect::ServiceArguments::getArgument |
( |
int | index | ) |
const |
Retrieve argument at specific position.
- Parameters
-
| index | the position of that argument |
- Returns
- value of the argument.
◆ getArguments()
| const vector< string > & kanzi::connect::ServiceArguments::getArguments |
( |
| ) |
const |
Retrieve arguments.
- Returns
- vector of arguments
The documentation for this class was generated from the following file:
- connect/service_arguments.hpp