1 |
mocchiut |
1.1 |
/** @file |
2 |
|
|
* $Source: /repository/PamOffLineSW/techmodel/PscuReader.cpp,v $ |
3 |
|
|
* $Id: PscuReader.cpp,v 1.4 2008-03-04 18:09:30 messineo Exp $ |
4 |
|
|
* $Author: messineo $ |
5 |
|
|
* |
6 |
|
|
* Implementation of the OrbitalReader class. |
7 |
|
|
*/ |
8 |
|
|
|
9 |
|
|
#include <string> |
10 |
|
|
//#include <log4cxx/logger.h> |
11 |
|
|
|
12 |
|
|
#include "ReaderAlgorithms.h" |
13 |
|
|
|
14 |
|
|
using namespace pamela; |
15 |
|
|
using namespace pamela::techmodel; |
16 |
|
|
|
17 |
|
|
|
18 |
|
|
/** |
19 |
|
|
* Constructor. |
20 |
|
|
*/ |
21 |
|
|
PscuReader::PscuReader(void): |
22 |
|
|
TechmodelAlgorithm(PacketType::Pscu, "TechmodelPscuReader") { |
23 |
|
|
Pscu = new PscuEvent(); |
24 |
|
|
} |
25 |
|
|
|
26 |
|
|
/** |
27 |
|
|
* Get a string with the version info of the algorithm. |
28 |
|
|
*/ |
29 |
|
|
std::string PscuReader::GetVersionInfo(void) const { |
30 |
|
|
return |
31 |
|
|
"$Header: /repository/PamOffLineSW/techmodel/PscuReader.cpp,v 1.4 2008-03-04 18:09:30 messineo Exp $\n"; |
32 |
|
|
} |
33 |
|
|
|
34 |
|
|
/** |
35 |
|
|
* Initialize the algorithm with a special run. This will initialize the |
36 |
|
|
* event reader routines for all packet types. |
37 |
|
|
*/ |
38 |
|
|
void PscuReader::Init(PamelaRun *run) { |
39 |
|
|
run->WriteSubPacket(this, &Pscu, Pscu->Class()); |
40 |
|
|
} |
41 |
|
|
|
42 |
|
|
/** |
43 |
|
|
* Unpack the orbital event |
44 |
|
|
*/ |
45 |
|
|
void PscuReader::PKT_RunEvent(char* subData, long int length) throw (WrongCRCException){ |
46 |
|
|
// First step: unpack the event into the event class. |
47 |
|
|
} |
48 |
|
|
|