X2 Standard
Version 1.24
|
The MountTypeInterface covers all possible mount types that X2 drivers can implement. More...
#include <mounttypeinterface.h>
Public Types | |
enum | Type { Symmetrical_Equatorial, Asymmetrical_Equatorial, AltAz, Unknown } |
The MountTypeInterface covers all possible mount types that X2 drivers can implement.
A Naïveté, object oriented architecture might insist upon a property common to all mounts, namely mountType() (and even worse yet, setMountType() where implementation might be difficult to dyanmically change from one type of mount to another. Such a property leads to confusion for all methods and properties related to the specific type of mount, and which ones apply and don't apply, etc. In the X2 architecture, the related methods and properties are contained in optional interfaces that each mount can support as needed. In other words, X2 doesn't riddle the global scope with n number of stubs for methods/properties that don't apply.
Below are the related, mutually exclusive, interfaces when implemented dictate the type of mount.