Added constructor to ParamConstraint
This commit is contained in:
parent
c0cb795cee
commit
f2b90f0caa
BIN
Hazelnupp.vpp
BIN
Hazelnupp.vpp
Binary file not shown.
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user