00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _FutureFactory_
00023 #define _FutureFactory_
00024
00025 #include <vector>
00026 #include <boost/shared_ptr.hpp>
00027 #include <boost/weak_ptr.hpp>
00028 #include "FutureCompletion.h"
00029 #include "FutureResponse.h"
00030
00031 namespace qpid {
00032 namespace client {
00033
00034 class FutureFactory
00035 {
00036 typedef std::vector< boost::weak_ptr<FutureCompletion> > WeakPtrSet;
00037 WeakPtrSet set;
00038
00039 public:
00040 boost::shared_ptr<FutureCompletion> createCompletion();
00041 boost::shared_ptr<FutureResponse> createResponse();
00042 void close(uint16_t code, const std::string& text);
00043 };
00044
00045 }}
00046
00047
00048 #endif