Ice 3.7 C++98 API Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Dispatcher.h
Go to the documentation of this file.
1 //
2 // Copyright (c) ZeroC, Inc. All rights reserved.
3 //
4 
5 #ifndef ICE_DISPATCHER_H
6 #define ICE_DISPATCHER_H
7 
8 #if !defined(ICE_CPP11_MAPPING) || defined(ICE_BUILDING_SRC)
9 //
10 // Part of the C++98 mapping, and "internal" definitions when building Ice
11 // with the C++11 mapping
12 //
13 
14 #include <Ice/Config.h>
15 #include <IceUtil/Shared.h>
16 #include <IceUtil/Handle.h>
17 #include <Ice/ConnectionF.h>
18 
19 namespace Ice
20 {
21 
27 class ICE_API DispatcherCall : public virtual IceUtil::Shared
28 {
29 public:
30 
31  virtual ~DispatcherCall();
32 
36  virtual void run() = 0;
37 };
38 
40 
46 class ICE_API Dispatcher : public virtual IceUtil::Shared
47 {
48 public:
49 
50  virtual ~Dispatcher();
51 
59  virtual void dispatch(const DispatcherCallPtr& call, const ConnectionPtr& connection) = 0;
60 };
61 
63 
64 }
65 
66 #endif
67 #endif
Ice::DispatcherCall::~DispatcherCall
virtual ~DispatcherCall()
ConnectionF.h
Handle.h
ICE_API
#define ICE_API
Definition: Config.h:197
Ice::Dispatcher::dispatch
virtual void dispatch(const DispatcherCallPtr &call, const ConnectionPtr &connection)=0
Called by the Ice run time when an incoming request or an AMI callback needs to be dispatched.
Shared.h
Ice::DispatcherCall
Encapsulates all the details of a request dispatch or AMI callback.
Definition: Dispatcher.h:28
Config.h
Ice::ConnectionPtr
::IceInternal::Handle< Connection > ConnectionPtr
Definition: Connection.h:763
Ice
Definition: BuiltinSequences.h:113
IceUtil::Handle
Definition: Handle.h:143
Ice::Dispatcher::~Dispatcher
virtual ~Dispatcher()
Ice::DispatcherPtr
IceUtil::Handle< Dispatcher > DispatcherPtr
Definition: Dispatcher.h:62
Ice::DispatcherCall::run
virtual void run()=0
Dispatches the call.
Ice::DispatcherCallPtr
IceUtil::Handle< DispatcherCall > DispatcherCallPtr
Definition: Dispatcher.h:39
IceUtil::Shared
Definition: Shared.h:78
Ice::Dispatcher
Base class for a dispatcher.
Definition: Dispatcher.h:47