Ice 3.7 C++98 API Reference
Loading...
Searching...
No Matches
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
19namespace Ice
20{
21
28{
29public:
30
31 virtual ~DispatcherCall();
32
36 virtual void run() = 0;
37};
38
40
46class ICE_API Dispatcher : public virtual IceUtil::Shared
47{
48public:
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
#define ICE_API
Definition Config.h:197
Definition Handle.h:143
Definition Shared.h:78
Encapsulates all the details of a request dispatch or AMI callback.
Definition Dispatcher.h:28
virtual void run()=0
Dispatches the call.
virtual ~DispatcherCall()
Base class for a dispatcher.
Definition Dispatcher.h:47
virtual ~Dispatcher()
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.
Definition BuiltinSequences.h:113
IceUtil::Handle< Dispatcher > DispatcherPtr
Definition Dispatcher.h:62
::IceInternal::Handle< Connection > ConnectionPtr
Definition Connection.h:767
IceUtil::Handle< DispatcherCall > DispatcherCallPtr
Definition Dispatcher.h:39