--- yoda/techmodel/InitHeaderReader.cpp 2004/08/19 15:24:46 1.1 +++ yoda/techmodel/InitHeaderReader.cpp 2004/09/21 20:50:54 2.0 @@ -5,7 +5,7 @@ #define UINT unsigned int #define BYTE unsigned char #include -#include +#include extern "C" { #include #include "CRC.h" @@ -20,16 +20,14 @@ using namespace pamela; using namespace pamela::techmodel; -static log4cpp::Category& cat = log4cpp::Category::getInstance("pamela.techmodel.InitHeaderReader"); +static log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("pamela.techmodel.InitHeaderReader")); /** * Constructor. */ InitHeaderReader::InitHeaderReader(void): TechmodelAlgorithm(PacketType::InitHeader, "TechmodelInitHeaderReader") { - cat << log4cpp::Priority::DEBUG - << "Constructor " - << "\n " << log4cpp::CategoryStream::ENDLINE; + logger->debug(_T("Constructor")); initHeader = new InitHeaderEvent(); } @@ -38,7 +36,7 @@ */ std::string InitHeaderReader::GetVersionInfo(void) const { return - "$Header: /home/cvsmanager/yoda/techmodel/InitHeaderReader.cpp,v 1.1.1.1 2004/07/06 12:20:23 kusanagi Exp $\n"; + "$Header: /home/cvsmanager/yoda/techmodel/InitHeaderReader.cpp,v 1.2 2004/09/21 20:24:33 kusanagi Exp $\n"; } /** @@ -46,6 +44,7 @@ * event reader routines for all packet types. */ void InitHeaderReader::Init(PamelaRun *run) { + logger->debug(_T("Initialize")); SetInputStream(run); run->WriteSubPacket(this, &initHeader, initHeader->Class()); } @@ -56,5 +55,6 @@ void InitHeaderReader::RunEvent(int EventNumber, long int length) { + }