diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-05-31 15:53:17 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-06-03 11:11:02 -0300 |
commit | be4399fccc20a9c957722a305cc604526fc9bd61 (patch) | |
tree | fda0ce07cb851aebd82be7f58b59732bdcf41e36 /generator.h | |
parent | 4aad76e02a6d4d39b018b83e0d21fc976b153930 (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.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/generator.h b/generator.h index 2b79135d1..602effc43 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; |