aboutsummaryrefslogtreecommitdiffstats
path: root/shibokengenerator.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-11-13 18:20:32 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-11-13 18:20:32 -0300
commit95a97f17d87bcc20a3b4cfc6a5a98fbbc24fe432 (patch)
tree5a5958b70da91585e426ac0a36614d1ebd269705 /shibokengenerator.h
parent8f779f4dbdd3b62891ffd61e8a441f7108ea4cc7 (diff)
added two convenience methods to ShibokenGenerator that receive
AbstractMetaFunction; one tells if the function uses the %CPPSELF type system variable on its code snippets (if any), and the other says if there is a call to the wrapped C++ function in the code snippets
Diffstat (limited to 'shibokengenerator.h')
-rw-r--r--shibokengenerator.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/shibokengenerator.h b/shibokengenerator.h
index 945825238..492746b93 100644
--- a/shibokengenerator.h
+++ b/shibokengenerator.h
@@ -100,6 +100,23 @@ public:
CodeSnipList getCodeSnips(const AbstractMetaFunction* func);
/**
+ * Verifies if any of the function's code injections needs the
+ * type system variable "%CPPSELF".
+ * \param func the function to check
+ * \return true if the function's code snippets use "%CPPSELF"
+ */
+ bool injectedCodeUsesCppSelf(const AbstractMetaFunction* func);
+
+ /**
+ * Verifies if any of the function's code injections makes a call
+ * to the C++ method. This is used by the generator to avoid writing calls
+ * to C++ when the user custom code already does this.
+ * \param func the function to check
+ * \return true if the function's code snippets call the wrapped C++ function
+ */
+ bool injectedCodeCallsCppFunction(const AbstractMetaFunction* func);
+
+ /**
* Function which parse the metafunction information
* \param func the function witch will be parserd
* \param option some extra options