Game Develop Core: PropgridPropertyDescriptor.h Source File

| Game Develop Core Core library for developing platforms and tools compatible with Game Develop.

- Main Page
- Modules
- Classes

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Macros Groups Pages
PropgridPropertyDescriptor.h
1 #ifndef PROPGRIDPROPERTYDESCRIPTOR
2 #define PROPGRIDPROPERTYDESCRIPTOR
3
4 #include <string>
5 #include <vector>
6
7 namespace gd
8 {
9
16 class GD_CORE_API PropgridPropertyDescriptor
17 {
18 public:
23 PropgridPropertyDescriptor(std::string propertyValue) :
24 currentValue(propertyValue),
25 type("string")
26 {
27 }
28
32 PropgridPropertyDescriptor() {};
33
37 virtual ~PropgridPropertyDescriptor();
38
42 PropgridPropertyDescriptor & SetValue(std::string value) { currentValue = value; return *this; }
43
50 PropgridPropertyDescriptor & SetType(std::string type_) { type = type_; return *this; }
51
58 PropgridPropertyDescriptor & AddExtraInfo(const std::string & info) { extraInformation.push_back(info); return *this; }
59
60 const std::string & GetValue() const { return currentValue; }
61 const std::string & GetType() const { return type; }
62 const std::vector<std::string> & GetExtraInfo() const { return extraInformation; }
63
64 private:
65 std::string currentValue;
66 std::string type;
67 std::vector<std::string> extraInformation;
68 };
69
70 }
71
72 #endif