diff options
Diffstat (limited to 'cpp/src/qpid/framing/FieldTable.cpp')
-rw-r--r-- | cpp/src/qpid/framing/FieldTable.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/qpid/framing/FieldTable.cpp b/cpp/src/qpid/framing/FieldTable.cpp index 013bcd1797..cf0e03180c 100644 --- a/cpp/src/qpid/framing/FieldTable.cpp +++ b/cpp/src/qpid/framing/FieldTable.cpp @@ -127,18 +127,14 @@ T getValue(const FieldTable::ValuePtr value) return value->get<T>(); } -std::string FieldTable::getString(const std::string& name) const { +std::string FieldTable::getAsString(const std::string& name) const { return getValue<std::string>(get(name)); } -int FieldTable::getInt(const std::string& name) const { +int FieldTable::getAsInt(const std::string& name) const { return getValue<int>(get(name)); } -//uint64_t FieldTable::getTimestamp(const std::string& name) const { -// return getValue<uint64_t>(name); -//} - uint64_t FieldTable::getAsUInt64(const std::string& name) const { return static_cast<uint64_t>( getValue<int64_t>(get(name))); } @@ -176,6 +172,10 @@ bool FieldTable::getDouble(const std::string& name, double& value) const { return getRawFixedWidthValue<double, 8, 0x33>(get(name), value); } +//uint64_t FieldTable::getTimestamp(const std::string& name) const { +// return getValue<uint64_t>(name); +//} + void FieldTable::encode(Buffer& buffer) const{ buffer.putLong(encodedSize() - 4); buffer.putLong(values.size()); |