stafhandleservice.h

来自「Software Testing Automation Framework (S」· C头文件 代码 · 共 74 行

H
74
字号
/*****************************************************************************//* Software Testing Automation Framework (STAF)                              *//* (C) Copyright IBM Corp. 2001                                              *//*                                                                           *//* This software is licensed under the Common Public License (CPL) V1.0.     *//*****************************************************************************/#ifndef STAF_HandleService#define STAF_HandleService#include "STAFService.h"#include "STAFCommandParser.h"static int debug = 0; // XXX// STAFHandleService - Handles requests about process handlesclass STAFHandleService : public STAFService{public:    STAFHandleService();    virtual STAFServiceResult acceptRequest(                              const STAFServiceRequest &requestInfo);    virtual STAFString info(unsigned int raw = 0) const;    virtual ~STAFHandleService();        static STAFHandleService *getInstance()      {         return sHandleService;     }        virtual void handleRemoved(STAFHandle_t handle);private:    // Don't allow copy construction or assignment    STAFHandleService(const STAFHandleService &);    STAFHandleService &operator=(const STAFHandleService &);        static STAFHandleService *sHandleService;    STAFServiceResult handleCreate(const STAFServiceRequest &requestInfo);    STAFServiceResult handleDelete(const STAFServiceRequest &requestInfo);    STAFServiceResult handleQuery(const STAFServiceRequest &requestInfo);    STAFServiceResult handleAuthenticate(const STAFServiceRequest &requestInfo);    STAFServiceResult handleUnAuthenticate(const STAFServiceRequest &requestInfo);    STAFServiceResult handleSet(const STAFServiceRequest &requestInfo);    STAFServiceResult handleList(const STAFServiceRequest &requestInfo);    STAFServiceResult handleNotify(const STAFServiceRequest &requestInfo);    STAFServiceResult handleUnregister(const STAFServiceRequest &requestInfo);    STAFServiceResult handleHelp(const STAFServiceRequest &requestInfo);    STAFCommandParser fCreateParser;    STAFCommandParser fDeleteParser;    STAFCommandParser fNotifyParser;    STAFCommandParser fQueryParser;    STAFCommandParser fAuthParser;    STAFCommandParser fUnAuthParser;    STAFCommandParser fSetParser;    STAFCommandParser fListParser;    STAFCommandParser fUnregisterParser;    STAFMapClassDefinitionPtr fQueryHandleClass;    STAFMapClassDefinitionPtr fHandleInfoClass;    STAFMapClassDefinitionPtr fHandleInfoLongClass;    STAFMapClassDefinitionPtr fNotificationClass;};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?