Files
cdev-1.7.2n/extensions/cdevGenericServer/tests/MonitorTest/MonitorTestService.h
2022-12-13 12:44:04 +01:00

30 lines
1.2 KiB
C++

#include <cdevClientService.h>
#ifndef MONITOR_TEST_SERVICE_API
#define MONITOR_TEST_SERVICE_API
#endif
// *****************************************************************************
// * newMonitorTestService :
// * This function will be called by the cdevSystem object to create an
// * initial instance of the MonitorTestService.
// *****************************************************************************
extern "C" MONITOR_TEST_SERVICE_API cdevService * newMonitorTestService ( char * name, cdevSystem * system );
// *****************************************************************************
// * class MonitorTestService :
// * This class simply inherits from the cdevClientService and must define
// * only a constructor and destructor.
// *****************************************************************************
class MonitorTestService : public cdevClientService
{
public:
MonitorTestService ( char * name, cdevSystem & system = cdevSystem::defaultSystem());
protected:
int RESULT_CODE_TAG;
virtual ~MonitorTestService ( void ) {};
virtual void fireCallback ( int status, cdevTranObj &xobj, cdevData *resultData, int partialTransaction = 0 );
};