FemProcess
The GeMA Fem Process Plugin
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 
29 #include <gmPluginObjectFactory.h>
30 #include "gmpFemProcess.h"
31 #include "gmpFemProcessVersion.h"
32 
33 
36 {
37  Q_OBJECT
38  Q_PLUGIN_METADATA(IID GmPluginObjectFactoryInterfaceIID)
39  Q_INTERFACES(GmPluginObjectFactory)
40 
41 public:
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 QStringList& versionInfo() const { return GmpFemProcessVersionInfo(); }
59 
61  virtual const QStringList& depVersionInfo() const { return GmpFemProcessRevisionDependencies(); }
62 };
63 
64 #endif
65 
virtual const QStringList & depVersionInfo() const
Retuns dependency version information for the plugin. See comments on the base class.
Definition: gmpFemProcessFactory.h:61
const GmLogCategory & logger()
virtual const QStringList & versionInfo() const
Retuns version information for the plugin. See comments on the base class.
Definition: gmpFemProcessFactory.h:58
Declaration of the GmpFemProcess class.
Basic class for the FEM Process plugin object.
Definition: gmpFemProcess.h:38
Implementation of the FemProcess factory plugin.
Definition: gmpFemProcessFactory.h:35
#define GmPluginObjectFactoryInterfaceIID
GmpFemProcessFactory()
Default constructor.
Definition: gmpFemProcessFactory.h:43