aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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);