From a804510d81ade0594a75b5c9b8765cafcc233245 Mon Sep 17 00:00:00 2001 From: Kim van der Riet Date: Mon, 16 Jul 2012 13:54:11 +0000 Subject: QPID-3858: Refactor to tidy up several class design issues git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/asyncstore@1362039 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/storePerftools/asyncPerf/SimpleMessage.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'cpp/src/tests/storePerftools/asyncPerf/SimpleMessage.h') diff --git a/cpp/src/tests/storePerftools/asyncPerf/SimpleMessage.h b/cpp/src/tests/storePerftools/asyncPerf/SimpleMessage.h index 1b3e034814..01f54c1c19 100644 --- a/cpp/src/tests/storePerftools/asyncPerf/SimpleMessage.h +++ b/cpp/src/tests/storePerftools/asyncPerf/SimpleMessage.h @@ -28,13 +28,6 @@ #include "qpid/broker/MessageHandle.h" #include "qpid/broker/PersistableMessage.h" -#include - -namespace qpid { -namespace asyncStore { -class AsyncStoreImpl; -}} - namespace tests { namespace storePerftools { namespace asyncPerf { @@ -45,9 +38,11 @@ class SimpleMessage: public qpid::broker::PersistableMessage, public qpid::broker::DataSource { public: + SimpleMessage(const char* msgData, + const uint32_t msgSize); SimpleMessage(const char* msgData, const uint32_t msgSize, - qpid::asyncStore::AsyncStoreImpl* store); + qpid::broker::AsyncStore* store); virtual ~SimpleMessage(); const qpid::broker::MessageHandle& getHandle() const; qpid::broker::MessageHandle& getHandle(); @@ -71,6 +66,8 @@ public: private: mutable uint64_t m_persistenceId; const std::string m_msg; + qpid::broker::AsyncStore* m_store; + qpid::broker::MessageHandle m_msgHandle; }; -- cgit v1.2.1