aboutsummaryrefslogtreecommitdiffstats
path: root/generator.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-05-31 15:53:17 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-06-03 11:11:02 -0300
commitbe4399fccc20a9c957722a305cc604526fc9bd61 (patch)
treefda0ce07cb851aebd82be7f58b59732bdcf41e36 /generator.h
parent4aad76e02a6d4d39b018b83e0d21fc976b153930 (diff)
Added methods Generator::findAbstractMetaEnum.
The new methods returns an AbstractMetaEnum for a given TypeEntry, EnumTypeEntry, FlagsTypeEntry or AbstractMetaType. Reviewed by Renato Ara├║jo <renato.filho@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'generator.h')
-rw-r--r--generator.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/generator.h b/generator.h
index 2b79135d..602effc4 100644
--- a/generator.h
+++ b/generator.h
@@ -113,6 +113,18 @@ public:
/// Returns all container types found by APIExtractor
QList<const ContainerTypeEntry*> containerTypes() const;
+ /// Returns an AbstractMetaEnum for a given EnumTypeEntry, or NULL if not found.
+ const AbstractMetaEnum* findAbstractMetaEnum(const EnumTypeEntry* typeEntry) const;
+
+ /// Returns an AbstractMetaEnum for a given TypeEntry that is an EnumTypeEntry, or NULL if not found.
+ const AbstractMetaEnum* findAbstractMetaEnum(const TypeEntry* typeEntry) const;
+
+ /// Returns an AbstractMetaEnum for the enum related to a given FlagsTypeEntry, or NULL if not found.
+ const AbstractMetaEnum* findAbstractMetaEnum(const FlagsTypeEntry* typeEntry) const;
+
+ /// Returns an AbstractMetaEnum for a given AbstractMetaType that holds an EnumTypeEntry, or NULL if not found.
+ const AbstractMetaEnum* findAbstractMetaEnum(const AbstractMetaType* metaType) const;
+
/// Returns the output directory
QString outputDirectory() const;