charon-core  0.3.1
GroupObject.cpp
Go to the documentation of this file.
1 /* Copyright (C) 2012 Gerald Mwangi
2 
3  This file is part of Charon.
4 
5  Charon is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  Charon is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with Charon. If not, see <http://www.gnu.org/licenses/>.
17 */
26 #include "../include/charon-core/GroupObject.h"
27 
28 GroupObject::GroupObject(const std::string& name) :
30  "GroupObject", name,
31  "<h2>Loads a child workflow and executes it</h2><br>"
32  "Loads a child workflow and executes it"
33  )
34 {
35  ParameteredObject::_setTags("charon-core") ;
36 }
37 
40 }
41 
44  create(const std::string& name, ParameteredObject::template_type) {
45  return new GroupObject(name);
46 }
47 
50  delete b;
51 }
52 
55 #ifdef _DEBUG
57 #else
59 #endif
60 }
Loads a child workflow and executes it.
Definition: GroupObject.h:43
GroupObject(const std::string &name="")
default constructor
Definition: GroupObject.cpp:28
groupobject_DECLDIR void destroy(ParameteredObject *b)
Deletes an instance of the plugin.
Definition: GroupObject.cpp:49
build_type
defined build type
groupobject_DECLDIR ParameteredObject * create(const std::string &name, ParameteredObject::template_type)
Creates an instance of the plugin.
Definition: GroupObject.cpp:44
template_type
Integer which represents a template type.
groupobject_DECLDIR ParameteredObject::build_type getBuildType()
Report build configuration to prevent linking of incompatibel runtime libs.
Definition: GroupObject.cpp:54
Base class for serializable objects.
Convenience file to iclude all ParameteredObject dependencies and Template functions.
void _setTags(const std::string &tags)
Register additional tag names for grouping ParameteredObjects.
the object was compiled in release mode
#define groupobject_DECLDIR
Not needed without MSVC.
Definition: GroupObject.h:35
the object was compiled in debug mode
virtual void execute()
Update object.
Definition: GroupObject.cpp:38