#ifndef __IDEVICEINFO_H__ #define __IDEVICEINFO_H__ #include "MarshalSupport/MarshalSupport.pkg" #include class IDevice; using namespace MarshalSupport::Operators; class IDeviceInfo { public: // Typedefs typedef IDevice* (*AllocatorPointer)(const wchar_t* implementationName, const wchar_t* instanceName, unsigned int moduleID); typedef void (*DestructorPointer)(IDevice* device); public: // Constructors IDeviceInfo() = default; IDeviceInfo(const IDeviceInfo& source) = default; IDeviceInfo& operator=(const IDeviceInfo& source) = default; inline virtual ~IDeviceInfo() = 0; // Interface version functions static inline unsigned int ThisIDeviceInfoVersion() { return 1; } virtual unsigned int GetIDeviceInfoVersion() const = 0; // Getters virtual AllocatorPointer GetAllocator() const = 0; virtual DestructorPointer GetDestructor() const = 0; virtual Marshal::Ret GetDeviceClassName() const = 0; virtual Marshal::Ret GetDeviceImplementationName() const = 0; virtual unsigned int GetDeviceVersionNo() const = 0; virtual Marshal::Ret GetDeviceCopyright() const = 0; virtual Marshal::Ret GetDeviceComments() const = 0; // Setters virtual void SetDeviceSettings(AllocatorPointer allocator, DestructorPointer destructor, const Marshal::In& deviceClassName, const Marshal::In& deviceImplementationName, unsigned int deviceVersionNo, const Marshal::In& deviceCopyright, const Marshal::In& deviceComments) = 0; virtual void SetDeviceAllocators(AllocatorPointer allocator, DestructorPointer destructor) = 0; virtual void SetDeviceClassName(const Marshal::In& deviceClassName) = 0; virtual void SetDeviceImplementationName(const Marshal::In& deviceImplementationName) = 0; virtual void SetDeviceVersionNo(unsigned int deviceVersionNo) = 0; virtual void SetDeviceCopyright(const Marshal::In& deviceCopyright) = 0; virtual void SetDeviceComments(const Marshal::In& deviceComments) = 0; }; IDeviceInfo::~IDeviceInfo() { } #endif