Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-11-14 18:05:52 +0000
committerStijn Buys <ingar@osirion.org>2009-11-14 18:05:52 +0000
commite61d9ba10a40c9e51d14b30b86b2b3fe853f5db8 (patch)
tree469ec5d63897744132d87397c6898fa847431a4e /src/core/label.h
parent4293e8854a30443e4d5818fc55df404976dbfd9b (diff)
made core::Entity and core::Zone child classes from core::Label
Diffstat (limited to 'src/core/label.h')
-rw-r--r--src/core/label.h42
1 files changed, 8 insertions, 34 deletions
diff --git a/src/core/label.h b/src/core/label.h
index e772277..12a417c 100644
--- a/src/core/label.h
+++ b/src/core/label.h
@@ -14,17 +14,12 @@
namespace core {
/**
- * @brief baseclass for objects with a name and a label
+ * @brief base class for objects with a name and a label
*/
class Label {
public:
- inline Label() {
- }
-
- inline ~Label() {
- labelstr.clear();
- namestr.clear();
- }
+ Label();
+ ~Label();
/* --- inspectors ------------------------------------------------- */
@@ -38,34 +33,13 @@ public:
/* --- mutators --------------------------------------------------- */
- inline void set_label(const std::string & label)
- {
- labelstr.assign(label);
- aux::to_label(labelstr);
- }
+ void set_label(const std::string & label);
- inline void set_label(const char *label)
- {
- if (label) {
- labelstr.assign(label);
- aux::to_label(labelstr);
- } else {
- labelstr.clear();
- }
- }
+ void set_label(const char *label);
- inline void set_name(const std::string & name)
- {
- namestr.assign(name);
- }
-
- inline void set_name(const char *name)
- {
- if (name)
- namestr.assign(name);
- else
- namestr.clear();
- }
+ void set_name(const std::string & name);
+
+ void set_name(const char *name);
private:
std::string labelstr;