TDME2  1.9.200
BaseProperty.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
5 #include <tdme/tdme.h>
7 
8 using std::string;
9 
10 /**
11  * Base property model class
12  * @author Andreas Drewke
13  */
15 {
16 private:
17  string name;
18  string value;
19 
20 public:
21  /**
22  * Constructor
23  * @param name name
24  * @param value value
25  */
26  inline BaseProperty(const string& name, const string& value): name(name), value(value) {}
27 
28  /**
29  * Destructor
30  */
31  ~BaseProperty();
32 
33  /**
34  * @return name
35  */
36  inline const string& getName() const {
37  return name;
38  }
39 
40  /**
41  * Set up name
42  * @param name name
43  */
44  inline void setName(const string& name) {
45  this->name = name;
46  }
47 
48  /**
49  * @return value
50  */
51  inline const string& getValue() const {
52  return value;
53  }
54 
55  /**
56  * Set up value
57  * @param value value
58  */
59  inline void setValue(const string& value) {
60  this->value = value;
61  }
62 
63 };
Base property model class.
Definition: BaseProperty.h:15
const string & getValue() const
Definition: BaseProperty.h:51
void setValue(const string &value)
Set up value.
Definition: BaseProperty.h:59
const string & getName() const
Definition: BaseProperty.h:36
void setName(const string &name)
Set up name.
Definition: BaseProperty.h:44
BaseProperty(const string &name, const string &value)
Constructor.
Definition: BaseProperty.h:26