CMS 3D CMS Logo

RooGKCounter.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
3 #ifndef Roo_GKCounter
4 #define Roo_GKCounter
5 
6 #include <iostream>
7 #include <string>
8 #include <ctime>
9 
10 class RooGKCounter {
11 public:
12  RooGKCounter();
13  RooGKCounter(const char* message);
14  RooGKCounter(unsigned long int theFirst, unsigned long int theDivider);
15  ~RooGKCounter();
16 
17  void setCounter(unsigned long int);
18  void setDivider(unsigned int);
19  void setPrintCount(bool _printCount);
20  void setNewLine(bool newLine);
21  void setMessage(const char*);
22  void count(void);
23  unsigned long int getCount(void);
24  void increment(long int _incr);
25 
26 private:
27  unsigned long int _count;
28  unsigned long int _firstCount;
29  unsigned int _divider;
30  bool printCount;
33  bool _newLine;
34 
36 
37  void init(void);
38 
39  //ClassDef(RooGKCounter,1)
40 };
41 
42 #endif
RooGKCounter::firstCountEntry
bool firstCountEntry
Definition: RooGKCounter.h:31
RooGKCounter::printCount
bool printCount
Definition: RooGKCounter.h:30
RooGKCounter::increment
void increment(long int _incr)
Definition: RooGKCounter.cc:97
RooGKCounter::firstTickTime
time_t firstTickTime
Definition: RooGKCounter.h:35
RooGKCounter::_message
std::string _message
Definition: RooGKCounter.h:32
RooGKCounter::init
void init(void)
Definition: RooGKCounter.cc:39
RooGKCounter::setMessage
void setMessage(const char *)
Definition: RooGKCounter.cc:37
RooGKCounter::lastTickTime
time_t lastTickTime
Definition: RooGKCounter.h:35
RooGKCounter::lastPrintTime
time_t lastPrintTime
Definition: RooGKCounter.h:35
RooGKCounter
Definition: RooGKCounter.h:10
RooGKCounter::_divider
unsigned int _divider
Definition: RooGKCounter.h:29
RooGKCounter::initTime
time_t initTime
Definition: RooGKCounter.h:35
RooGKCounter::setDivider
void setDivider(unsigned int)
Definition: RooGKCounter.cc:31
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
RooGKCounter::_newLine
bool _newLine
Definition: RooGKCounter.h:33
RooGKCounter::setCounter
void setCounter(unsigned long int)
Definition: RooGKCounter.cc:29
RooGKCounter::getCount
unsigned long int getCount(void)
Definition: RooGKCounter.cc:95
RooGKCounter::setPrintCount
void setPrintCount(bool _printCount)
Definition: RooGKCounter.cc:33
RooGKCounter::setNewLine
void setNewLine(bool newLine)
Definition: RooGKCounter.cc:35
RooGKCounter::count
void count(void)
Definition: RooGKCounter.cc:54
RooGKCounter::_firstCount
unsigned long int _firstCount
Definition: RooGKCounter.h:28
RooGKCounter::_count
unsigned long int _count
Definition: RooGKCounter.h:27
RooGKCounter::RooGKCounter
RooGKCounter()
Definition: RooGKCounter.cc:12
RooGKCounter::~RooGKCounter
~RooGKCounter()
Definition: RooGKCounter.cc:99