diff options
author | Andrew Stitcher <astitcher@apache.org> | 2008-10-13 21:24:40 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2008-10-13 21:24:40 +0000 |
commit | 76dc7ca3e92919d83932e66906425067652e76f5 (patch) | |
tree | 3ad2af5d89e4df8af3c3eea74226c3c73ce80c63 /cpp/src/qpid/framing/FieldTable.cpp | |
parent | 037882cebf617cd18b5aa372fc22f50e692df2c6 (diff) | |
download | qpid-python-76dc7ca3e92919d83932e66906425067652e76f5.tar.gz |
Field Table API: changed the getInt() & getString() operations
which are inconsistent with all the other getXXX() functions to
getAsString()/getAsInt() to better indicate their real function.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@704255 13f79535-47bb-0310-9956-ffa450edef68
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()); |