--- yoda/techmodel/InitHeaderReader.cpp 2004/08/19 15:24:46 1.1 +++ yoda/techmodel/InitHeaderReader.cpp 2005/03/06 04:33:02 4.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 3.0 2005/03/04 15:54:11 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()); } @@ -53,7 +52,8 @@ /** * Unpack the InitHeader event from an input file. */ -void InitHeaderReader::RunEvent(int EventNumber, long int length) { +void InitHeaderReader::RunEvent(int EventNumber, long int length) throw (WrongCRCException){ + }