diff options
author | Ted Ross <tross@apache.org> | 2011-01-11 16:02:23 +0000 |
---|---|---|
committer | Ted Ross <tross@apache.org> | 2011-01-11 16:02:23 +0000 |
commit | 5ab4ca01eb76291567c9f148882cd25ebdc5cce7 (patch) | |
tree | 505652128855de02c2860f99de19242c0cf0e0fe /cpp/src | |
parent | e00055d161bf4203332ce86a58cfdbcccd01b785 (diff) | |
download | qpid-python-5ab4ca01eb76291567c9f148882cd25ebdc5cce7.tar.gz |
QMFv2 API change:
1) Added public constructor for DataAddr(Variant::Map)
2) Fixed Python and Ruby typemaps to support Variant::Map& and Variant::List& with const
3) Added support for building Queries based on object-id maps in both Python and Ruby wrappers
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1057709 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/qmf/DataAddr.cpp | 1 | ||||
-rw-r--r-- | cpp/src/qmf/DataAddrImpl.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/qmf/DataAddr.cpp b/cpp/src/qmf/DataAddr.cpp index c864ac9bf4..fb51d5787f 100644 --- a/cpp/src/qmf/DataAddr.cpp +++ b/cpp/src/qmf/DataAddr.cpp @@ -38,6 +38,7 @@ DataAddr& DataAddr::operator=(const DataAddr& s) { return PI::assign(*this, s); bool DataAddr::operator==(const DataAddr& o) { return *impl == *o.impl; } bool DataAddr::operator<(const DataAddr& o) { return *impl < *o.impl; } +DataAddr::DataAddr(const qpid::types::Variant::Map& m) { PI::ctor(*this, new DataAddrImpl(m)); } DataAddr::DataAddr(const string& n, const string& a, uint32_t e) { PI::ctor(*this, new DataAddrImpl(n, a, e)); } const string& DataAddr::getName() const { return impl->getName(); } const string& DataAddr::getAgentName() const { return impl->getAgentName(); } diff --git a/cpp/src/qmf/DataAddrImpl.h b/cpp/src/qmf/DataAddrImpl.h index 26acd60575..3f9cae9453 100644 --- a/cpp/src/qmf/DataAddrImpl.h +++ b/cpp/src/qmf/DataAddrImpl.h @@ -32,7 +32,6 @@ namespace qmf { // // Impl-only methods // - DataAddrImpl(const qpid::types::Variant::Map&); void setName(const std::string& n) { name = n; } void setAgent(const std::string& n, uint32_t e=0) { agentName = n; agentEpoch = e; } @@ -41,6 +40,7 @@ namespace qmf { // bool operator==(const DataAddrImpl&); bool operator<(const DataAddrImpl&); + DataAddrImpl(const qpid::types::Variant::Map&); DataAddrImpl(const std::string& _name, const std::string& _agentName, uint32_t _agentEpoch=0) : agentName(_agentName), name(_name), agentEpoch(_agentEpoch) {} const std::string& getName() const { return name; } |