41 lines
928 B
C++
41 lines
928 B
C++
/*********************************************************************
|
|
*
|
|
* 版权所有: Shanghai Baosight Software Co., Ltd.
|
|
*
|
|
* 概述:
|
|
|
|
* 版本历史
|
|
* 1.0 2014-08-18 jamie 增加注释
|
|
*
|
|
*********************************************************************/
|
|
|
|
#ifndef __ALARMLOG_h__
|
|
#define __ALARMLOG_h__
|
|
|
|
#include <log4cplus/LOG.h>
|
|
#include <common/AlarmDef.h>
|
|
#include <pace/AlarmWrapper.h>
|
|
|
|
class AlarmLog
|
|
{
|
|
public:
|
|
|
|
static void Init(const std::string& module);
|
|
|
|
static void Info(log4cplus::LOG& d,const std::string& almsg);
|
|
|
|
static void Warn(log4cplus::LOG& d,const std::string& almsg);
|
|
|
|
static void Error(log4cplus::LOG& d,const std::string& almsg);
|
|
|
|
//AlarmLog& Info(log4cplus::LOG& d);
|
|
|
|
//AlarmLog& operator <<(const std::string& almsg);
|
|
|
|
private:
|
|
static const std::string EnCodeing(const std::string& almsg);
|
|
//static string almsg;
|
|
static iPlature::AlarmWrapper* p_alarm;
|
|
};
|
|
#endif
|