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 1.2 2004/09/21 20:24:33 kusanagi Exp $ |
4 |
* $Author: nagni $ |
* $Author: kusanagi $ |
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 LoggerPtr logger = 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 1.2 2004/09/21 20:24:33 kusanagi 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 |
/** |
/** |