diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-09-30 13:49:23 -0700 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-09-30 13:49:23 -0700 |
commit | 777eb276f635c949ccdcf9613ad55d42190cb387 (patch) | |
tree | f5451ae464a37414412d122ff6a283f713638dfa /include/protected.h | |
parent | ecfca6b1197658afb85fffd6f6ac9e92311a4b07 (diff) |
Work in progress on adding public and protected properties to classes
Diffstat (limited to 'include/protected.h')
-rw-r--r-- | include/protected.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/include/protected.h b/include/protected.h new file mode 100644 index 0000000..e660f76 --- /dev/null +++ b/include/protected.h @@ -0,0 +1,39 @@ +/** + * Protected.h + * + * Class for adding public properties to a class + * + * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com> + * @copyright 2013 Copernica BV + */ + +/** + * Namespace + */ +namespace Php { + +/** + * Class definition + */ +class Protected : public Member +{ +public: + /** + * Constructor + * @param name Name of the property + * @param value Default value of the property + */ + Protected(const char *name, const Value &value) : Member(name, false, value) {} + + /** + * Destructor + */ + virtual ~Protected() {} + +}; + +/** + * End of namespace + */ +} + |