Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

oep_global.cc

Go to the documentation of this file.
00001 // -*- Mode: C++; -*-
00002 //                            Package   : omniEvents
00003 // oep_global.cc              Created   : 1/4/98
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.cc,v $
00029   Revision 1.2  2003/11/03 22:25:14  alextingle
00030   Updated License to GNU Lesser General Public v2.1
00031 
00032   Revision 1.1.1.1  2002/09/25 19:00:29  shamus13
00033   Import of OmniEvents source tree from release 2.1.1
00034 
00035   Revision 1.1  2000/03/06 13:12:59  naderp
00036   Added port data member and accessors.
00037 
00038   Revision 1.0  1999/11/01 16:29:25  naderp
00039   Initial revision
00040 
00041 */
00042 
00043 #include "oep_global.h"
00044 #include "oep_types.h"
00045 
00046 OEP_GlobalData* oep_global;
00047 
00048 OEP_GlobalData::OEP_GlobalData()
00049    : lineNo(0),
00050      factory(NULL)
00051 {
00052   // empty
00053 } 
00054 
00055 void
00056 OEP_GlobalData::setLineNo(long n)
00057 {
00058   lineNo = n;
00059 }
00060 
00061 long
00062 OEP_GlobalData::getLineNo()
00063 {
00064   return lineNo;
00065 }
00066 
00067 void
00068 OEP_GlobalData::incLineNo()
00069 {
00070   lineNo++;
00071 }
00072 
00073 void
00074 OEP_GlobalData::setFactory(OEP_cfps *f)
00075 {
00076   if (factory != NULL)
00077   {
00078     delete factory;
00079   }
00080 
00081   factory = f;
00082 }
00083 
00084 OEP_cfps *
00085 OEP_GlobalData::getFactory()
00086 {
00087   return factory;
00088 }

Generated on Fri Dec 12 10:53:02 2003 for OmniEvents by doxygen1.2.15