| 1 |
/** @file |
/** @file |
| 2 |
* $Source: /home/cvsmanager/yoda/event/log/LogRecord.h,v $ |
* $Source: /home/cvsmanager/yoda/event/log/LogRecord.h,v $ |
| 3 |
* $Id: LogRecord.h,v 2.0 2004/09/21 20:50:09 kusanagi Exp $ |
* $Id: LogRecord.h,v 4.1 2005/05/07 08:48:49 kusanagi Exp $ |
| 4 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
| 5 |
* |
* |
| 6 |
* Header file for the LogRecord class. |
* Header file for the LogRecord class. |
| 8 |
#ifndef LOG_RECORD_H |
#ifndef LOG_RECORD_H |
| 9 |
#define LOG_RECORD_H |
#define LOG_RECORD_H |
| 10 |
|
|
| 11 |
#define UINT32 unsigned int |
#include "event/SubPacket.h" |
|
#define UINT16 unsigned short |
|
|
#define UINT8 unsigned char |
|
|
|
|
|
#include <TObject.h> |
|
|
|
|
|
|
|
| 12 |
namespace pamela { |
namespace pamela { |
| 13 |
/** |
/** |
| 14 |
* LogBlock data Wrapper |
* LogRecord data Wrapper |
| 15 |
|
* |
| 16 |
|
* Each pamela::LogRecord represents a PAMELA CPU software?s error or other software conditions. |
| 17 |
|
* The pair (FILE_ID,LINE) identifies a unique error/log trace that can be found in all source code: |
| 18 |
|
* this gives the maximum of the information with the minimum of size |
| 19 |
|
* (this information also goes in part to the history area). |
| 20 |
*/ |
*/ |
| 21 |
class LogRecord: public TObject { |
class LogRecord: public TObject { |
| 22 |
private: |
private: |
| 23 |
|
|
| 24 |
public: |
public: |
| 25 |
/** |
/** |
| 26 |
* Get the run name according to a certain run number. |
* The On-Board-Time of the Record. |
| 27 |
*/ |
*/ |
| 28 |
UINT32 RECORD_OBT; |
UINT32 RECORD_OBT; |
| 29 |
|
|
| 30 |
|
/** |
| 31 |
|
* The Type of the Record. |
| 32 |
|
* |
| 33 |
|
* BITMASK description: <BR> |
| 34 |
|
* #define LU_WARNING (1<<0) <BR> |
| 35 |
|
* #define LU_CRITICAL (1<<1) <BR> |
| 36 |
|
* #define LU_INTERNAL (1<<2) <BR> |
| 37 |
|
* #define LU_FATAL (1<<3) <BR> |
| 38 |
|
* #define LU_NORMAL_TRACE (1<<4) <BR> |
| 39 |
|
* #define LU_DEBUG_TRACE (1<<5) <BR> |
| 40 |
|
* #define LU_ALARM (1<<6) <BR> |
| 41 |
|
* #define LU_HA (1<<7) <BR> |
| 42 |
|
* <B> The first seven bits are mutually esclusive. </B> |
| 43 |
|
* Bit 8 indicates if this log is also recorded in the history area. |
| 44 |
|
*/ |
| 45 |
UINT8 MASKTYPE; |
UINT8 MASKTYPE; |
| 46 |
|
|
| 47 |
|
/** |
| 48 |
|
* The FileId of the record. |
| 49 |
|
* Identification code of a specific PAMELA CPU software ".c" file in which this error/log trace occurred. |
| 50 |
|
* Each source file is identified by a unique number in the range [0,255]. |
| 51 |
|
*/ |
| 52 |
UINT8 FILE_ID; |
UINT8 FILE_ID; |
| 53 |
|
|
| 54 |
|
/** |
| 55 |
|
* The Line_No of te record. |
| 56 |
|
* Identify the line number inside the file code referred by the FILE_ID parameter. |
| 57 |
|
*/ |
| 58 |
UINT16 LINE_NO; |
UINT16 LINE_NO; |
| 59 |
|
|
| 60 |
|
/** |
| 61 |
|
* Supplementary field which depends on the related log trace. |
| 62 |
|
*/ |
| 63 |
UINT32 INFO1; |
UINT32 INFO1; |
| 64 |
|
|
| 65 |
LogRecord(void); |
LogRecord(void); |