Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

Callback.h

Go to the documentation of this file.
00001 //                            Package   : omniEvents
00002 // Callback.h                 Created   : 2004/07/10
00003 //                            Author    : Alex Tingle
00004 //
00005 //    Copyright (C) 2004-2005 Alex Tingle.
00006 //
00007 //    This file is part of the omniEvents application.
00008 //
00009 //    omniEvents is free software; you can redistribute it and/or
00010 //    modify it under the terms of the GNU Lesser General Public
00011 //    License as published by the Free Software Foundation; either
00012 //    version 2.1 of the License, or (at your option) any later version.
00013 //
00014 //    omniEvents is distributed in the hope that it will be useful,
00015 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017 //    Lesser General Public License for more details.
00018 //
00019 //    You should have received a copy of the GNU Lesser General Public
00020 //    License along with this library; if not, write to the Free Software
00021 //    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00022 //
00023 
00024 #ifndef OMNIEVENTS__CALLBACK_H
00025 #define OMNIEVENTS__CALLBACK_H
00026 
00027 #ifdef HAVE_CONFIG_H
00028 #  include "config.h"
00029 #endif
00030 
00031 #ifdef HAVE_OMNIORB3
00032 #  include <omniORB3/CORBA.h>
00033 #endif
00034 
00035 #ifdef HAVE_OMNIORB4
00036 #  include <omniORB4/CORBA.h>
00037 #endif
00038 
00039 namespace OmniEvents {
00040 
00043 class Callback:
00044   public virtual PortableServer::ServantBase,
00045   public PortableServer::RefCountServantBase
00046 {
00047 public:
00050   virtual void callback(CORBA::Request_ptr req) =0;
00051 
00052   Callback():PortableServer::RefCountServantBase()
00053     {}
00054   virtual ~Callback()
00055     {}
00056 };
00057 
00058 }; // end namespace OmniEvents
00059 
00060 #endif // OMNIEVENTS__CALLBACK_H

Generated on Fri Aug 26 20:56:13 2005 for OmniEvents by  doxygen 1.4.3-20050530