aboutsummaryrefslogtreecommitdiff
path: root/app/source/Cplt/Model/Workflow/Value_Main.cpp
blob: ab78b86567dad5dc1894fa832646a5b1fd798dec (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
#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());
}