--- yoda/techmodel/ForcedFECmdReader.cpp 2004/08/19 15:24:46 1.1 +++ yoda/techmodel/ForcedFECmdReader.cpp 2005/03/04 15:54:11 3.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.ForcedFECmdReader"); +static log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("pamela.techmodel.ForcedFECmdReader")); /** * Constructor. */ ForcedFECmdReader::ForcedFECmdReader(void): TechmodelAlgorithm(PacketType::ForcedFECmd, "TechmodelForcedFECmdReader") { - cat << log4cpp::Priority::DEBUG - << "Constructor " - << "\n " << log4cpp::CategoryStream::ENDLINE; + logger->debug(_T("Constructor")); forcedFECmd = new ForcedFECmdEvent(); } @@ -46,6 +44,7 @@ * event reader routines for all packet types. */ void ForcedFECmdReader::Init(PamelaRun *run) { + logger->debug(_T("Initialize")); SetInputStream(run); run->WriteSubPacket(this, &forcedFECmd, forcedFECmd->Class()); } @@ -53,7 +52,7 @@ /** * Unpack the ForcedFECmd event from an input file. */ -void ForcedFECmdReader::RunEvent(int EventNumber, long int length) { +void ForcedFECmdReader::RunEvent(int EventNumber, long int length) throw (WrongCRCException){ }