From ad3b5099263e5977d1de9bfcff715a92009e8355 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 6 Jan 2018 09:38:59 +0100 Subject: Add define.static, define.dynamic --- include/Conf.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') 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& 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); -- cgit v1.2.3