From 5096dc30222e346de5d78b02214b623db7ca8c52 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sat, 3 Jan 2015 16:45:14 +0100 Subject: Added references for aggregatedOf to the typesystem RttiType definitions --- src/core/model/Typesystem.cpp | 12 ++++++++---- src/core/model/Typesystem.hpp | 5 +++++ 2 files changed, 13 insertions(+), 4 deletions(-) (limited to 'src/core/model') diff --git a/src/core/model/Typesystem.cpp b/src/core/model/Typesystem.cpp index 9fbecd6..24be67f 100644 --- a/src/core/model/Typesystem.cpp +++ b/src/core/model/Typesystem.cpp @@ -444,13 +444,17 @@ const Rtti IntType{"IntType", {&Type}}; const Rtti DoubleType{"DoubleType", {&Type}}; const Rtti BoolType{"BoolType", {&Type}}; const Rtti EnumType{"EnumType", {&Type}}; -const Rtti StructType{"StructType", {&Type}}; +const Rtti StructType{"StructType", {&Type}, {&Attribute}}; const Rtti ArrayType{"ArrayType", {&Type}}; const Rtti UnknownType{"UnknownType", {&Type}}; const Rtti Constant{"Constant", {&Node}}; -const Rtti Typesystem{"Typesystem", {&Node}}; -const Rtti SystemTypesystem{"SystemTypesystem", - {&Typesystem}}; +const Rtti Attribute{"Attribute", {&Node}}; +const Rtti Typesystem{ + "Typesystem", {&Node}, {&StructType, &EnumType, &Constant}}; +const Rtti SystemTypesystem{ + "SystemTypesystem", + {&Typesystem}, + {&StringType, &IntType, &DoubleType, &BoolType, &EnumType}}; } } diff --git a/src/core/model/Typesystem.hpp b/src/core/model/Typesystem.hpp index a4322c4..b492b25 100644 --- a/src/core/model/Typesystem.hpp +++ b/src/core/model/Typesystem.hpp @@ -959,6 +959,11 @@ extern const Rtti UnknownType; */ extern const Rtti Constant; +/** + * Type information for the Constant class. + */ +extern const Rtti Attribute; + /** * Type information for the Typesystem class. */ -- cgit v1.2.3