From 1f74e66bb12d9ed9655012301fe660203d0f660e Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 10 Mar 2012 13:37:51 +0000 Subject: Added EntityProperties assignment operator. --- src/entityproperties.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/entityproperties.h') 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 * */ -- cgit v1.2.3