57 lines
1.2 KiB
C++
57 lines
1.2 KiB
C++
/*********************************************************************
|
|
*
|
|
* 文 件: GetConfig.h 读取定时任务配置
|
|
*
|
|
* 版权所有: Shanghai Baosight Software Co., Ltd.
|
|
*
|
|
* 概述:
|
|
* :
|
|
* :
|
|
*
|
|
* 版本历史
|
|
* 1.0 2010-09-01 echo_li 增加注释
|
|
*
|
|
*********************************************************************/
|
|
|
|
#ifndef H_GETCONFIG_H
|
|
#define H_GETCONFIG_H
|
|
#include <log4cplus/LOG.h>
|
|
#include <Ice/BuiltinSequences.h>
|
|
|
|
using namespace baosight;
|
|
using namespace log4cplus;
|
|
|
|
struct DataBlock{
|
|
char TaskName[48];
|
|
int SwitchFact;
|
|
unsigned int DelayTime;
|
|
int LenBuf;
|
|
int TimeMethod;
|
|
};
|
|
|
|
/*********************************************************************
|
|
* 类 名: GetConfig
|
|
* 版权所有: Shanghai Baosight Software Co., Ltd.
|
|
* 类 职 责:
|
|
* :
|
|
* :
|
|
* 版本历史
|
|
* 1.0 2010-09-01 echo_li 增加注释
|
|
*
|
|
*********************************************************************/
|
|
class GetConfig
|
|
{
|
|
public:
|
|
GetConfig();
|
|
virtual ~GetConfig();
|
|
vector<Ice::ByteSeq> readcfg();
|
|
private:
|
|
struct DataBlock db;
|
|
char *path;
|
|
char filename[256];
|
|
std::vector<Ice::ByteSeq> vctseq;
|
|
std::vector<unsigned char> seq;
|
|
};
|
|
|
|
#endif
|