22 std::string HostName(
"localhost");
31 std::istringstream Parameter(argv[3]);
35 AlignmentSubsystemForClients::Initialise(DeviceName.c_str(),
this);
57 CurrentValues.
PrivateData.reset(
new unsigned char[50]);
58 strcpy((
char *)CurrentValues.
PrivateData.get(),
"This is a test BLOB");
void setServer(const char *hostname, unsigned int port)
Set the server host name and port.
void setBLOBMode(BLOBHandling blobH, const char *dev, const char *prop=nullptr)
Set Binary Large Object policy mode.
void watchDevice(const char *deviceName)
Add a device to the watch list.
void ProcessNewProperty(INDI::Property *PropertyPointer)
Process new property message from driver. This routine should be called from within the newProperty h...
void ProcessNewNumber(INumberVectorProperty *NumberVectorPropertyPointer)
Process new number message from driver. This routine should be called from within the newNumber handl...
void ProcessNewSwitch(ISwitchVectorProperty *SwitchVectorPropertyPointer)
Process new switch message from driver. This routine should be called from within the newSwitch handl...
void ProcessNewDevice(INDI::BaseDevice *DevicePointer)
Process new device message from driver. This routine should be called from within the newDevice handl...
void ProcessNewBLOB(IBLOB *BLOBPointer)
Process new BLOB message from driver. This routine should be called from within the newBLOB handler i...
bool AppendSyncPoint(const AlignmentDatabaseEntry &CurrentValues)
Append a sync point to the database.
bool InsertSyncPoint(unsigned int Offset, const AlignmentDatabaseEntry &CurrentValues)
Insert a sync point in the database.
bool EditSyncPoint(unsigned int Offset, const AlignmentDatabaseEntry &CurrentValues)
Edit a sync point in the database.
bool DeleteSyncPoint(unsigned int Offset)
Delete a sync point from the database.
bool connectServer() override
Connect to INDI server.
Class to provide basic INDI device functionality.
Provides generic container for INDI properties.
virtual void newNumber(INumberVectorProperty *nvp)
Emmited when a new number value arrives from INDI server.
virtual void newSwitch(ISwitchVectorProperty *svp)
Emmited when a new switch value arrives from INDI server.
virtual void newBLOB(IBLOB *bp)
Emmited when a new property value arrives from INDI server.
void Initialise(int argc, char *argv[])
virtual void newDevice(INDI::BaseDevice *dp)
Emmited when a new device is created from INDI server.
virtual void newProperty(INDI::Property *property)
Emmited when a new property is created for an INDI driver.
Namespace to encapsulate the INDI Alignment Subsystem classes. For more information see "INDI Alignme...
One Blob (Binary Large Object) descriptor.
Entry in the in memory alignment database.
double ObservationJulianDate
int PrivateDataSize
This size in bytes of any private data.
std::unique_ptr< unsigned char > PrivateData
Private data associated with this sync point.
Number vector property descriptor.
Switch vector property descriptor.