求c高手帮忙,帮我分析一下下面的程序段,最好是每一行的含义都解释一下,先给20分,回答得好再加!

问题描述:

求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语言预处理命令):#ifndef 宏名语句段#endif作用:如果再此之前没有定义这样的宏名,则编译语句段;即第一行:#ifndef _DFS_BILLSVR_WORKER_H_,如果定义了宏名 DFS_BILLSVR_WOR...