diff options
author | rtk0c <[email protected]> | 2021-06-03 10:06:55 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2021-06-03 10:06:55 -0700 |
commit | 7a325e1b3be04bc54941431458903022da1643ac (patch) | |
tree | aa76ab5b243fb351693645bfe2d2841019a45c5a /core/src/Model/Workflow/Value_Main.cpp | |
parent | 016d58996db755630f8b41ddbef67516fe0c13b2 (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.cpp | 11 |
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()); +} |