aboutsummaryrefslogtreecommitdiff
path: root/core/src/Model/Workflow/Value_Main.cpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2021-06-03 10:06:55 -0700
committerrtk0c <[email protected]>2021-06-03 10:06:55 -0700
commit7a325e1b3be04bc54941431458903022da1643ac (patch)
treeaa76ab5b243fb351693645bfe2d2841019a45c5a /core/src/Model/Workflow/Value_Main.cpp
parent016d58996db755630f8b41ddbef67516fe0c13b2 (diff)
Create template inheritance hierarchy, object value RTTI system
Diffstat (limited to 'core/src/Model/Workflow/Value_Main.cpp')
-rw-r--r--core/src/Model/Workflow/Value_Main.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/src/Model/Workflow/Value_Main.cpp b/core/src/Model/Workflow/Value_Main.cpp
index fdd2fd5..ca972c4 100644
--- a/core/src/Model/Workflow/Value_Main.cpp
+++ b/core/src/Model/Workflow/Value_Main.cpp
@@ -22,3 +22,14 @@ 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());
+}