Instrument Neutral Distributed Interface INDI  1.9.2
AlignmentSubsystemForClients.cpp
Go to the documentation of this file.
1 
10 
11 namespace INDI
12 {
13 namespace AlignmentSubsystem
14 {
16 {
17  AlignmentSubsystemForClients::DeviceName = DeviceName;
20 }
21 
23 {
24  if (strcmp(BLOBPointer->bvp->device, DeviceName.c_str()) == 0)
25  {
26  IDLog("newBLOB %s\n", BLOBPointer->bvp->name);
28  }
29 }
30 
32 {
33  if (strcmp(DevicePointer->getDeviceName(), DeviceName.c_str()) == 0)
34  {
35  IDLog("Receiving %s Device...\n", DevicePointer->getDeviceName());
38  }
39 }
40 
42 {
43  if (strcmp(NumberVectorPropertyPointer->device, DeviceName.c_str()) == 0)
44  {
45  IDLog("newNumber %s\n", NumberVectorPropertyPointer->name);
46  ClientAPIForAlignmentDatabase::ProcessNewNumber(NumberVectorPropertyPointer);
47  }
48 }
49 
51 {
52  if (strcmp(PropertyPointer->getDeviceName(), DeviceName.c_str()) == 0)
53  {
54  IDLog("newProperty %s\n", PropertyPointer->getName());
57  }
58 }
59 
61 {
62  if (strcmp(SwitchVectorPropertyPointer->device, DeviceName.c_str()) == 0)
63  {
64  IDLog("newSwitch %s\n", SwitchVectorPropertyPointer->name);
65  ClientAPIForAlignmentDatabase::ProcessNewSwitch(SwitchVectorPropertyPointer);
66  ClientAPIForMathPluginManagement::ProcessNewSwitch(SwitchVectorPropertyPointer);
67  }
68 }
69 
70 } // namespace AlignmentSubsystem
71 } // namespace INDI
INDI::AlignmentSubsystem::ClientAPIForAlignmentDatabase::Initialise
void Initialise(INDI::BaseClient *BaseClient)
Initialise the API.
Definition: ClientAPIForAlignmentDatabase.cpp:218
_ISwitchVectorProperty::device
char device[MAXINDIDEVICE]
Definition: indiapi.h:368
INDI::AlignmentSubsystem::ClientAPIForAlignmentDatabase::ProcessNewProperty
void ProcessNewProperty(INDI::Property *PropertyPointer)
Process new property message from driver. This routine should be called from within the newProperty h...
Definition: ClientAPIForAlignmentDatabase.cpp:359
INDI::Property::getName
const char * getName() const
Definition: indiproperty.cpp:289
INDI::Property::getDeviceName
const char * getDeviceName() const
Definition: indiproperty.cpp:310
AlignmentSubsystemForClients.h
INDI::AlignmentSubsystem::AlignmentSubsystemForClients::ProcessNewSwitch
void ProcessNewSwitch(ISwitchVectorProperty *SwitchVectorPropertyPointer)
Process new switch message from driver. This routine should be called from within the newSwitch handl...
Definition: AlignmentSubsystemForClients.cpp:60
INDI::BaseDevice::getDeviceName
const char * getDeviceName() const
Definition: basedevice.cpp:799
INDI::AlignmentSubsystem::ClientAPIForAlignmentDatabase::ProcessNewBLOB
void ProcessNewBLOB(IBLOB *BLOBPointer)
Process new BLOB message from driver. This routine should be called from within the newBLOB handler i...
Definition: ClientAPIForAlignmentDatabase.cpp:316
IDLog
void void void void void IDLog(const char *msg,...) ATTRIBUTE_FORMAT_PRINTF(1
Function Drivers call to log a message locally.
INDI::Property
Provides generic container for INDI properties.
Definition: indiproperty.h:43
_INumberVectorProperty
Number vector property descriptor.
Definition: indiapi.h:317
INDI::AlignmentSubsystem::ClientAPIForMathPluginManagement::ProcessNewProperty
void ProcessNewProperty(INDI::Property *PropertyPointer)
Process new property message from driver. This routine should be called from within the newProperty h...
Definition: ClientAPIForMathPluginManagement.cpp:44
INDI::AlignmentSubsystem::ClientAPIForMathPluginManagement::ProcessNewSwitch
void ProcessNewSwitch(ISwitchVectorProperty *SwitchVectorProperty)
Process new switch message from driver. This routine should be called from within the newSwitch handl...
Definition: ClientAPIForMathPluginManagement.cpp:65
INDI::AlignmentSubsystem::ClientAPIForAlignmentDatabase::ProcessNewSwitch
void ProcessNewSwitch(ISwitchVectorProperty *SwitchVectorProperty)
Process new switch message from driver. This routine should be called from within the newSwitch handl...
Definition: ClientAPIForAlignmentDatabase.cpp:393
_INumberVectorProperty::name
char name[MAXINDINAME]
Definition: indiapi.h:322
INDI::AlignmentSubsystem::ClientAPIForAlignmentDatabase::ProcessNewDevice
void ProcessNewDevice(INDI::BaseDevice *DevicePointer)
Process new device message from driver. This routine should be called from within the newDevice handl...
Definition: ClientAPIForAlignmentDatabase.cpp:330
INDI::AlignmentSubsystem::AlignmentSubsystemForClients::ProcessNewBLOB
void ProcessNewBLOB(IBLOB *BLOBPointer)
Process new BLOB message from driver. This routine should be called from within the newBLOB handler i...
Definition: AlignmentSubsystemForClients.cpp:22
INDI::BaseClient
Class to provide basic client functionality.
Definition: baseclient.h:54
INDI::AlignmentSubsystem::ClientAPIForAlignmentDatabase::ProcessNewNumber
void ProcessNewNumber(INumberVectorProperty *NumberVectorProperty)
Process new number message from driver. This routine should be called from within the newNumber handl...
Definition: ClientAPIForAlignmentDatabase.cpp:335
_INumberVectorProperty::device
char device[MAXINDIDEVICE]
Definition: indiapi.h:320
INDI
Namespace to encapsulate INDI client, drivers, and mediator classes.
Definition: AlignmentSubsystemForClients.cpp:11
INDI::AlignmentSubsystem::AlignmentSubsystemForClients::ProcessNewProperty
void ProcessNewProperty(INDI::Property *PropertyPointer)
Process new property message from driver. This routine should be called from within the newProperty h...
Definition: AlignmentSubsystemForClients.cpp:50
INDI::AlignmentSubsystem::ClientAPIForMathPluginManagement::ProcessNewDevice
void ProcessNewDevice(INDI::BaseDevice *DevicePointer)
Process new device message from driver. This routine should be called from within the newDevice handl...
Definition: ClientAPIForMathPluginManagement.cpp:39
INDI::AlignmentSubsystem::ClientAPIForMathPluginManagement::Initialise
void Initialise(INDI::BaseClient *BaseClient)
Intialise the API.
Definition: ClientAPIForMathPluginManagement.cpp:34
INDI::AlignmentSubsystem::AlignmentSubsystemForClients::ProcessNewNumber
void ProcessNewNumber(INumberVectorProperty *NumberVectorPropertyPointer)
Process new number message from driver. This routine should be called from within the newNumber handl...
Definition: AlignmentSubsystemForClients.cpp:41
INDI::BaseDevice
Class to provide basic INDI device functionality.
Definition: basedevice.h:45
INDI::AlignmentSubsystem::AlignmentSubsystemForClients::ProcessNewDevice
void ProcessNewDevice(INDI::BaseDevice *DevicePointer)
Process new device message from driver. This routine should be called from within the newDevice handl...
Definition: AlignmentSubsystemForClients.cpp:31
IBLOB
One Blob (Binary Large Object) descriptor.
_ISwitchVectorProperty
Switch vector property descriptor.
Definition: indiapi.h:365
INDI::AlignmentSubsystem::AlignmentSubsystemForClients::Initialise
void Initialise(const char *DeviceName, INDI::BaseClient *BaseClient)
This routine should be called before any connections to devices are made.
Definition: AlignmentSubsystemForClients.cpp:15
_ISwitchVectorProperty::name
char name[MAXINDINAME]
Definition: indiapi.h:370