Compiled hazelnupp
This commit is contained in:
parent
c58237b028
commit
5fe12e07fd
@ -59,10 +59,6 @@ namespace Hazelnp
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** ../Hazelnupp/Version.h ***/
|
|
||||||
|
|
||||||
#define HAZELNUPP_VERSION (1.12)
|
|
||||||
|
|
||||||
/*** ../Hazelnupp/DataType.h ***/
|
/*** ../Hazelnupp/DataType.h ***/
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -300,7 +296,7 @@ namespace Hazelnp
|
|||||||
//! Daisychain-method. Will add a the "incompatiblity" aspect.
|
//! Daisychain-method. Will add a the "incompatiblity" aspect.
|
||||||
//! This means, that the following parameters are NOT compatible with this one and will throw an error if passed together.
|
//! This means, that the following parameters are NOT compatible with this one and will throw an error if passed together.
|
||||||
//! Syntactical-sugar proxy method that will convert the lonely string to an initializer list for you :3
|
//! Syntactical-sugar proxy method that will convert the lonely string to an initializer list for you :3
|
||||||
ParamConstraint AddIncompatibility(const std::string& incompatibleParameters)
|
ParamConstraint AddIncompatibilities(const std::string& incompatibleParameters)
|
||||||
{
|
{
|
||||||
ParamConstraint pc = *this;
|
ParamConstraint pc = *this;
|
||||||
pc.incompatibleParameters = { incompatibleParameters };
|
pc.incompatibleParameters = { incompatibleParameters };
|
||||||
@ -308,6 +304,16 @@ namespace Hazelnp
|
|||||||
return pc;
|
return pc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//! Daisychain-method. Will add a the "incompatiblity" aspect.
|
||||||
|
//! This means, that the following parameters are NOT compatible with this one and will throw an error if passed together.
|
||||||
|
ParamConstraint AddIncompatibilities(const std::initializer_list<std::string>& incompatibleParameters)
|
||||||
|
{
|
||||||
|
ParamConstraint pc = *this;
|
||||||
|
pc.incompatibleParameters = incompatibleParameters;
|
||||||
|
|
||||||
|
return pc;
|
||||||
|
}
|
||||||
|
|
||||||
//! Whole constructor
|
//! Whole constructor
|
||||||
ParamConstraint(bool constrainType, DATA_TYPE requiredType, const std::initializer_list<std::string>& defaultValue, bool required, const std::initializer_list<std::string>& incompatibleParameters)
|
ParamConstraint(bool constrainType, DATA_TYPE requiredType, const std::initializer_list<std::string>& defaultValue, bool required, const std::initializer_list<std::string>& incompatibleParameters)
|
||||||
:
|
:
|
||||||
@ -348,6 +354,10 @@ namespace Hazelnp
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*** ../Hazelnupp/Version.h ***/
|
||||||
|
|
||||||
|
#define HAZELNUPP_VERSION (1.121)
|
||||||
|
|
||||||
/*** ../Hazelnupp/Value.h ***/
|
/*** ../Hazelnupp/Value.h ***/
|
||||||
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
@ -399,19 +409,19 @@ namespace Hazelnp
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** ../Hazelnupp/StringValue.h ***/
|
/*** ../Hazelnupp/ListValue.h ***/
|
||||||
|
|
||||||
#include <string>
|
#include <vector>
|
||||||
|
|
||||||
namespace Hazelnp
|
namespace Hazelnp
|
||||||
{
|
{
|
||||||
/** Specializations for string values (uses std::string)
|
/** Specializations for list values (uses std::vector<Value*>)
|
||||||
*/
|
*/
|
||||||
class StringValue : public Value
|
class ListValue : public Value
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
StringValue(const std::string& value);
|
ListValue();
|
||||||
~StringValue() override {};
|
~ListValue() override;
|
||||||
|
|
||||||
//! Will return a deeopopy of this object
|
//! Will return a deeopopy of this object
|
||||||
Value* Deepcopy() const override;
|
Value* Deepcopy() const override;
|
||||||
@ -419,10 +429,13 @@ namespace Hazelnp
|
|||||||
//! Will return a string suitable for an std::ostream;
|
//! Will return a string suitable for an std::ostream;
|
||||||
std::string GetAsOsString() const override;
|
std::string GetAsOsString() const override;
|
||||||
|
|
||||||
//! Will return the raw value
|
//! Will add this value to the list
|
||||||
const std::string& GetValue() const;
|
void AddValue(const Value* value);
|
||||||
|
|
||||||
operator std::string() const;
|
//! Will return the raw value
|
||||||
|
const std::vector<Value*>& GetValue() const;
|
||||||
|
|
||||||
|
operator std::vector<Value*>() const;
|
||||||
|
|
||||||
//! Throws HazelnuppValueNotConvertibleException
|
//! Throws HazelnuppValueNotConvertibleException
|
||||||
long long int GetInt64() const override;
|
long long int GetInt64() const override;
|
||||||
@ -434,14 +447,14 @@ namespace Hazelnp
|
|||||||
//! Throws HazelnuppValueNotConvertibleException
|
//! Throws HazelnuppValueNotConvertibleException
|
||||||
double GetFloat32() const override;
|
double GetFloat32() const override;
|
||||||
|
|
||||||
//! Will return this value as a string
|
//! Throws HazelnuppValueNotConvertibleException
|
||||||
std::string GetString() const override;
|
std::string GetString() const override;
|
||||||
|
|
||||||
//! Throws HazelnuppValueNotConvertibleException
|
//! Will return this values list
|
||||||
const std::vector<Value*>& GetList() const override;
|
const std::vector<Value*>& GetList() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string value;
|
std::vector<Value*> value;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -492,92 +505,6 @@ namespace Hazelnp
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** ../Hazelnupp/ListValue.h ***/
|
|
||||||
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
namespace Hazelnp
|
|
||||||
{
|
|
||||||
/** Specializations for list values (uses std::vector<Value*>)
|
|
||||||
*/
|
|
||||||
class ListValue : public Value
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
ListValue();
|
|
||||||
~ListValue() override;
|
|
||||||
|
|
||||||
//! Will return a deeopopy of this object
|
|
||||||
Value* Deepcopy() const override;
|
|
||||||
|
|
||||||
//! Will return a string suitable for an std::ostream;
|
|
||||||
std::string GetAsOsString() const override;
|
|
||||||
|
|
||||||
//! Will add this value to the list
|
|
||||||
void AddValue(const Value* value);
|
|
||||||
|
|
||||||
//! Will return the raw value
|
|
||||||
const std::vector<Value*>& GetValue() const;
|
|
||||||
|
|
||||||
operator std::vector<Value*>() const;
|
|
||||||
|
|
||||||
//! Throws HazelnuppValueNotConvertibleException
|
|
||||||
long long int GetInt64() const override;
|
|
||||||
//! Throws HazelnuppValueNotConvertibleException
|
|
||||||
int GetInt32() const override;
|
|
||||||
|
|
||||||
//! Throws HazelnuppValueNotConvertibleException
|
|
||||||
long double GetFloat64() const override;
|
|
||||||
//! Throws HazelnuppValueNotConvertibleException
|
|
||||||
double GetFloat32() const override;
|
|
||||||
|
|
||||||
//! Throws HazelnuppValueNotConvertibleException
|
|
||||||
std::string GetString() const override;
|
|
||||||
|
|
||||||
//! Will return this values list
|
|
||||||
const std::vector<Value*>& GetList() const override;
|
|
||||||
|
|
||||||
private:
|
|
||||||
std::vector<Value*> value;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
/*** ../Hazelnupp/VoidValue.h ***/
|
|
||||||
|
|
||||||
|
|
||||||
namespace Hazelnp
|
|
||||||
{
|
|
||||||
/** Specializations for void values. These house no value whatsoever, but only communicate information by merely existing.
|
|
||||||
*/
|
|
||||||
class VoidValue : public Value
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
VoidValue();
|
|
||||||
~VoidValue() override {};
|
|
||||||
|
|
||||||
//! Will return a deeopopy of this object
|
|
||||||
Value* Deepcopy() const override;
|
|
||||||
|
|
||||||
//! Will return a string suitable for an std::ostream;
|
|
||||||
std::string GetAsOsString() const override;
|
|
||||||
|
|
||||||
//! Throws HazelnuppValueNotConvertibleException
|
|
||||||
long long int GetInt64() const override;
|
|
||||||
//! Throws HazelnuppValueNotConvertibleException
|
|
||||||
int GetInt32() const override;
|
|
||||||
|
|
||||||
//! Throws HazelnuppValueNotConvertibleException
|
|
||||||
long double GetFloat64() const override;
|
|
||||||
//! Throws HazelnuppValueNotConvertibleException
|
|
||||||
double GetFloat32() const override;
|
|
||||||
|
|
||||||
//! Returns an empty string
|
|
||||||
std::string GetString() const override;
|
|
||||||
|
|
||||||
//! Returns an empty list
|
|
||||||
const std::vector<Value*>& GetList() const;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
/*** ../Hazelnupp/IntValue.h ***/
|
/*** ../Hazelnupp/IntValue.h ***/
|
||||||
|
|
||||||
|
|
||||||
@ -625,6 +552,89 @@ namespace Hazelnp
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*** ../Hazelnupp/VoidValue.h ***/
|
||||||
|
|
||||||
|
|
||||||
|
namespace Hazelnp
|
||||||
|
{
|
||||||
|
/** Specializations for void values. These house no value whatsoever, but only communicate information by merely existing.
|
||||||
|
*/
|
||||||
|
class VoidValue : public Value
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
VoidValue();
|
||||||
|
~VoidValue() override {};
|
||||||
|
|
||||||
|
//! Will return a deeopopy of this object
|
||||||
|
Value* Deepcopy() const override;
|
||||||
|
|
||||||
|
//! Will return a string suitable for an std::ostream;
|
||||||
|
std::string GetAsOsString() const override;
|
||||||
|
|
||||||
|
//! Throws HazelnuppValueNotConvertibleException
|
||||||
|
long long int GetInt64() const override;
|
||||||
|
//! Throws HazelnuppValueNotConvertibleException
|
||||||
|
int GetInt32() const override;
|
||||||
|
|
||||||
|
//! Throws HazelnuppValueNotConvertibleException
|
||||||
|
long double GetFloat64() const override;
|
||||||
|
//! Throws HazelnuppValueNotConvertibleException
|
||||||
|
double GetFloat32() const override;
|
||||||
|
|
||||||
|
//! Returns an empty string
|
||||||
|
std::string GetString() const override;
|
||||||
|
|
||||||
|
//! Returns an empty list
|
||||||
|
const std::vector<Value*>& GetList() const;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
/*** ../Hazelnupp/StringValue.h ***/
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
namespace Hazelnp
|
||||||
|
{
|
||||||
|
/** Specializations for string values (uses std::string)
|
||||||
|
*/
|
||||||
|
class StringValue : public Value
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
StringValue(const std::string& value);
|
||||||
|
~StringValue() override {};
|
||||||
|
|
||||||
|
//! Will return a deeopopy of this object
|
||||||
|
Value* Deepcopy() const override;
|
||||||
|
|
||||||
|
//! Will return a string suitable for an std::ostream;
|
||||||
|
std::string GetAsOsString() const override;
|
||||||
|
|
||||||
|
//! Will return the raw value
|
||||||
|
const std::string& GetValue() const;
|
||||||
|
|
||||||
|
operator std::string() const;
|
||||||
|
|
||||||
|
//! Throws HazelnuppValueNotConvertibleException
|
||||||
|
long long int GetInt64() const override;
|
||||||
|
//! Throws HazelnuppValueNotConvertibleException
|
||||||
|
int GetInt32() const override;
|
||||||
|
|
||||||
|
//! Throws HazelnuppValueNotConvertibleException
|
||||||
|
long double GetFloat64() const override;
|
||||||
|
//! Throws HazelnuppValueNotConvertibleException
|
||||||
|
double GetFloat32() const override;
|
||||||
|
|
||||||
|
//! Will return this value as a string
|
||||||
|
std::string GetString() const override;
|
||||||
|
|
||||||
|
//! Throws HazelnuppValueNotConvertibleException
|
||||||
|
const std::vector<Value*>& GetList() const override;
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string value;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
/*** ../Hazelnupp/Parameter.h ***/
|
/*** ../Hazelnupp/Parameter.h ***/
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user