aboutsummaryrefslogtreecommitdiffstats
path: root/generator.h
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-08-21 18:36:37 -0300
committerHugo Lima <hugo.lima@openbossa.org>2009-08-25 16:23:16 -0300
commit2270cb2b4e57b8e3d82dd1cf692eea75a4342c45 (patch)
treec485f506155df3d5ec7a21347b9d1e8d38f85400 /generator.h
parent55dd77e04a8cef0e14648d6d8fb18cdc18695931 (diff)
Removed QtDocGenerator dependence from BoostPythonGenerator, so a lot
of function were moved from BoostPythonGenerator to the Generator class. In other words, QtDocGenerator finally compiles and their unit test pass :-)
Diffstat (limited to 'generator.h')
-rw-r--r--generator.h46
1 files changed, 11 insertions, 35 deletions
diff --git a/generator.h b/generator.h
index 529d9b249..8040072aa 100644
--- a/generator.h
+++ b/generator.h
@@ -91,48 +91,24 @@ public:
bool setup(const ApiExtractor& extractor, const QMap<QString, QString> args);
- virtual QMap<QString, QString> options() const
- {
- return QMap<QString, QString>();
- }
+ virtual QMap<QString, QString> options() const;
/// Returns the classes used to generate the binding code.
- AbstractMetaClassList classes() const
- {
- return m_classes;
- }
+ AbstractMetaClassList classes() const;
- AbstractMetaFunctionList globalFunctions() const
- {
- return m_globalFunctions;
- }
+ AbstractMetaFunctionList globalFunctions() const;
- AbstractMetaEnumList globalEnums() const
- {
- return m_globalEnums;
- }
+ AbstractMetaEnumList globalEnums() const;
- QList<const PrimitiveTypeEntry*> primitiveTypes() const
- {
- return m_primitiveTypes;
- }
+ QList<const PrimitiveTypeEntry*> primitiveTypes() const;
- QList<const ContainerTypeEntry*> containerTypes() const
- {
- return m_containerTypes;
- }
+ QList<const ContainerTypeEntry*> containerTypes() const;
/// Returns the output directory
- QString outputDirectory() const
- {
- return m_outDir;
- }
+ QString outputDirectory() const;
/// Set the output directory
- void setOutputDirectory(const QString &outDir)
- {
- m_outDir = outDir;
- }
+ void setOutputDirectory(const QString &outDir);
/**
* Start the code generation, be sure to call setClasses before callign this method.
@@ -169,9 +145,9 @@ public:
* \param option some extra options
* \return the metatype translated to binding source format
*/
- virtual QString translateType(const AbstractMetaType *metatype,
- const AbstractMetaClass *context,
- int option = NoOption) const = 0;
+ QString translateType(const AbstractMetaType *metatype,
+ const AbstractMetaClass *context,
+ int option = NoOption) const;
/**
* Function used to write the fucntion arguments on the class buffer.