TDME2 1.9.121
GUINode_Flow.cpp
Go to the documentation of this file.
2
3#include <string>
4
5#include <tdme/tdme.h>
7
8using std::string;
9
12
13GUINode_Flow::GUINode_Flow(const string& name, int ordinal)
14 : Enum(name, ordinal)
15{
16}
17
20
22{
23 if (FLOATING->getName() == name) return FLOATING;
24 if (INTEGRATED->getName() == name) return INTEGRATED;
25 // TODO: throw exception here maybe
26 return nullptr;
27}
28
static STATIC_DLL_IMPEXT GUINode_Flow * FLOATING
Definition: GUINode_Flow.h:31
static STATIC_DLL_IMPEXT GUINode_Flow * INTEGRATED
Definition: GUINode_Flow.h:30
static GUINode_Flow * valueOf(const string &name)
Returns enum object given by name.
Enum base class.
Definition: Enum.h:14
const string & getName() const
Definition: Enum.h:30