blob: da1738c787bae4739b76873f52d92b3ee7c38efa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include "Object.h"
Object::Object(const String & name, const String & description) : name(name), description(description) { }
void Object::set_name(const String & name) {
this->name = name;
}
const String & Object::get_name() const {
return this->name;
}
const String & Object::get_displayname() const {
static String displayname = this->name;
return displayname;
}
void Object::set_description(const String & description) {
this->description = description;
}
const String & Object::get_description() const {
return this->description;
}
|