diff options
Diffstat (limited to 'cpp/src/qpid/framing/FieldValue.h')
| -rw-r--r-- | cpp/src/qpid/framing/FieldValue.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cpp/src/qpid/framing/FieldValue.h b/cpp/src/qpid/framing/FieldValue.h index 171afb68d0..7e3d895b61 100644 --- a/cpp/src/qpid/framing/FieldValue.h +++ b/cpp/src/qpid/framing/FieldValue.h @@ -78,6 +78,18 @@ class FieldValue { std::auto_ptr<Data> data; }; +template <> +inline bool FieldValue::convertsTo<int>() const { return data->convertsToInt(); } + +template <> +inline bool FieldValue::convertsTo<std::string>() const { return data->convertsToString(); } + +template <> +inline int FieldValue::get<int>() const { return data->getInt(); } + +template <> +inline std::string FieldValue::get<std::string>() const { return data->getString(); } + inline std::ostream& operator<<(std::ostream& out, const FieldValue& v) { v.print(out); return out; |
