Ice 3.7 C++11 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
27class ICE_API DispatcherCall : public virtual IceUtil::Shared
28{
29public:
30
31 virtual ~DispatcherCall();
32
36 virtual void run() = 0;
37};
38
39typedef IceUtil::Handle<DispatcherCall> DispatcherCallPtr;
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
62typedef IceUtil::Handle<Dispatcher> DispatcherPtr;
63
64}
65
66#endif
67#endif
#define ICE_API
Definition Config.h:197
Definition BuiltinSequences.h:56