anyKode Marilou
ContentsIndexHome
PreviousUpNext
CommandLine::GetArgumentValue (const xkode::lib::String &)

Getting an argument's value (String type value).

C++
static xkode::lib::String GetArgumentValue(const xkode::lib::String & Argument);
Parameters 
Description 
const xkode::lib::String & Argument 
[in] Argument name 

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 an empty string.

GetArgumentValue retrieve the argument string value, if the argument exists.

Commandline = "/robot:myrobotname" 

GetArgumentValue("/robot") will return "myrobotname".

Documentation v4.7 (18/01/2015), Copyright (c) 2015 anyKode. All rights reserved.
What do you think about this topic? Send feedback!