Game Develop Core: AutomatismsSharedData.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
AutomatismsSharedData.h
Go to the documentation of this file.
1
6 #ifndef AUTOMATISMSSHAREDDATA_H
7 #define AUTOMATISMSSHAREDDATA_H
8
9 #include <boost/shared_ptr.hpp>
10 #include <string>
11 class AutomatismsRuntimeSharedData;
12 class TiXmlElement;
13
14 namespace gd
15 {
16
26 class GD_CORE_API AutomatismsSharedData
27 {
28 public:
29 AutomatismsSharedData() {};
30 virtual ~AutomatismsSharedData();
31 virtual boost::shared_ptr<gd::AutomatismsSharedData> Clone() const { return boost::shared_ptr<gd::AutomatismsSharedData>(new AutomatismsSharedData(*this));}
32
36 void SetName(std::string name_) { name = name_; };
37
41 std::string GetName() { return name; }
42
46 std::string GetTypeName() { return type; }
47
51 virtual void SetTypeName(const std::string & type_) { type = type_; };
52
53 #if defined(GD_IDE_ONLY)
54
57 virtual void SaveToXml(TiXmlElement * eventElem) const {}
58 #endif
59
63 virtual void LoadFromXml(const TiXmlElement * eventElem) {}
64
65 //TODO : GD C++ Platform specific code :
71 virtual boost::shared_ptr<AutomatismsRuntimeSharedData> CreateRuntimeSharedDatas()
72 {
73 return boost::shared_ptr<AutomatismsRuntimeSharedData>();
74 }
75
76 private:
77 std::string name;
78 std::string type;
79 };
80
81 }
82
83 #endif // AUTOMATISMSSHAREDDATA_H