1 |
/** @file |
/** @file |
2 |
* $Source: /home/cvspamela/yoda/techmodel/PscuReader.cpp,v $ |
* $Source: /home/cvsmanager/yoda/techmodel/PscuReader.cpp,v $ |
3 |
* $Id: PscuReader.cpp,v 1.6 2004/03/16 10:18:28 nagni Exp $ |
* $Id: PscuReader.cpp,v 5.0 2005/08/29 09:46:13 Maurizio Nagni Exp $ |
4 |
* $Author: nagni $ |
* $Author: Maurizio Nagni $ |
5 |
* |
* |
6 |
* Implementation of the OrbitalReader class. |
* Implementation of the OrbitalReader class. |
7 |
*/ |
*/ |
8 |
|
|
9 |
#include <string> |
#include <string> |
10 |
#include <log4cpp/Category.hh> |
#include <log4cxx/logger.h> |
11 |
|
|
12 |
#include "ReaderAlgorithms.h" |
#include "ReaderAlgorithms.h" |
13 |
|
|
14 |
using namespace pamela; |
using namespace pamela; |
15 |
using namespace pamela::techmodel; |
using namespace pamela::techmodel; |
16 |
|
|
17 |
static log4cpp::Category& cat = log4cpp::Category::getInstance("pamela.techmodel.PscuReader"); |
static log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("pamela.techmodel.PscuReader")); |
18 |
|
|
19 |
/** |
/** |
20 |
* Constructor. |
* Constructor. |
21 |
*/ |
*/ |
22 |
PscuReader::PscuReader(void): |
PscuReader::PscuReader(void): |
23 |
TechmodelAlgorithm(PacketType::Pscu, "TechmodelPscuReader") { |
TechmodelAlgorithm(PacketType::Pscu, "TechmodelPscuReader") { |
24 |
cat.debug("Constructor"); |
logger->debug(_T("Constructor")); |
25 |
Pscu = new PscuEvent(); |
Pscu = new PscuEvent(); |
26 |
} |
} |
27 |
|
|
30 |
*/ |
*/ |
31 |
std::string PscuReader::GetVersionInfo(void) const { |
std::string PscuReader::GetVersionInfo(void) const { |
32 |
return |
return |
33 |
"$Header: /home/cvspamela/yoda/techmodel/PscuReader.cpp,v 1.6 2004/03/16 10:18:28 nagni Exp $\n"; |
"$Header: /home/cvsmanager/yoda/techmodel/PscuReader.cpp,v 5.0 2005/08/29 09:46:13 Maurizio Nagni Exp $\n"; |
34 |
} |
} |
35 |
|
|
36 |
/** |
/** |
40 |
void PscuReader::Init(PamelaRun *run) { |
void PscuReader::Init(PamelaRun *run) { |
41 |
SetInputStream(run); |
SetInputStream(run); |
42 |
run->WriteSubPacket(this, &Pscu, Pscu->Class()); |
run->WriteSubPacket(this, &Pscu, Pscu->Class()); |
43 |
|
logger->debug(_T("Initialize")); |
44 |
} |
} |
45 |
|
|
46 |
/** |
/** |
47 |
* Unpack the orbital event from an input file. |
* Unpack the orbital event from an input file. |
48 |
*/ |
*/ |
49 |
void PscuReader::RunEvent(int EventNumber, long int length) { |
void PscuReader::RunEvent(int EventNumber, long int length) throw (WrongCRCException){ |
50 |
// First step: unpack the event into the event class. |
// First step: unpack the event into the event class. |
51 |
} |
} |