#include "EvaluatedValue.hpp" BaseValue::BaseValue(Type type) : mType{ type } { } BaseValue::Type BaseValue::GetType() const { return mType; } NumericValue::NumericValue() : BaseValue(BaseValue::NumericType) { } int64_t NumericValue::GetInt() const { return static_cast(mValue); } double NumericValue::GetValue() const { return mValue; } void NumericValue::SetValue(double value) { mValue = value; } TextValue::TextValue() : BaseValue(BaseValue::TextType) { } const std::string& TextValue::GetValue() const { return mValue; } void TextValue::SetValue(const std::string& value) { mValue = value; } DateTimeValue::DateTimeValue() : BaseValue(BaseValue::DateTimeType) { } const std::chrono::time_point& DateTimeValue::GetValue() const { return mValue; } void DateTimeValue::SetValue(const std::chrono::time_point& value) { mValue = value; }