ArgumentMap class manages application-specific run-time arguments. More...
#include <argument_map.h>
Public Types | |
| typedef std::map< string, OverrideHistory > | Container |
| Internal implementation of ArgumentMap class. | |
| typedef std::vector< Json > | OverrideHistory |
| Internal implementation of argument's override history. | |
Public Member Functions | |
| bool | AddArgument (const string &key, const Json &value) |
| Adds an argument. More... | |
| const Json & | FindArgument (const string &key) const |
| Retrieves an argument value in json type for the given argument key. More... | |
| const OverrideHistory & | FindArgumentOverrideHistory (const string &key) const |
| Retrieves an argument override history for the given argument key. More... | |
| const Json & | FindArrayArgument (const string &key) const |
| Retrieves an argument value in json array type for the given argument key. More... | |
| bool | FindBooleanArgument (const string &key) const |
| Retrieves an argument value in boolean type for the given argument key. More... | |
| double | FindDoubleArgument (const string &key) const |
| Retrieves an argument value in double type for the given argument key. More... | |
| int64_t | FindIntegerArgument (const string &key) const |
| Retrieves an argument value in integer type for the given argument key. More... | |
| const Json & | FindObjectArgument (const string &key) const |
| Retrieves an argument value in json object type for the given argument key. More... | |
| string | FindStringArgument (const string &key) const |
| Retrieves an argument value in string type for the given argument key. More... | |
| const Container & | GetArgumentsAll () const |
| Retrieves whole argument map. More... | |
| bool | OverrideArgument (const string &key, const Json &value) |
| Overrides argument with the given value if the argument exists, inserts argument otherwise. More... | |
Static Public Member Functions | |
| static bool | IsValidArgumentType (const Json::Type &value_type) |
Argument is composed of a string key and a string value.
| key | name of the target argument. |
| value | value of the target argument in json format. the value type should be one of string, integer or boolean type. |
| key | key of the argument to retrieve. |
| const OverrideHistory& fun::ArgumentMap::FindArgumentOverrideHistory | ( | const string & | key | ) | const |
| key | key of the argument to retrieve. |
| key | key of the argument to retrieve. |
| bool fun::ArgumentMap::FindBooleanArgument | ( | const string & | key | ) | const |
| key | key of the argument to retrieve. |
| double fun::ArgumentMap::FindDoubleArgument | ( | const string & | key | ) | const |
| key | key of the argument to retrieve. |
| int64_t fun::ArgumentMap::FindIntegerArgument | ( | const string & | key | ) | const |
| key | key of the argument to retrieve. |
| key | key of the argument to retrieve. |
| key | key of the argument to retrieve. |
| const Container& fun::ArgumentMap::GetArgumentsAll | ( | ) | const |
|
static |
| key | name of the target argument. |
| value | value of the target argument in json format. the value type should be one of string, integer or boolean type. |