Programmers Reference - CDeviceDoc (1)
class CDeviceDoc : public CObject
#include "ConSysKernel.h"
The device document is the base class for all devices on the ConSys system (se CDevice). The decendant classes must be fully seralizable, and contain the information nessasery for the coresponding device to initialize (se CDevice::Create). The class must implement the standard methods as Serialize and OnNewDocument in the standard way.
Because the ducument is a sub document to the document CLocalDoc, the attribute CDocument::m_bAutoDelete is FALSE. Do not try to cange this, as it may cause the ConSys Manager and other programs to crash.
class KERNEL_EXT CDeviceDoc : public CDocument { public: CDeviceDoc(); // protected constructor used by dynamic creation DECLARE_SERIAL(CDeviceDoc) // Attributes public: UINT m_deviceNumber; // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CDeviceDoc) public: virtual void Serialize(CArchive& ar); // overridden for document i/o protected: virtual BOOL OnNewDocument(); //}}AFX_VIRTUAL // Implementation public: virtual ~CDeviceDoc(); };
References:
Last Modified 10 January 2019