/[PAMELA software]/yoda/event/EventCounter.cpp
ViewVC logotype

Diff of /yoda/event/EventCounter.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2.6 by kusanagi, Sat Jan 29 00:26:41 2005 UTC revision 2.7 by kusanagi, Wed Feb 9 22:24:33 2005 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Source: /home/cvsmanager/yoda/event/EventCounter.cpp,v $   * $Source: /home/cvsmanager/yoda/event/EventCounter.cpp,v $
3   * $Id: EventCounter.cpp,v 2.5 2005/01/11 14:58:20 kusanagi Exp $   * $Id: EventCounter.cpp,v 2.6 2005/01/29 00:26:41 kusanagi Exp $
4   * $Author: kusanagi $   * $Author: kusanagi $
5   *   *
6   * Implementation of the EventCounter class.   * Implementation of the EventCounter class.
# Line 127  void EventCounter::Increment(PacketType Line 127  void EventCounter::Increment(PacketType
127      (*counter)++;      (*counter)++;
128      oss.str("");      oss.str("");
129      oss << " Counter." <<  type->GetName() << " = " <<  (*counter);      oss << " Counter." <<  type->GetName() << " = " <<  (*counter);
130      logger->debug(oss.str().c_str());      logger->info(oss.str().c_str());
131    } else {    } else {
132      oss.str("");      oss.str("");
133      oss << "\n No counter of type  " << type->GetName().c_str();      oss << "\n No counter of type  " << type->GetName().c_str();
# Line 179  void EventCounter::PrintCounters() const Line 179  void EventCounter::PrintCounters() const
179    for(CounterMap::const_iterator p = CMap.begin(); p != CMap.end(); p++) {    for(CounterMap::const_iterator p = CMap.begin(); p != CMap.end(); p++) {
180    oss.str("");    oss.str("");
181    oss <<  " Counter." <<  (p->first)->GetName()  <<   " \t \t " <<  (*p->second);    oss <<  " Counter." <<  (p->first)->GetName()  <<   " \t \t " <<  (*p->second);
182    logger->warn(oss.str().c_str());    logger->info(oss.str().c_str());
183    }    }
184  }  }

Legend:
Removed from v.2.6  
changed lines
  Added in v.2.7

  ViewVC Help
Powered by ViewVC 1.1.23