首页 > 中学考试杂题 > 题目详情
求c高手帮忙,帮我分析一下下面的程序段,最好是每一行的含义都解释一下,先给20分,回答得好再加!#ifndef DFS
题目内容:
求c高手帮忙,帮我分析一下下面的程序段,最好是每一行的含义都解释一下,先给20分,回答得好再加!
#ifndef _DFS_BILLSVR_WORKER_H_
#define _DFS_BILLSVR_WORKER_H_
#include
#include
#include
#include
#include
#include
#include
#include
// billing functions declaration
void printAttributes(struct ipdrStringArray * Schema,
struct ipdrStringArray * Attributes);
ipdrStatus handleRecord(void *CD, struct ipdrRecord * Rec);
class dfsWorker
{
public:
dfsWorker();
~dfsWorker();
int dfInit(dfsModuleInitStruct *init);
// monitor the Dispatcher processes, called from outside
int dfLoopBody();
/* 3 choices for EventHandle output:
1: no return;
2: put into internal Cache for later answer
3: put into the direct answer queue */
int dfEventHandler(dfEventStruct *event);
private:
ipdrDocumentHandler *m_DocHandler;
};
#endif
求c高手帮忙,帮我分析一下下面的程序段,最好是每一行的含义都解释一下,先给20分,回答得好再加!
#ifndef _DFS_BILLSVR_WORKER_H_
#define _DFS_BILLSVR_WORKER_H_
#include
#include
#include
#include
#include
#include
#include
#include
// billing functions declaration
void printAttributes(struct ipdrStringArray * Schema,
struct ipdrStringArray * Attributes);
ipdrStatus handleRecord(void *CD, struct ipdrRecord * Rec);
class dfsWorker
{
public:
dfsWorker();
~dfsWorker();
int dfInit(dfsModuleInitStruct *init);
// monitor the Dispatcher processes, called from outside
int dfLoopBody();
/* 3 choices for EventHandle output:
1: no return;
2: put into internal Cache for later answer
3: put into the direct answer queue */
int dfEventHandler(dfEventStruct *event);
private:
ipdrDocumentHandler *m_DocHandler;
};
#endif
#ifndef _DFS_BILLSVR_WORKER_H_
#define _DFS_BILLSVR_WORKER_H_
#include
#include
#include
#include
#include
#include
#include
#include
// billing functions declaration
void printAttributes(struct ipdrStringArray * Schema,
struct ipdrStringArray * Attributes);
ipdrStatus handleRecord(void *CD, struct ipdrRecord * Rec);
class dfsWorker
{
public:
dfsWorker();
~dfsWorker();
int dfInit(dfsModuleInitStruct *init);
// monitor the Dispatcher processes, called from outside
int dfLoopBody();
/* 3 choices for EventHandle output:
1: no return;
2: put into internal Cache for later answer
3: put into the direct answer queue */
int dfEventHandler(dfEventStruct *event);
private:
ipdrDocumentHandler *m_DocHandler;
};
#endif
本题链接: