summaryrefslogtreecommitdiff
path: root/src/floatmember.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-04-06 21:53:24 +0200
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-04-06 21:53:24 +0200
commit35fd3ccbeb4def71b4d8a59dfbb5c31201b099b9 (patch)
tree915223360aed4743aa6127fde4836aa413a260e5 /src/floatmember.h
parentda4710512865e6816585ac4ab8edab2fa125e2d8 (diff)
renamed src directory to zend directory, disabled TSRM debug code
Diffstat (limited to 'src/floatmember.h')
-rw-r--r--src/floatmember.h67
1 files changed, 0 insertions, 67 deletions
diff --git a/src/floatmember.h b/src/floatmember.h
deleted file mode 100644
index 9b5d4f2..0000000
--- a/src/floatmember.h
+++ /dev/null
@@ -1,67 +0,0 @@
-/**
- * FloatMember.h
- *
- * Implementation for a property that is initially set to a boolean value
- *
- * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
- * @copyright 2013, 2014 Copernica BV
- */
-
-/**
- * Set up namespace
- */
-namespace Php {
-
-/**
- * Class definition
- */
-class FloatMember : public Member
-{
-private:
- /**
- * The value
- * @var double
- */
- double _value;
-
-public:
- /**
- * Constructor
- * @param name
- * @param value
- * @param flags
- */
- FloatMember(const char *name, double value, int flags) : Member(name, flags), _value(value) {}
-
- /**
- * Destructor
- */
- virtual ~FloatMember() {}
-
- /**
- * Virtual method to declare class constant
- * @param entry Class entry
- * @param tsrm_ls
- */
- virtual void constant(struct _zend_class_entry *entry TSRMLS_DC) override
- {
- zend_declare_class_constant_double(entry, _name.c_str(), _name.size(), _value TSRMLS_CC);
- }
-
- /**
- * Virtual method to declare the property
- * @param entry Class entry'
- * @param tsrm_ls
- */
- virtual void declare(struct _zend_class_entry *entry TSRMLS_DC) override
- {
- // converstion to char* necessary for php 5.3
- zend_declare_property_double(entry, (char *)_name.c_str(), _name.size(), _value, _flags TSRMLS_CC);
- }
-};
-
-/**
- * End of namespace
- */
-}
-