Instrument Neutral Distributed Interface INDI
2.0.2
|
An entry in the sync point database is defined by the following INDI properties. More...
#include <MapPropertiesToInMemoryDatabase.h>
Public Member Functions | |
virtual | ~MapPropertiesToInMemoryDatabase () |
Virtual destructor. More... | |
void | InitProperties (Telescope *pTelescope) |
Initialize alignment database properties. It is recommended to call this function within initProperties() of your primary device. More... | |
void | ProcessBlobProperties (Telescope *pTelescope, const char *name, int sizes[], int blobsizes[], char *blobs[], char *formats[], char *names[], int n) |
Call this function from within the ISNewBLOB processing path. The function will handle any alignment database related properties. More... | |
void | ProcessNumberProperties (Telescope *, const char *name, double values[], char *names[], int n) |
Call this function from within the ISNewNumber processing path. The function will handle any alignment database related properties. More... | |
void | ProcessSwitchProperties (Telescope *pTelescope, const char *name, ISState *states, char *names[], int n) |
Call this function from within the ISNewSwitch processing path. The function will handle any alignment database related properties. More... | |
void | UpdateLocation (double latitude, double longitude, double elevation) |
Call this function from within the updateLocation processing path. More... | |
void | UpdateSize () |
Call this function when the number of entries in the database changes. More... | |
Public Member Functions inherited from INDI::AlignmentSubsystem::InMemoryDatabase | |
InMemoryDatabase () | |
Default constructor. More... | |
virtual | ~InMemoryDatabase () |
Virtual destructor. More... | |
bool | CheckForDuplicateSyncPoint (const AlignmentDatabaseEntry &CandidateEntry, double Tolerance=0.1) const |
Check if a entry already exists in the database. More... | |
void | RemoveSyncPoint (const AlignmentDatabaseEntry &CandidateEntry, double Tolerance=0.1) |
Remove a sync point that falls within the tolerance of a candidate point. More... | |
AlignmentDatabaseType & | GetAlignmentDatabase () |
Get a reference to the in memory database. More... | |
bool | GetDatabaseReferencePosition (IGeographicCoordinates &Position) |
Get the database reference position. More... | |
bool | LoadDatabase (const char *DeviceName) |
Load the database from persistent storage. More... | |
bool | SaveDatabase (const char *DeviceName) |
Save the database to persistent storage. More... | |
void | SetDatabaseReferencePosition (double Latitude, double Longitude) |
Set the database reference position. More... | |
void | SetLoadDatabaseCallback (LoadDatabaseCallbackPointer_t CallbackPointer, void *ThisPointer) |
Set the function to be called when the database is loaded or reloaded. More... | |
Additional Inherited Members | |
Public Types inherited from INDI::AlignmentSubsystem::InMemoryDatabase | |
typedef std::vector< AlignmentDatabaseEntry > | AlignmentDatabaseType |
typedef void(* | LoadDatabaseCallbackPointer_t) (void *) |
An entry in the sync point database is defined by the following INDI properties.
The database is accessed using the following properties
Definition at line 70 of file MapPropertiesToInMemoryDatabase.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 74 of file MapPropertiesToInMemoryDatabase.h.
void INDI::AlignmentSubsystem::MapPropertiesToInMemoryDatabase::InitProperties | ( | Telescope * | pTelescope | ) |
Initialize alignment database properties. It is recommended to call this function within initProperties() of your primary device.
[in] | pTelescope | Pointer to the child INDI::Telecope class |
Definition at line 17 of file MapPropertiesToInMemoryDatabase.cpp.
void INDI::AlignmentSubsystem::MapPropertiesToInMemoryDatabase::ProcessBlobProperties | ( | Telescope * | pTelescope, |
const char * | name, | ||
int | sizes[], | ||
int | blobsizes[], | ||
char * | blobs[], | ||
char * | formats[], | ||
char * | names[], | ||
int | n | ||
) |
Call this function from within the ISNewBLOB processing path. The function will handle any alignment database related properties.
[in] | pTelescope | Pointer to the child INDI::Telecope class |
[in] | name | vector property name |
[in] | sizes | |
[in] | blobsizes | |
[in] | blobs | |
[in] | formats | |
[in] | names | |
[in] | n |
Definition at line 75 of file MapPropertiesToInMemoryDatabase.cpp.
void INDI::AlignmentSubsystem::MapPropertiesToInMemoryDatabase::ProcessNumberProperties | ( | Telescope * | , |
const char * | name, | ||
double | values[], | ||
char * | names[], | ||
int | n | ||
) |
Call this function from within the ISNewNumber processing path. The function will handle any alignment database related properties.
[in] | pTelescope | Pointer to the child INDI::Telecope class |
[in] | name | vector property name |
[in] | values | value as passed by the client |
[in] | names | names as passed by the client |
[in] | n | number of values and names pair to process. |
Definition at line 101 of file MapPropertiesToInMemoryDatabase.cpp.
void INDI::AlignmentSubsystem::MapPropertiesToInMemoryDatabase::ProcessSwitchProperties | ( | Telescope * | pTelescope, |
const char * | name, | ||
ISState * | states, | ||
char * | names[], | ||
int | n | ||
) |
Call this function from within the ISNewSwitch processing path. The function will handle any alignment database related properties.
[in] | pTelescope | Pointer to the child INDI::Telecope class |
[in] | name | vector property name |
[in] | states | states as passed by the client |
[in] | names | names as passed by the client |
[in] | n | number of values and names pair to process. |
Definition at line 121 of file MapPropertiesToInMemoryDatabase.cpp.
void INDI::AlignmentSubsystem::MapPropertiesToInMemoryDatabase::UpdateLocation | ( | double | latitude, |
double | longitude, | ||
double | elevation | ||
) |
Call this function from within the updateLocation processing path.
[in] | latitude | Site latitude in degrees. |
[in] | longitude | Site latitude in degrees increasing eastward from Greenwich (0 to 360). |
[in] | elevation | Site elevation in meters. |
Definition at line 256 of file MapPropertiesToInMemoryDatabase.cpp.
void INDI::AlignmentSubsystem::MapPropertiesToInMemoryDatabase::UpdateSize | ( | ) |
Call this function when the number of entries in the database changes.
Definition at line 273 of file MapPropertiesToInMemoryDatabase.cpp.