summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-02 10:38:00 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-02 10:38:00 +0100
commitfa02aa127d2c4261d15123829e44f6d997444abc (patch)
tree47052cd7f9b1e25b8af91ff4ae9bb06690217ba4 /include
parent20091783de937a72a86800f8025dd238afb139a1 (diff)
small fixes, work in progress on doc_comment, and work in progress on Base::self()
Diffstat (limited to 'include')
-rw-r--r--include/properties.h72
1 files changed, 0 insertions, 72 deletions
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 <emiel.bruijntjes@copernica.com>
- * @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<std::string> operator[](const char *name)
- {
- // map to value
- return _value[name];
- }
-
- /**
- * Another way to get access to a property
- * @param name
- * @return HashMember
- */
- HashMember<std::string> 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
- */
-}