FemProcess
The GeMA Fem Process Plugin
Loading...
Searching...
No Matches
gmpFemProcessFactory.h
Go to the documentation of this file.
1/************************************************************************
2**
3** Copyright (C) 2014 by Carlos Augusto Teixera Mendes
4** All rights reserved.
5**
6** This file is part of the "GeMA" software. It's use should respect
7** the terms in the license agreement that can be found together
8** with this source code.
9** It is provided AS IS, with NO WARRANTY OF ANY KIND,
10** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR
11** A PARTICULAR PURPOSE.
12**
13************************************************************************/
14
24#ifndef _GEMA_PLUGIN_FEM_PROCESS_FACTORY_H_
25#define _GEMA_PLUGIN_FEM_PROCESS_FACTORY_H_
26
27#include <QObject>
28
30#include "gmpFemProcess.h"
31#include "gmpFemProcessVersion.h"
32
33
36{
38 Q_PLUGIN_METADATA(IID GmPluginObjectFactoryInterfaceIID)
40
41public:
44
45 // See comments on the base class method declaration
46 virtual GmPluginObject* instance(QString category, QString objType, GmSimulationData* simulation,
47 QString id, QString description)
48 {
49 assert(category == GM_PLUGIN_PROCESS);
50
51 if (objType == "fem")
52 return new GmpFemProcess(simulation, id, description, logger());
53
54 return NULL;
55 }
56
58 virtual const QMap<QString, QString>& versionInfo() const { return GmpFemProcessVersionInfo(); }
59
61 virtual const QStringList& depVersionInfo() const { return GmpFemProcessRevisionDependencies(); }
62};
63
64#endif
65
const GmLogCategory & logger()
Implementation of the FemProcess factory plugin.
Definition gmpFemProcessFactory.h:36
virtual const QStringList & depVersionInfo() const
Retuns dependency version information for the plugin. See comments on the base class.
Definition gmpFemProcessFactory.h:61
virtual const QMap< QString, QString > & versionInfo() const
Retuns version information for the plugin. See comments on the base class.
Definition gmpFemProcessFactory.h:58
GmpFemProcessFactory()
Default constructor.
Definition gmpFemProcessFactory.h:43
Basic class for the FEM Process plugin object.
Definition gmpFemProcess.h:39
#define GmPluginObjectFactoryInterfaceIID
Declaration of the GmpFemProcess class.
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT