blob: c86f00b9fd6683bf0ec1d54b33352059479416b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#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<int64_t>(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<std::chrono::system_clock>& DateTimeValue::GetValue() const {
return mValue;
}
void DateTimeValue::SetValue(const std::chrono::time_point<std::chrono::system_clock>& value) {
mValue = value;
}
|