diff options
author | Stijn Buys <ingar@osirion.org> | 2012-03-10 13:37:51 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-03-10 13:37:51 +0000 |
commit | 1f74e66bb12d9ed9655012301fe660203d0f660e (patch) | |
tree | c9b1378118d87e41e5ce01121699e408ffb0f76d /src/entityproperties.h | |
parent | c5f45c9d2cef13974c08773cd0f788de12ee2ce4 (diff) |
Added EntityProperties assignment operator.
Diffstat (limited to 'src/entityproperties.h')
-rw-r--r-- | src/entityproperties.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/entityproperties.h b/src/entityproperties.h index 6fc3d5b..65edbb8 100644 --- a/src/entityproperties.h +++ b/src/entityproperties.h @@ -20,6 +20,8 @@ class EntityProperties : public Properties { public: EntityProperties(); + EntityProperties(const EntityProperties &other); + virtual ~EntityProperties(); /** @@ -82,6 +84,19 @@ public: /* ---- mutators ---- */ + /** + * @brief assignment operator + * */ + void assign(const EntityProperties & other); + + /** + * @brief assignment operator + * */ + inline EntityProperties & operator=(const EntityProperties & other) { + assign(other); + return *this; + } + /** * @brief set the subsection string of this object * */ |