From 86c00c1d694cfc69b58ac2fbd0d7744c7f95e39a Mon Sep 17 00:00:00 2001 From: Hugo Lima Date: Fri, 21 Aug 2009 14:21:39 -0300 Subject: Added boostpython as a generator plugin. --- generator.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'generator.h') diff --git a/generator.h b/generator.h index 14526d7f0..f9e0c714e 100644 --- a/generator.h +++ b/generator.h @@ -26,12 +26,19 @@ #include #include -#include "abstractmetalang.h" +#include +#include class ApiExtractor; class AbstractMetaBuilder; class QFile; +#define EXPORT_GENERATOR_PLUGIN(X)\ +extern "C" Q_DECL_EXPORT GeneratorList getGenerators()\ +{\ + return GeneratorList() << X;\ +}\ + /** * Base class for all generators. The default implementations does nothing, * you must subclass this to create your own generators. @@ -245,7 +252,7 @@ protected: */ virtual QString fileNameForClass(const AbstractMetaClass* metaClass) const = 0; - virtual bool doSetup(QMap args) = 0; + virtual bool doSetup(const QMap& args) = 0; /** * Returns the subdirectory path for a given package @@ -293,6 +300,8 @@ private: QString m_licenseComment; }; +typedef QLinkedList GeneratorList; + /** * Utility class to store the identation level, use it in a QTextStream. */ -- cgit v1.2.3