Non-strict method to get the value of a config key into the specified output value. If the config key does not exist, the given default value is returned.
Template can be instantiated with integer, float or string (istring) type.
Usage Example:
Config.parseFile("some-config.ini"); auto str = Config.get("some-cat", "some-key", "my_default_value"); int n = Config.get("some-cat", "some-int", 5);
category to get key from
key whose value is to be got
default value to use if missing in the config
config value, if existing, otherwise default value
See Implementation
Non-strict method to get the value of a config key into the specified output value. If the config key does not exist, the given default value is returned.
Template can be instantiated with integer, float or string (istring) type.
Usage Example: