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/public.h | |
parent | ecfca6b1197658afb85fffd6f6ac9e92311a4b07 (diff) |
Work in progress on adding public and protected properties to classes
Diffstat (limited to 'include/public.h')
-rw-r--r-- | include/public.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/include/public.h b/include/public.h new file mode 100644 index 0000000..17a5d0c --- /dev/null +++ b/include/public.h @@ -0,0 +1,40 @@ +/** + * Public.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 Public : public Member +{ +public: + /** + * Constructor + * @param name Name of the property + * @param value Default value of the property + */ + Public(const char *name, const Value &value) : Member(name, true, value) {} + + /** + * Destructor + */ + virtual ~Public() {} + + +}; + +/** + * End of namespace + */ +} + |