EventSigs.hh

Go to the documentation of this file.
00001 #ifndef EVENT_SIGS_HH
00002 #define EVENT_SIGS_HH
00003 
00004 /* ---------------------------------------------------------------------------
00005    Copyright (c) 2003 Clifton Labs, Inc.  All Rights Reserved.
00006    
00007    You may modify, distribute, and use the software contained in this package
00008    under the terms of the "GNU LIBRARY GENERAL PUBLIC LICENSE" version 2,
00009    June 1991. A copy of this license agreement can be found in the file
00010    "LGPL", distributed with this archive. 
00011 */
00012 
00013 #include <vector>
00014 using std::vector;
00015 
00016 class EventSigs {
00017 public:
00018   EventSigs() {
00019     reset();
00020   }
00021 
00022   void reset() {
00023     signalsWithEvents.clear();
00024   }
00025 
00026   void add(int newsig);
00027 
00028   int num(){
00029     return (int)signalsWithEvents.size();
00030   }
00031 
00032   int get( int index ){
00033     return signalsWithEvents[index];
00034   }
00035 
00036 private:
00037   vector<int> signalsWithEvents;
00038 };
00039 
00040 #endif

Generated on Fri Mar 31 11:05:08 2006 for Tyvis by  doxygen 1.4.6