1 |
/** @file |
/** @file |
2 |
* $Source: /home/cvspamela/yoda/event/Algorithm.cpp,v $ |
* $Source: /home/cvsmanager/yoda/event/Algorithm.cpp,v $ |
3 |
* $Id: Algorithm.cpp,v 1.7 2004/04/28 09:01:27 nagni Exp $ |
* $Id: Algorithm.cpp,v 1.1.1.1 2004/07/06 12:20:23 kusanagi Exp $ |
4 |
* $Author: nagni $ |
* $Author: kusanagi $ |
5 |
* |
* |
6 |
* Implementation of the default functions of the Algorithm class. |
* Implementation of the default functions of the Algorithm class. |
7 |
*/ |
*/ |
8 |
|
|
|
#include <log4cpp/Category.hh> |
|
9 |
#include "Algorithm.h" |
#include "Algorithm.h" |
10 |
|
#include <log4cxx/logger.h> |
11 |
using namespace pamela; |
using namespace pamela; |
12 |
|
|
13 |
static log4cpp::Category& cat = log4cpp::Category::getInstance("pamela.Algorithm"); |
static log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("pamela.Algorithm")); |
14 |
|
|
15 |
/** |
/** |
16 |
* Constructor. Builds an algorithm that processes the events of a certain |
* Constructor. Builds an algorithm that processes the events of a certain |
18 |
*/ |
*/ |
19 |
Algorithm::Algorithm(const PacketType* t, std::string name): |
Algorithm::Algorithm(const PacketType* t, std::string name): |
20 |
type(t), AlgorithmName(name) { |
type(t), AlgorithmName(name) { |
21 |
cat << log4cpp::Priority::DEBUG << "Constructor" |
logger->debug(_T("Constructor")); |
|
<< "\n " << log4cpp::CategoryStream::ENDLINE; |
|
22 |
} |
} |
23 |
|
|
24 |
ClassImp(Algorithm) |
ClassImp(Algorithm) |