diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-10-03 11:36:52 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-10-03 11:36:52 -0300 |
commit | 44138ada64eb6f9175ea7bb8c05e38f9079fbf8b (patch) | |
tree | 3b97e0a7d97f0f23ad965e01879b656cf4478167 /generator.h | |
parent | c0d2e563a1aeaf8b32e947248bb5453edd7d2263 (diff) |
Added a couple of convenience methods to Generator: isCString and isVoidPointer.
Diffstat (limited to 'generator.h')
-rw-r--r-- | generator.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/generator.h b/generator.h index 14b1fefa8..484327d32 100644 --- a/generator.h +++ b/generator.h @@ -237,6 +237,11 @@ public: static bool isObjectType(const AbstractMetaType* metaType); static bool isObjectType(const AbstractMetaClass* metaClass); + /// Returns true if the type is a C string (const char*). + static bool isCString(const AbstractMetaType* type); + /// Returns true if the type is a void pointer. + static bool isVoidPointer(const AbstractMetaType* type); + /** * Tries to build a minimal constructor for the type. * It will check first for a user defined default constructor. |