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