RegularGridMesh
The GeMA Regular Grid Mesh Plugin
Loading...
Searching...
No Matches
gmpRegularGridMeshFactory.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_REGULAR_GRID_MESH_FACTORY_H_
25#define _GEMA_PLUGIN_REGULAR_GRID_MESH_FACTORY_H_
26
27#include <QObject>
29
30#include "gmpRegularGridMesh.h"
31#include "gmpRegularGridMeshVersion.h"
32
35{
37 Q_PLUGIN_METADATA(IID GmPluginObjectFactoryInterfaceIID)
39
40public:
43
44 // See comments on the base class method declaration
45 virtual GmPluginObject* instance(QString category, QString objType, GmSimulationData* simulation,
46 QString id, QString description)
47 {
48 assert(category == GM_PLUGIN_MESH);
49
50 if(objType == "grid")
51 return new GmpRegularGridMesh(simulation, id, description, logger());
52 else
53 return NULL;
54 }
55
57 virtual const QMap<QString, QString>& versionInfo() const { return GmpRegularGridMeshVersionInfo(); }
58
60 virtual const QStringList& depVersionInfo() const { return GmpRegularGridMeshRevisionDependencies(); }
61};
62
63#endif
64
const GmLogCategory & logger()
Implementation of the GmpRegularGridMeshFactory factory plugin.
Definition gmpRegularGridMeshFactory.h:35
virtual const QStringList & depVersionInfo() const
Retuns dependency version information for the plugin. See comments on the base class.
Definition gmpRegularGridMeshFactory.h:60
GmpRegularGridMeshFactory()
Default constructor.
Definition gmpRegularGridMeshFactory.h:42
virtual const QMap< QString, QString > & versionInfo() const
Retuns version information for the plugin. See comments on the base class.
Definition gmpRegularGridMeshFactory.h:57
Simple class implementing the GmRegularGridMesh interface.
Definition gmpRegularGridMesh.h:36
#define GmPluginObjectFactoryInterfaceIID
Declaration of the GmpRegularGridMesh class.
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT