19 namespace AlignmentSubsystem
84 bool DatabaseReferencePositionIsValid;
86 void *LoadDatabaseCallbackThisPointer;
This class provides the driver side API to the in memory alignment database.
AlignmentDatabaseType & GetAlignmentDatabase()
Get a reference to the in memory database.
bool SaveDatabase(const char *DeviceName)
Save the database to persistent storage.
void SetDatabaseReferencePosition(double Latitude, double Longitude)
Set the database reference position.
void SetLoadDatabaseCallback(LoadDatabaseCallbackPointer_t CallbackPointer, void *ThisPointer)
Set the function to be called when the database is loaded or reloaded.
std::vector< AlignmentDatabaseEntry > AlignmentDatabaseType
bool CheckForDuplicateSyncPoint(const AlignmentDatabaseEntry &CandidateEntry, double Tolerance=0.1) const
Check if a entry already exists in the database.
InMemoryDatabase()
Default constructor.
void(* LoadDatabaseCallbackPointer_t)(void *)
void RemoveSyncPoint(const AlignmentDatabaseEntry &CandidateEntry, double Tolerance=0.1)
Remove a sync point that falls within the tolerance of a candidate point.
bool GetDatabaseReferencePosition(IGeographicCoordinates &Position)
Get the database reference position.
bool LoadDatabase(const char *DeviceName)
Load the database from persistent storage.
virtual ~InMemoryDatabase()
Virtual destructor.
Namespace to encapsulate INDI client, drivers, and mediator classes.
Entry in the in memory alignment database.