2023-02-14 02:55:44 +00:00
|
|
|
#ifndef __BLOCKDEFINITION__H__
|
|
|
|
#define __BLOCKDEFINITION__H__
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class AMFArrayValue;
|
|
|
|
|
|
|
|
class BlockDefinition {
|
|
|
|
public:
|
2024-11-19 02:45:24 +00:00
|
|
|
BlockDefinition(const std::string_view defaultValue = "", const float minimumValue = 0.0f, const float maximumValue = 0.0f);
|
2023-02-14 02:55:44 +00:00
|
|
|
static BlockDefinition blockDefinitionDefault;
|
|
|
|
|
2024-11-19 02:45:24 +00:00
|
|
|
[[nodiscard]] std::string_view GetDefaultValue() const { return m_DefaultValue; }
|
2024-02-18 06:38:26 +00:00
|
|
|
[[nodiscard]] float GetMinimumValue() const noexcept { return m_MinimumValue; }
|
|
|
|
[[nodiscard]] float GetMaximumValue() const noexcept { return m_MaximumValue; }
|
2024-11-19 02:45:24 +00:00
|
|
|
void SetDefaultValue(const std::string_view value) { m_DefaultValue = std::string{ value }; }
|
2024-02-18 06:38:26 +00:00
|
|
|
void SetMinimumValue(const float value) noexcept { m_MinimumValue = value; }
|
|
|
|
void SetMaximumValue(const float value) noexcept { m_MaximumValue = value; }
|
|
|
|
|
2023-02-14 02:55:44 +00:00
|
|
|
private:
|
2024-02-18 06:38:26 +00:00
|
|
|
std::string m_DefaultValue;
|
|
|
|
float m_MinimumValue;
|
|
|
|
float m_MaximumValue;
|
2023-02-14 02:55:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //!__BLOCKDEFINITION__H__
|