anyKode Marilou
|
Getting an argument's value (INT type value).
static int GetArgumentValueINT(const xkode::lib::String & Argument, int DefaultValue = 0);
Parameters |
Description |
const xkode::lib::String & Argument |
[in] Argument name |
int DefaultValue = 0 |
[in] Default value to be returned if Argument or its value does not exist. |
If argument exits and its value is not empty, the return value is a string that contains the value.
In other cases, the return value is the DefaultValue parameter.
GetArgumentValue retrieve the argument string value, if the argument exists, the default value otherwise.
Commandline = "/port:1234"
GetArgumentValue("/port" , 10 ) will return 1234.
GetArgumentValue("/xxxx" , 10 ) will return 10.
Documentation v4.7 (18/01/2015), Copyright (c) 2015 anyKode. All rights reserved.
|
What do you think about this topic? Send feedback!
|