9 #ifndef INCLUDE_FUNAPI_FRAMEWORK_ARGUMENT_MAP_H_ 10 #define INCLUDE_FUNAPI_FRAMEWORK_ARGUMENT_MAP_H_ 29 typedef std::map<string, OverrideHistory>
Container;
33 static bool IsValidArgumentType(
const Json::Type &value_type);
42 bool AddArgument(
const string &key,
const Json &value);
52 bool OverrideArgument(
const string &key,
const Json &value);
58 const Json &FindArgument(
const string &key)
const;
64 const OverrideHistory &FindArgumentOverrideHistory(
const string &key)
const;
70 string FindStringArgument(
const string &key)
const;
76 int64_t FindIntegerArgument(
const string &key)
const;
82 double FindDoubleArgument(
const string &key)
const;
88 bool FindBooleanArgument(
const string &key)
const;
94 const Json &FindArrayArgument(
const string &key)
const;
101 const Json &FindObjectArgument(
const string &key)
const;
106 const Container &GetArgumentsAll()
const;
109 Container arguments_;
114 #endif // INCLUDE_FUNAPI_FRAMEWORK_ARGUMENT_MAP_H_ std::vector< Json > OverrideHistory
Internal implementation of argument's override history.
Definition: argument_map.h:26
ArgumentMap class manages application-specific run-time arguments.
Definition: argument_map.h:23
std::map< string, OverrideHistory > Container
Internal implementation of ArgumentMap class.
Definition: argument_map.h:29