00001 // -*- Mode: C++; -*- 00002 // Package : omniEvents 00003 // oep_global.h Created : 1/10/99 00004 // Author : Paul Nader (pwn) 00005 // 00006 // Copyright (C) 1998 Paul Nader. 00007 // 00008 // This file is part of the omniEvents application. 00009 // 00010 // omniEvents is free software; you can redistribute it and/or 00011 // modify it under the terms of the GNU Lesser General Public 00012 // License as published by the Free Software Foundation; either 00013 // version 2.1 of the License, or (at your option) any later version. 00014 // 00015 // omniEvents is distributed in the hope that it will be useful, 00016 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 // Lesser General Public License for more details. 00019 // 00020 // You should have received a copy of the GNU Lesser General Public 00021 // License along with this library; if not, write to the Free Software 00022 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00023 // 00024 // Description: 00025 // 00026 00027 /* 00028 $Log: oep_global.h,v $ 00029 Revision 1.2 2003/11/03 22:58:21 alextingle 00030 Updated License to GNU Lesser General Public v2.1 00031 00032 Revision 1.1.1.1 2002/09/25 19:00:32 shamus13 00033 Import of OmniEvents source tree from release 2.1.1 00034 00035 Revision 1.2 2000/08/30 04:16:57 naderp 00036 omniORB 3.0.1 Port. 00037 Added forward declaration for OEP_cfps. 00038 00039 Revision 1.1 2000/03/06 13:05:23 naderp 00040 Removed EventChannelFactory dependency on Naming Service. 00041 Moved port from COMMON to channelFactory. 00042 00043 Revision 1.0 1999/11/01 16:48:14 naderp 00044 Initial revision 00045 00046 */ 00047 00048 #ifndef __OEP_GLOBAL_H_ 00049 #define __OEP_GLOBAL_H_ 00050 00051 class OEP_cfps; 00052 00053 class OEP_GlobalData 00054 { 00055 00056 public: 00057 // Constructor 00058 OEP_GlobalData(); 00059 00060 // Destructor 00061 virtual ~OEP_GlobalData() {}; 00062 00063 // Operations 00064 virtual long getLineNo(); // Get current line number 00065 virtual void setLineNo(long); // Set current line number 00066 virtual void incLineNo(); // Increment line number 00067 virtual void setFactory(OEP_cfps *factory); // Set factory 00068 virtual OEP_cfps * getFactory(); // Get factory 00069 00070 private: 00071 // Data 00072 long lineNo; // line # 00073 OEP_cfps *factory; 00074 }; 00075 00076 extern OEP_GlobalData *oep_global; 00077 00078 #endif /* __OEP_GLOBAL_H_ */ 00079