Game Develop Core: TreeItemStringData.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
TreeItemStringData.h
Go to the documentation of this file.
1
5 #if defined(GD_IDE_ONLY) && !defined(GD_NO_WX_GUI)
6 #ifndef GDCORE_TreeItemStringData_H
7 #define GDCORE_TreeItemStringData_H
8
9 #include <string>
10 #include <wx/treectrl.h>
11
12 namespace gd
13 {
14
22 class GD_CORE_API TreeItemStringData : public wxTreeItemData
23 {
24 public:
25 TreeItemStringData(const std::string & str_, const std::string & str2_ = "") : str(str_), str2(str2_) { };
26 virtual ~TreeItemStringData() {};
27
28 const std::string & GetString() const { return str; }
29 const std::string & GetSecondString() const { return str2; }
30 void SetString(std::string str_) { str = str_; }
31 void SetSecondString(std::string str_) { str2 = str_; }
32
33 private:
34 std::string str;
35 std::string str2;
36 };
37
38 }
39
40 #endif // GDCORE_TreeItemStringData_H
41 #endif