|
Instrument Neutral Distributed Interface INDI 2.2.5
|
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. | |
| void | InitProperties (Telescope *pTelescope) |
| Initialize alignment database properties. It is recommended to call this function within initProperties() of your primary device. | |
| 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. | |
| 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. | |
| 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. | |
| void | UpdateLocation (double latitude, double longitude, double elevation) |
| Call this function from within the updateLocation processing path. | |
| void | UpdateSize () |
| Call this function when the number of entries in the database changes. | |
Public Member Functions inherited from INDI::AlignmentSubsystem::InMemoryDatabase | |
| InMemoryDatabase () | |
| Default constructor. | |
| virtual | ~InMemoryDatabase () |
| Virtual destructor. | |
| bool | CheckForDuplicateSyncPoint (const AlignmentDatabaseEntry &CandidateEntry, double Tolerance=0.1) const |
| Check if a entry already exists in the database. | |
| void | RemoveSyncPoint (const AlignmentDatabaseEntry &CandidateEntry, double Tolerance=0.1) |
| Remove a sync point that falls within the tolerance of a candidate point. | |
| AlignmentDatabaseType & | GetAlignmentDatabase () |
| Get a reference to the in memory database. | |
| bool | GetDatabaseReferencePosition (IGeographicCoordinates &Position) |
| Get the database reference position. | |
| bool | LoadDatabase (const char *DeviceName) |
| Load the database from persistent storage. | |
| bool | SaveDatabase (const char *DeviceName) |
| Save the database to persistent storage. | |
| void | SetDatabaseReferencePosition (double Latitude, double Longitude) |
| Set the database reference position. | |
| void | SetDatabaseReferencePosition (const IGeographicCoordinates &Position) |
| 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. | |
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.