TDME2
1.9.200
src
tdme
gui
nodes
GUINode_Flow.cpp
Go to the documentation of this file.
1
#include <
tdme/gui/nodes/GUINode_Flow.h
>
2
3
#include <string>
4
5
#include <
tdme/tdme.h
>
6
#include <
tdme/utilities/Enum.h
>
7
8
using
std::string;
9
10
using
tdme::gui::nodes::GUINode_Flow
;
11
using
tdme::utilities::Enum
;
12
13
GUINode_Flow::GUINode_Flow(
const
string
& name,
int
ordinal)
14
:
Enum
(name, ordinal)
15
{
16
}
17
18
GUINode_Flow
*
tdme::gui::nodes::GUINode_Flow::INTEGRATED
=
new
GUINode_Flow
(
"INTEGRATED"
, 0);
19
GUINode_Flow
*
tdme::gui::nodes::GUINode_Flow::FLOATING
=
new
GUINode_Flow
(
"FLOATING"
, 1);
20
21
GUINode_Flow
*
GUINode_Flow::valueOf
(
const
string
& name)
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
Enum.h
GUINode_Flow.h
tdme::gui::nodes::GUINode_Flow
GUI node flow enum.
Definition:
GUINode_Flow.h:28
tdme::gui::nodes::GUINode_Flow::FLOATING
static STATIC_DLL_IMPEXT GUINode_Flow * FLOATING
Definition:
GUINode_Flow.h:31
tdme::gui::nodes::GUINode_Flow::INTEGRATED
static STATIC_DLL_IMPEXT GUINode_Flow * INTEGRATED
Definition:
GUINode_Flow.h:30
tdme::gui::nodes::GUINode_Flow::valueOf
static GUINode_Flow * valueOf(const string &name)
Returns enum object given by name.
Definition:
GUINode_Flow.cpp:21
tdme::utilities::Enum
Enum base class.
Definition:
Enum.h:14
tdme::utilities::Enum::getName
const string & getName() const
Definition:
Enum.h:37
tdme::utilities::Enum::name
string name
Definition:
Enum.h:16
tdme.h
Generated by
1.9.1