diff options
author | Martijn Otto <martijn.otto@copernica.com> | 2014-02-14 16:30:23 +0100 |
---|---|---|
committer | Martijn Otto <martijn.otto@copernica.com> | 2014-02-14 16:30:23 +0100 |
commit | 06aa5fd5afaba69544b93654fb0a4f9c2651306e (patch) | |
tree | 99cd2ee120786a84531b450f9ef64e2319ef5192 /include/public.h | |
parent | 5c23fee5ce58ae66a70f3bd19a1dc2dff7220f13 (diff) |
Merged pull request #14
Diffstat (limited to 'include/public.h')
-rw-r--r-- | include/public.h | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/include/public.h b/include/public.h deleted file mode 100644 index 12648a1..0000000 --- a/include/public.h +++ /dev/null @@ -1,56 +0,0 @@ -/** - * 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) : Member(name, true) {} - Public(const char *name, std::nullptr_t value) : Member(name, true, value) {} - Public(const char *name, int value) : Member(name, true, value) {} - Public(const char *name, long value) : Member(name, true, value) {} - Public(const char *name, bool value) : Member(name, true, value) {} - Public(const char *name, char value) : Member(name, true, value) {} - Public(const char *name, const std::string &value) : Member(name, true, value) {} - Public(const char *name, const char *value, int size=-1) : Member(name, true, value, size) {} - Public(const char *name, double value) : Member(name, true, value) {} - - /** - * Constructor - * @param name Name of the property - * @param method Method to add - * @param arguments Optional argument information - */ - Public(const char *name, const _Method &method, const std::initializer_list<Argument> &arguments = {}) : Member(name, true, method, arguments) {} - - /** - * Destructor - */ - virtual ~Public() {} - - -}; - -/** - * End of namespace - */ -} - |