Atoms Crowd
7.0.0
NodeFactory.impl.h
1
// ===========================================================================
2
// Copyright (c) 2015 Toolchefs Ltd. All rights reserved.
3
//
4
// Use of this software is subject to the terms of the Toolchefs license
5
// agreement provided at the time of installation or download, or which
6
// otherwise accompanies this software in either electronic or hard copy form.
7
// ===========================================================================
8
9
namespace
AtomsGraph
10
{
11
template
<
class
T>
12
T*
NodeFactory::createNode
(
const
std::string& typeName)
13
{
14
Node
* nodePtr =
createNode
(typeName);
15
if
(!nodePtr)
16
return
nullptr
;
17
return
dynamic_cast<
T*
>
(nodePtr);
18
}
19
}
AtomsGraph::NodeFactory::createNode
T * createNode(const std::string &typeName)
Creates a new node.
Definition:
NodeFactory.impl.h:12
AtomsGraph::Node
Definition:
Node.h:31
AtomsGraph
AtomsGraph namespace.
Definition:
PosePort.h:15
Atoms
Public
AtomsGraph
NodeFactory.impl.h