blob: ca972c45c08be396fdd976754a313a630bd70ede (
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
|
#include "Value.hpp"
BaseValue::BaseValue(Kind kind)
: mKind{ kind }
{
}
BaseValue::Kind BaseValue::GetKind() const
{
return mKind;
}
bool BaseValue::SupportsConstant() const
{
return false;
}
void BaseValue::ReadFrom(std::istream& stream)
{
}
void BaseValue::WriteTo(std::ostream& stream)
{
}
BaseObjectValue::BaseObjectValue(Kind kind)
: BaseValue(kind)
{
assert(kind >= KD_BaseObject && kind <= KD_BaseObjectLast);
}
const BaseObjectDescription& BaseObjectValue::GetObjectDescription() const
{
return QueryObjectInfo(this->GetKind());
}
|