AnimatLab  2
Test
TypeProperty.cpp
Go to the documentation of this file.
1 
7 #include "StdAfx.h"
8 #include "TypeProperty.h"
9 
10 namespace AnimatSim
11 {
18 TypeProperty::TypeProperty(std::string strName, AnimatPropertyType eType, AnimatPropertyDirection eDirection)
19 {
20  m_strName = strName;
21  m_eType = eType;
22  m_eDirection = eDirection;
23 }
24 
32 {
33 }
34 
35 std::string TypeProperty::TypeName()
36 {
37  switch(m_eType)
38  {
39  case Invalid:
40  return "Invalid";
41  case Boolean:
42  return "Boolean";
43  case Integer:
44  return "Integer";
45  case Float:
46  return "Float";
47  case String:
48  return "String";
49  case Xml:
50  return "Xml";
51  }
52 
53  return "Invalid";
54 }
55 
56 std::string TypeProperty::DirectionName()
57 {
58  switch(m_eDirection)
59  {
60  case Get:
61  return "Get";
62  case Set:
63  return "Set";
64  case Both:
65  return "Both";
66  }
67 
68  return "Invalid";
69 }
70 
71 
72 } //AnimatSim
TypeProperty(std::string strName, AnimatPropertyType eType, AnimatPropertyDirection eDirection)
Default constructor.
Root namespace for the base simulation library for AnimatLab.
Declares the type property class.
virtual ~TypeProperty()
Destructor.