From fa02aa127d2c4261d15123829e44f6d997444abc Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Sun, 2 Mar 2014 10:38:00 +0100 Subject: small fixes, work in progress on doc_comment, and work in progress on Base::self() --- include/properties.h | 72 ---------------------------------------------------- 1 file changed, 72 deletions(-) delete mode 100644 include/properties.h (limited to 'include') diff --git a/include/properties.h b/include/properties.h deleted file mode 100644 index cb8b38e..0000000 --- a/include/properties.h +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Properties.h - * - * The properties of a class are accessible using the protected _properties - * member. This is a class that implements the [] operator, so that all - * properties can be accessed using ["name"]. - * - * @author Emiel Bruijntjes - * @copyright 2013 Copernica BV - */ - -/** - * Namespace - */ -namespace Php { - -/** - * Class properties - */ -class Properties -{ -public: - /** - * Destructor - */ - virtual ~Properties() {} - - /** - * Get access to a property by name - * @param name - * @return HashMember - */ - HashMember operator[](const char *name) - { - // map to value - return _value[name]; - } - - /** - * Another way to get access to a property - * @param name - * @return HashMember - */ - HashMember operator[](const std::string &name) - { - // map to value - return _value[name]; - } - -private: - /** - * Private constructor - outside users are not supposed to instantiate this object - * @param zval - */ - Properties(struct _zval_struct *zval) : _value(zval) {} - - /** - * The value object - * @var Value - */ - Value _value; - - /** - * Only the base class can create properties - */ - friend class Base; -}; - -/** - * End of namespace - */ -} -- cgit v1.2.3