OmniEvents
Callback.h
Go to the documentation of this file.
1
// Package : omniEvents
2
// Callback.h Created : 2004/07/10
3
// Author : Alex Tingle
4
//
5
// Copyright (C) 2004-2005 Alex Tingle.
6
//
7
// This file is part of the omniEvents application.
8
//
9
// omniEvents is free software; you can redistribute it and/or
10
// modify it under the terms of the GNU Lesser General Public
11
// License as published by the Free Software Foundation; either
12
// version 2.1 of the License, or (at your option) any later version.
13
//
14
// omniEvents is distributed in the hope that it will be useful,
15
// but WITHOUT ANY WARRANTY; without even the implied warranty of
16
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
// Lesser General Public License for more details.
18
//
19
// You should have received a copy of the GNU Lesser General Public
20
// License along with this library; if not, write to the Free Software
21
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
//
23
24
#ifndef OMNIEVENTS__CALLBACK_H
25
#define OMNIEVENTS__CALLBACK_H
26
27
#ifdef HAVE_CONFIG_H
28
# include "
config.h
"
29
#endif
30
31
#ifdef HAVE_OMNIORB3
32
# include <omniORB3/CORBA.h>
33
#endif
34
35
#ifdef HAVE_OMNIORB4
36
# include <omniORB4/CORBA.h>
37
#endif
38
39
namespace
OmniEvents
{
40
43
class
Callback
:
44
public
virtual
PortableServer::ServantBase,
45
public
PortableServer::RefCountServantBase
46
{
47
public
:
50
virtual
void
callback
(CORBA::Request_ptr req) =0;
51
52
Callback
():PortableServer::RefCountServantBase()
53
{}
54
virtual
~Callback
()
55
{}
56
};
57
58
};
// end namespace OmniEvents
59
60
#endif
// OMNIEVENTS__CALLBACK_H
config.h
OmniEvents
Definition
Callback.h:39
OmniEvents::Callback
Interface for classes that wish to receive callbacks from deferred requests.
Definition
Callback.h:46
OmniEvents::Callback::callback
virtual void callback(CORBA::Request_ptr req)=0
Invoked when the CORBA::Request has returned.
OmniEvents::Callback::~Callback
virtual ~Callback()
Definition
Callback.h:54
OmniEvents::Callback::Callback
Callback()
Definition
Callback.h:52
src
Callback.h
Generated by
1.9.8