diff --git a/Hazelnupp.vpp b/Hazelnupp.vpp index c1c3bc5..80f2841 100644 Binary files a/Hazelnupp.vpp and b/Hazelnupp.vpp differ diff --git a/Hazelnupp/ParamConstraint.h b/Hazelnupp/ParamConstraint.h index bde0c13..deeacf9 100644 --- a/Hazelnupp/ParamConstraint.h +++ b/Hazelnupp/ParamConstraint.h @@ -6,7 +6,10 @@ struct ParamConstraint { public: + //! Empty constructor ParamConstraint() = default; + + //! Whole constructor ParamConstraint(const std::string& key, bool constrainType, DATA_TYPE wantedType, const std::vector& defaultValue, bool required) : key { key }, @@ -18,6 +21,26 @@ public: return; } + //! Type-Constraint constructor + ParamConstraint(const std::string& key, bool constrainType, DATA_TYPE wantedType) + : + key{ key }, + constrainType{ constrainType }, + wantedType{ wantedType } + { + return; + } + + //! Require-Constraint constructor + ParamConstraint(const std::string& key, const std::vector& defaultValue, bool required = false) + : + key{ key }, + defaultValue{ defaultValue }, + required{ required } + { + return; + } + //! The key of the parameter to constrain std::string key;