diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-10-22 13:39:21 -0700 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-10-22 13:39:21 -0700 |
commit | f96fc6c53bc8bd8888aeb291441f61a65b439413 (patch) | |
tree | 030815351f20cfa6dfb36c816c5c0d737516e784 /src/hashmember.cpp | |
parent | f16847ab29d474e2b20d7f8c9f3a0f229b54c850 (diff) |
Initial setup for dealing with object properties
Diffstat (limited to 'src/hashmember.cpp')
-rw-r--r-- | src/hashmember.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/hashmember.cpp b/src/hashmember.cpp new file mode 100644 index 0000000..f6f8483 --- /dev/null +++ b/src/hashmember.cpp @@ -0,0 +1,40 @@ +/** + * HashMember.cpp + * + * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com> + * @copyright 2013 Copernica BV + */ +#include "includes.h" + +/** + * Set up namespace + */ +namespace Php { + +/** + * Custom output stream operator + * @param stream + * @param value + * @return ostream + */ +std::ostream &operator<<(std::ostream &stream, const HashMember<int> &value) +{ + return stream << value.value(); +} + +/** + * Custom output stream operator + * @param stream + * @param value + * @return ostream + */ +std::ostream &operator<<(std::ostream &stream, const HashMember<std::string> &value) +{ + return stream << value.value(); +} + +/** + * End of namespace + */ +} + |