aboutsummaryrefslogtreecommitdiff
path: root/include/Conf.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-01-06 09:38:59 +0100
committerdec05eba <dec05eba@protonmail.com>2018-01-06 09:41:18 +0100
commitad3b5099263e5977d1de9bfcff715a92009e8355 (patch)
treefd49aca56de6253efc4c2720423a65142bc4c150 /include/Conf.hpp
parentea17671d7fe9ece8a33bdbc2f1d7bdf68bbccb69 (diff)
Add define.static, define.dynamic
Diffstat (limited to 'include/Conf.hpp')
-rw-r--r--include/Conf.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/Conf.hpp b/include/Conf.hpp
index c661ca4..950b25a 100644
--- a/include/Conf.hpp
+++ b/include/Conf.hpp
@@ -331,11 +331,16 @@ namespace sibs
virtual bool isDefined(const std::string &name) const;
virtual bool define(const std::string &name, const std::string &value);
virtual const std::unordered_map<std::string, std::string>& getDefines() const;
+
+ // Get define value by name.
+ // Return empty string if the value is empty or if the defined value doesn't exist
+ const std::string& getDefinedValue(const std::string &name) const;
protected:
virtual void processObject(StringView name) override;
virtual void processField(StringView name, const ConfigValue &value) override;
virtual void finished() override;
void failInvalidFieldUnderObject(const StringView &fieldName) const;
+ void validatePackageTypeDefined() const;
private:
void parsePlatformConfigs(const StringView &fieldName, const ConfigValue &fieldValue);
void parsePlatformConfig(const StringView &fieldName, const ConfigValue &fieldValue);