From c5f45c9d2cef13974c08773cd0f788de12ee2ce4 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 7 Mar 2012 20:35:50 +0000 Subject: Added Properties copy constructor and assignment operator. --- src/properties.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/properties.h') diff --git a/src/properties.h b/src/properties.h index efde85b..89c9c93 100644 --- a/src/properties.h +++ b/src/properties.h @@ -26,6 +26,11 @@ class Properties public: Properties(); + /** + * @brief copy constructor + * */ + Properties(const Properties & other); + virtual ~Properties(); /* ---- inspectors ---- */ @@ -88,6 +93,19 @@ public: /* ---- mutators ---- */ + /** + * @brief assign all values of another Properties instance to this instance + * */ + void assign(const Properties & other); + + /** + * @brief assignment operator + * */ + inline Properties & operator=(const Properties & other) { + assign(other); + return *this; + } + /** * @brief set the comments string of this object * */ -- cgit v1.2.3