|
X2 Standard
Version 1.28
|
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/properties 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.
|
pure virtual |
Returns the type of device.
Implemented in CameraDriverInterface, DomeDriverInterface, FilterWheelDriverInterface, FocuserDriverInterface, MountDriverInterface, PowerControlDriverInterface, RotatorDriverInterface, X2Dome, X2FilterWheel, X2Mount, and X2Rotator.
|
pure virtual |
Return a pointer to well defined interface.
Implemented in CameraDriverInterface, DomeDriverInterface, FilterWheelDriverInterface, FocuserDriverInterface, MountDriverInterface, PowerControlDriverInterface, RotatorDriverInterface, X2Camera, X2Dome, X2FilterWheel, X2Focuser, X2Mount, X2PowerControl, and X2Rotator.