From 6d05c17a8d00075f1578094163237c43128e1df9 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Sun, 6 Apr 2014 22:59:21 +0200 Subject: moved modifiers.cpp to the common directory --- common/modifiers.cpp | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 common/modifiers.cpp (limited to 'common') diff --git a/common/modifiers.cpp b/common/modifiers.cpp new file mode 100644 index 0000000..3720730 --- /dev/null +++ b/common/modifiers.cpp @@ -0,0 +1,39 @@ +/** + * Modifiers.cpp + * + * In this file an enumeration type is with the possible + * member modifiers + * + * @author Martijn Otto + * @author Emiel Bruijntjes + * + * @copyright 2014 Copernica BV + */ +#include "includes.h" + +/** + * Set up namespace + */ +namespace Php { + +/** + * The modifiers are constants + */ +const int Static = 0x01; +const int Abstract = 0x02; +const int Final = 0x04; +const int Public = 0x100; +const int Protected = 0x200; +const int Private = 0x400; +const int Const = 0; + +/** + * Modifiers that are supported for methods and properties + */ +const int MethodModifiers = Final | Public | Protected | Private; +const int PropertyModifiers = Final | Public | Protected | Private | Const | Static; + +/** + * End namespace + */ +} -- cgit v1.2.3