64 lines
1.7 KiB
C++

//----------------------------------------------------------------------------
//
// Copyright (C) Intel Corporation, 2007 - 2008.
//
// File: BaseEventLog.h
//
// Contents: Definition of Abstract Class BaseEventLog used to set an Event to the log
//
// Notes:
//----------------------------------------------------------------------------
#ifndef _BASE_LOG_H
#define _BASE_LOG_H
#include <stdlib.h>
#define ERROR_EVENT 0
#define DEBUG_EVENT 1
#define WARNING_EVENT 2
class BaseEventLog
{
public:
//*********************************************
//BaseEventLog:
//Ctor to BaseEventLog object
//*********************************************
BaseEventLog(){}
//*********************************************
//~BaseEventLog:
//Dtor to BaseEventLog object
//*********************************************
virtual ~BaseEventLog(){};
//*********************************************
//LogEvent:
//Record Events for debugging.
//params:
//@categoryID - category ID
//@eventID - event ID
//*********************************************
virtual void LogEvent(unsigned short CategoryID, unsigned long EventID, unsigned long EventType) = 0;
//*********************************************
//LogEvent:
//Record Events for debugging.
//params:
//@categoryID - category ID
//@eventID - event ID
//@EventType
//@ArrayOfStrings
//@NumOfArrayStr
//@RawData
//@RawDataSize
//*********************************************
virtual void LogEvent(unsigned short CategoryID,unsigned long EventID
, unsigned long EventType,const char * ArrayOfStrings[],
unsigned int NumOfArrayStr, void * RawData=NULL, unsigned long RawDataSize=0)=0;
};
#endif //_BASE_LOG_H