X2 Standard
Version 1.24
|
The DriverRootInterface is the foundation for all X2 device drivers. More...
#include <driverrootinterface.h>
Public Types | |
enum | DeviceType { DT_UNKNOWN = 0, DT_MOUNT = 1, DT_FOCUSER = 2, DT_CAMERA = 3, DT_FILTERWHEEL = 4, DT_DOME = 5, DT_ROTATOR = 6, DT_WEATHER = 7, DT_GPSTFP = 8, DT_VIDEO = 9, DT_OTA =10, DT_AO =11, DT_POWERCONTROL =12, DT_PRIVATE_A =13 } |
Public Member Functions | |
virtual DeviceType | deviceType (void)=0 |
virtual int | queryAbstraction (const char *pszName, void **ppVal)=0 |
The DriverRootInterface is the foundation for all X2 device drivers.
Each specific DeviceType implementation inherits this interface and adds methods/proproties common to all devices in kind, if any. TheSkyX leverages queryAbstraction() as a runtime means of obtaining, optional well-defined interfaces. Tested and works on Windows, Mac, Ubuntu Linux.
DeviceType.
|
pure virtual |
Returns the type of device.
Implemented in X2Rotator, X2Mount, RotatorDriverInterface, PowerControlDriverInterface, MountDriverInterface, FocuserDriverInterface, FilterWheelDriverInterface, DomeDriverInterface, CameraDriverInterface, X2FilterWheel, and X2Dome.
|
pure virtual |
Return a pointer to well defined interface.
Implemented in RotatorDriverInterface, PowerControlDriverInterface, MountDriverInterface, FocuserDriverInterface, FilterWheelDriverInterface, DomeDriverInterface, CameraDriverInterface, X2Rotator, X2PowerControl, X2Mount, X2Focuser, X2FilterWheel, X2Dome, and X2Camera.