Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation
Completion.h
Go to the documentation of this file.
1 #ifndef QPID_CLIENT_COMPLETION_H
2 #define QPID_CLIENT_COMPLETION_H
3 
4 /*
5  *
6  * Licensed to the Apache Software Foundation (ASF) under one
7  * or more contributor license agreements. See the NOTICE file
8  * distributed with this work for additional information
9  * regarding copyright ownership. The ASF licenses this file
10  * to you under the Apache License, Version 2.0 (the
11  * "License"); you may not use this file except in compliance
12  * with the License. You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing,
17  * software distributed under the License is distributed on an
18  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19  * KIND, either express or implied. See the License for the
20  * specific language governing permissions and limitations
21  * under the License.
22  *
23  */
24 
25 #include "qpid/client/Handle.h"
27 #include <string>
28 
29 namespace qpid {
30 namespace client {
31 
32 class CompletionImpl;
33 template <class T> class PrivateImplRef;
34 
44 class QPID_CLIENT_CLASS_EXTERN Completion : public Handle<CompletionImpl>
45 {
46 public:
47  QPID_CLIENT_EXTERN Completion(CompletionImpl* = 0);
48  QPID_CLIENT_EXTERN Completion(const Completion&);
49  QPID_CLIENT_EXTERN ~Completion();
50  QPID_CLIENT_EXTERN Completion& operator=(const Completion&);
51 
57  QPID_CLIENT_EXTERN void wait();
58  QPID_CLIENT_EXTERN bool isComplete();
59 
60  protected:
61  QPID_CLIENT_EXTERN std::string getResult();
62 
63  private:
64  typedef CompletionImpl Impl;
65  friend class PrivateImplRef<Completion>;
66 };
67 
68 }}
69 
70 
71 #endif

Qpid C++ API Reference
Generated on Thu Nov 15 2012 for Qpid C++ Client API by doxygen 1.8.1.2