1 |
/** @file |
/** @file |
2 |
* $Source: /home/cvspamela/yoda/event/PscuHeader.h,v $ |
* $Source: /home/cvsmanager/yoda/event/PscuHeader.h,v $ |
3 |
* $Id: PscuHeader.h,v 1.7 2004/04/28 09:01:27 nagni Exp $ |
* $Id: PscuHeader.h,v 1.1.1.1 2004/07/06 12:20:23 kusanagi Exp $ |
4 |
* $Author: nagni $ |
* $Author: kusanagi $ |
5 |
* |
* |
6 |
* Header file for the PscuHeader class. |
* Header file for the PscuHeader class. |
7 |
*/ |
*/ |
28 |
UINT32 OrbitalTime; /**< Raw Orbital time */ |
UINT32 OrbitalTime; /**< Raw Orbital time */ |
29 |
UINT32 PacketLenght; |
UINT32 PacketLenght; |
30 |
UINT8 CRC; /**< PSCU Header Checksum */ |
UINT8 CRC; /**< PSCU Header Checksum */ |
31 |
|
|
32 |
|
/* This parameter represent the offset of the header relative to the begin |
33 |
|
* of the file it has been extracted. It's purpose is to |
34 |
|
* check whenever the CPU (for error) store the same packet more than one time. |
35 |
|
* It's not clear if it will be mantained or not in the definitive release. |
36 |
|
*/ |
37 |
|
UINT32 FileOffset; |
38 |
public: |
public: |
39 |
PscuHeader(); |
PscuHeader(); |
40 |
virtual ~PscuHeader(); |
virtual ~PscuHeader(); |
53 |
unsigned char GetCRC(void) const { return CRC; } |
unsigned char GetCRC(void) const { return CRC; } |
54 |
/** Get the packet length for this packet. */ |
/** Get the packet length for this packet. */ |
55 |
int GetPacketLenght(void) const { return PacketLenght; } |
int GetPacketLenght(void) const { return PacketLenght; } |
56 |
|
/** Get the offset of the packet relative to the begin of the raw file. */ |
57 |
|
int GetFileOffset(void) const { return FileOffset; } |
58 |
|
|
59 |
/** Set the orbital time. Intended to use by the raw reader. */ |
/** Set the orbital time. Intended to use by the raw reader. */ |
60 |
void SetHeader(int var) { Header = var; } |
void SetHeader(int var) { Header = var; } |
68 |
void SetPacketLenght(int var) { PacketLenght = var; } |
void SetPacketLenght(int var) { PacketLenght = var; } |
69 |
/** Set the packet length. Intended to use by the raw reader. */ |
/** Set the packet length. Intended to use by the raw reader. */ |
70 |
void SetCRC(short var) { CRC = var; } |
void SetCRC(short var) { CRC = var; } |
71 |
|
/** Get the offset of the packet relative to the begin of the raw file. */ |
72 |
|
int SetFileOffset(int var) { FileOffset = var; } |
73 |
ClassDef(PscuHeader, 1) |
ClassDef(PscuHeader, 1) |
74 |
|
|
75 |
}; |
}; |
76 |
} |
} |
77 |
|
|