Added constructor to ParamConstraint

This commit is contained in:
Leonetienne 2021-06-02 21:12:53 +02:00
parent c0cb795cee
commit f2b90f0caa
2 changed files with 12 additions and 0 deletions

Binary file not shown.

View File

@ -6,6 +6,18 @@
struct ParamConstraint struct ParamConstraint
{ {
public: public:
ParamConstraint() = default;
ParamConstraint(const std::string& key, bool constrainType, DATA_TYPE wantedType, const std::vector<std::string>& defaultValue, bool required)
:
key { key },
constrainType { constrainType },
wantedType { wantedType },
defaultValue { defaultValue },
required{ required }
{
return;
}
//! The key of the parameter to constrain //! The key of the parameter to constrain
std::string key; std::string key;