--- yoda/techmodel/AcInitReader.cpp 2004/08/19 15:24:46 1.1 +++ yoda/techmodel/AcInitReader.cpp 2004/12/03 22:08:00 2.1 @@ -5,31 +5,27 @@ #define UINT unsigned int #define BYTE unsigned char #include -#include +#include extern "C" { -#include -#include "CRC.h" + #include "CRC.h" } #include #include "stdio.h" #include "ReaderAlgorithms.h" -#include "event/AcInitEvent.h" using namespace pamela; using namespace pamela::techmodel; -static log4cpp::Category& cat = log4cpp::Category::getInstance("pamela.techmodel.AcInitReader"); +static log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("pamela.techmodel.AcInitReader")); /** * Constructor. */ AcInitReader::AcInitReader(void): TechmodelAlgorithm(PacketType::AcInit, "TechmodelAcInitReader") { - cat << log4cpp::Priority::DEBUG - << "Constructor " - << "\n " << log4cpp::CategoryStream::ENDLINE; + logger->debug(_T("Constructor")); acInit = new AcInitEvent(); } @@ -46,6 +42,7 @@ * event reader routines for all packet types. */ void AcInitReader::Init(PamelaRun *run) { + logger->debug(_T("Initialize")); SetInputStream(run); run->WriteSubPacket(this, &acInit, acInit->Class()); } @@ -53,7 +50,7 @@ /** * Unpack the AcInit event from an input file. */ -void AcInitReader::RunEvent(int EventNumber, long int length) { +void AcInitReader::RunEvent(int EventNumber, long int length) throw (WrongCRCException){ }