TDME2  1.9.200
UpVector.cpp
Go to the documentation of this file.
2 
3 #include <string>
4 
5 #include <tdme/tdme.h>
6 #include <tdme/utilities/Enum.h>
7 
8 using std::string;
9 
12 
13 UpVector::UpVector(const string& name, int ordinal): Enum(name, ordinal)
14 {
15 }
16 
19 
20 UpVector* UpVector::valueOf(const string& a0)
21 {
22  if (Y_UP->getName() == a0) return Y_UP;
23  if (Z_UP->getName() == a0) return Z_UP;
24  // TODO: throw exception here maybe
25  return nullptr;
26 }
Model up vector.
Definition: UpVector.h:20
static UpVector * valueOf(const string &a0)
Definition: UpVector.cpp:20
static STATIC_DLL_IMPEXT UpVector * Z_UP
Definition: UpVector.h:25
static STATIC_DLL_IMPEXT UpVector * Y_UP
Definition: UpVector.h:24
Enum base class.
Definition: Enum.h:14
const string & getName() const
Definition: Enum.h:37