summaryrefslogtreecommitdiff
path: root/include/inivalue.h
diff options
context:
space:
mode:
authorMartijn Otto <martijn.otto@copernica.com>2015-03-26 16:00:10 +0100
committerMartijn Otto <martijn.otto@copernica.com>2015-03-26 16:00:10 +0100
commit7a928e2b19bddf152fd838469cc50805d4132401 (patch)
tree0a6657f4b94c27556b2f218e407f752018540d3b /include/inivalue.h
parentae4fa5f871d937773e9facde87a32784e715e3ae (diff)
Changed default visibility for symbols in the PHP-CPP library to hidden and explicitly exported all symbols available from the public API. Moved the hiddenpointer to the zend implementation directory as it is not meant to be used publicly and not referenced anywhere from the API anyway
Diffstat (limited to 'include/inivalue.h')
-rw-r--r--include/inivalue.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/include/inivalue.h b/include/inivalue.h
index fc3bc8f..9afb1a2 100644
--- a/include/inivalue.h
+++ b/include/inivalue.h
@@ -2,7 +2,7 @@
* IniValue.h
*
* Class IniValue designed for extracting values from ini entries
- *
+ *
* @copyright 2014 Copernica BV
*/
@@ -14,12 +14,12 @@ namespace Php {
/**
* Class IniValue designed for extracting values from ini entries.
*/
-class IniValue
+class PHPCPP_EXPORT IniValue
{
public:
/**
* Constructors
- *
+ *
* @param name Name of the php.ini variable
* @param isorig Is the original value
*/
@@ -51,7 +51,7 @@ public:
{
return numericValue();
}
-
+
/**
* Cast to a boolean
* @return boolean
@@ -60,7 +60,7 @@ public:
{
return boolValue();
}
-
+
/**
* Cast to a string
* @return string
@@ -69,7 +69,7 @@ public:
{
return stringValue();
}
-
+
/**
* Cast to byte array
* @return const char *
@@ -78,7 +78,7 @@ public:
{
return rawValue();
}
-
+
/**
* Cast to a floating point
* @return double
@@ -96,7 +96,7 @@ public:
* @return int64_t
*/
int64_t numericValue() const;
-
+
/**
* Boolean value
* @return bool
@@ -121,10 +121,10 @@ public:
*/
const char *rawValue() const;
-
+
private:
-
-
+
+
/**
* ini entry name
* @var std::string
@@ -151,4 +151,3 @@ std::ostream &operator<<(std::ostream &stream, const IniValue &ini_val);
* End of namespace
*/
}
-