Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ResponseSender.h
Go to the documentation of this file.
1 /******************************************************************************
2 *
3 * Copyright Saab AB, 2005-2013 (http://safir.sourceforge.net)
4 *
5 * Created by: Joel Ottosson / stjoot
6 *
7 *******************************************************************************
8 *
9 * This file is part of Safir SDK Core.
10 *
11 * Safir SDK Core is free software: you can redistribute it and/or modify
12 * it under the terms of version 3 of the GNU General Public License as
13 * published by the Free Software Foundation.
14 *
15 * Safir SDK Core is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with Safir SDK Core. If not, see <http://www.gnu.org/licenses/>.
22 *
23 ******************************************************************************/
24 #ifndef _SAFIR_DOB_RESPONSESENDER_H
25 #define _SAFIR_DOB_RESPONSESENDER_H
26 
28 #include <boost/shared_ptr.hpp>
29 #include <boost/noncopyable.hpp>
30 #include <Safir/Dob/Response.h>
31 
32 namespace Safir
33 {
34 namespace Dob
35 {
36 #ifdef _MSC_VER
37 #pragma warning(push)
38 #pragma warning(disable: 4275)
39 #endif
40 
41 
54  private boost::noncopyable
55  {
56  public:
65  virtual ~ResponseSender() {}
66 
77  virtual void Send(const Safir::Dob::ResponsePtr & response) = 0;
78 
85  virtual bool IsDone() = 0;
86 
97  virtual void Discard() = 0;
98 
99  };
100 #ifdef _MSC_VER
101 #pragma warning(pop)
102 #endif
103 
104  //-------------------------------
105  // Smart pointer to ResponseSender
106  //-------------------------------
107  typedef boost::shared_ptr<ResponseSender> ResponseSenderPtr;
108 }
109 }
110 
111 #endif
boost::shared_ptr< ResponseSender > ResponseSenderPtr
Definition: ResponseSender.h:107
virtual ~ResponseSender()
Destructor.
Definition: ResponseSender.h:65
boost::shared_ptr< Response > ResponsePtr
Definition: Response.h:32
#define DOSE_CPP_API
Definition: DoseCppExportDefs.h:33
Class used for responding to received requests.
Definition: ResponseSender.h:53