From d0b3fd56b8eef09faf7986cef5d8732df1e5ddf5 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sat, 20 Dec 2014 16:39:32 +0100 Subject: adapted model classes to new Rtti class --- src/core/model/Document.hpp | 34 ---------------------------------- 1 file changed, 34 deletions(-) (limited to 'src/core/model/Document.hpp') diff --git a/src/core/model/Document.hpp b/src/core/model/Document.hpp index 0e0a416..5a293d3 100644 --- a/src/core/model/Document.hpp +++ b/src/core/model/Document.hpp @@ -187,11 +187,6 @@ public: Rooted fieldDescriptor); }; -/** - * A global variable for the ManagedType of a DocumentEntity. - */ -static ManagedType DocumentEntityType{"DocumentEntity", typeid(DocumentEntity)}; - /** * A StructuredEntity is a node in the Structure Tree of a document. For more * information please refer to the header documentation above. @@ -264,12 +259,6 @@ public: Variant attributes = Variant(), std::string name = ""); }; -/** - * A global variable for the ManagedType of a StructuredEntity. - */ -static ManagedType StructuredEntityType{ - "StructuredEntity", typeid(StructuredEntity), {&DocumentEntityType}}; - /** * This is a wrapper for primitive types (Variants) inside the document graph. * The most straightforward example for this is the actual document text, e.g. @@ -307,12 +296,6 @@ public: const std::string &fieldName = ""); }; -/** - * A global variable for the ManagedType of a DocumentPrimitive. - */ -static ManagedType DocumentPrimitiveType{ - "DocumentPrimitive", typeid(DocumentPrimitive), {&StructuredEntityType}}; - /** * An AnnotationEntity is a span-like instance that is not bound by the elements * of the Structure Tree. An annotation may very well overlap and cross the @@ -376,18 +359,6 @@ public: Rooted getEnd() { return end; } }; -/** - * A global variable for the ManagedType of an Anchor. - */ -static ManagedType AnchorType{ - "Anchor", typeid(AnnotationEntity::Anchor), {&StructuredEntityType}}; - -/** - * A global variable for the ManagedType of an AnnotationEntity. - */ -static ManagedType AnnotationEntityType{ - "AnnotationEntity", typeid(AnnotationEntity), {&DocumentEntityType}}; - /** * A Document is mainly a wrapper for the Root structure node of the Document * Graph. @@ -407,11 +378,6 @@ public: Rooted getRoot() const { return root; } }; - -/** - * A global variable for the ManagedType of a Document. - */ -static ManagedType DocumentType{"Document", typeid(Document)}; } } -- cgit v1.2.3