Programmers Reference - CDeviceServer (1)
classCDeviceServer : public CDataServer
#include "ConSys.h"
class CDeviceServer : public CDataServer { public: DECLARE_CONSYS_SERIAL(CDeviceServer); public: CDeviceServer(); virtual ~CDeviceServer(); protected: inline BOOLEAN RegisterAtDevice(const CAddress* aAddress, UINT minPollTime = -1 /* ms */) const; #ifdef _DEBUG public: virtual void Dump(CDumpContext &dc) const; virtual void AssertValid() const; #endif };
This data server is used as base class for data servers that interface directly to the device layer of the ConSys System.
This class implements a extra method. The method RegisterAtDevice is used for registering the data server at a specific parameter. When a data server has registered it interest in a parameter, the device will signal the forceDataRead event when the data may be changed. The signal on forceDataRead will release a thread for collecting the data from the data server.
References:
Last Modified 10 January 2019