Instrument Neutral Distributed Interface INDI  1.9.2
LoaderClient.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "indibase/baseclient.h"
5 #include "indibase/basedevice.h"
6 
8 
10 {
11  public:
12  LoaderClient();
13  virtual ~LoaderClient();
14 
15  // Public methods
16 
17  void Initialise(int argc, char *argv[]);
18  void Load();
19 
20  protected:
21  // Protected methods
22 
23  virtual void newBLOB(IBLOB *bp);
24  virtual void newDevice(INDI::BaseDevice *dp);
25  virtual void newLight(ILightVectorProperty *lvp) {}
26  virtual void newMessage(INDI::BaseDevice *dp, int messageID) {}
27  virtual void newNumber(INumberVectorProperty *nvp);
28  virtual void newProperty(INDI::Property *property);
29  virtual void newSwitch(ISwitchVectorProperty *svp);
30  virtual void newText(ITextVectorProperty *tvp) {}
31  virtual void removeProperty(INDI::Property *property) {}
32  virtual void serverConnected() {}
33  virtual void serverDisconnected(int exit_code) {}
34 
35  private:
36  INDI::BaseDevice *Device;
37  std::string DeviceName;
38 };
basedevice.h
LoaderClient::newDevice
virtual void newDevice(INDI::BaseDevice *dp)
Emmited when a new device is created from INDI server.
Definition: LoaderClient.cpp:70
_ILightVectorProperty
Light vector property descriptor.
Definition: indiapi.h:415
AlignmentSubsystemForClients.h
LoaderClient::serverConnected
virtual void serverConnected()
Emmited when the server is connected.
Definition: LoaderClient.h:32
LoaderClient::newProperty
virtual void newProperty(INDI::Property *property)
Emmited when a new property is created for an INDI driver.
Definition: LoaderClient.cpp:80
INDI::AlignmentSubsystem::AlignmentSubsystemForClients
This class encapsulates all the alignment subsystem classes that are useful to client implementations...
Definition: AlignmentSubsystemForClients.h:29
LoaderClient::Load
void Load()
Definition: LoaderClient.cpp:46
LoaderClient::serverDisconnected
virtual void serverDisconnected(int exit_code)
Emmited when the server gets disconnected.
Definition: LoaderClient.h:33
INDI::Property
Provides generic container for INDI properties.
Definition: indiproperty.h:43
_ITextVectorProperty
Text vector property descriptor.
Definition: indiapi.h:244
_INumberVectorProperty
Number vector property descriptor.
Definition: indiapi.h:317
LoaderClient
Definition: LoaderClient.h:9
LoaderClient::removeProperty
virtual void removeProperty(INDI::Property *property)
Emmited when a property is deleted for an INDI driver.
Definition: LoaderClient.h:31
LoaderClient::newSwitch
virtual void newSwitch(ISwitchVectorProperty *svp)
Emmited when a new switch value arrives from INDI server.
Definition: LoaderClient.cpp:85
LoaderClient::newText
virtual void newText(ITextVectorProperty *tvp)
Emmited when a new text value arrives from INDI server.
Definition: LoaderClient.h:30
LoaderClient::newNumber
virtual void newNumber(INumberVectorProperty *nvp)
Emmited when a new number value arrives from INDI server.
Definition: LoaderClient.cpp:75
LoaderClient::newBLOB
virtual void newBLOB(IBLOB *bp)
Emmited when a new BLOB value arrives from INDI server.
Definition: LoaderClient.cpp:65
INDI::BaseClient
Class to provide basic client functionality.
Definition: baseclient.h:54
LoaderClient::newMessage
virtual void newMessage(INDI::BaseDevice *dp, int messageID)
Emmited when a new message arrives from INDI server.
Definition: LoaderClient.h:26
baseclient.h
LoaderClient::~LoaderClient
virtual ~LoaderClient()
Definition: LoaderClient.cpp:13
LoaderClient::newLight
virtual void newLight(ILightVectorProperty *lvp)
Emmited when a new light value arrives from INDI server.
Definition: LoaderClient.h:25
LoaderClient::LoaderClient
LoaderClient()
Definition: LoaderClient.cpp:8
LoaderClient::Initialise
void Initialise(int argc, char *argv[])
Definition: LoaderClient.cpp:20
INDI::BaseDevice
Class to provide basic INDI device functionality.
Definition: basedevice.h:45
IBLOB
One Blob (Binary Large Object) descriptor.
_ISwitchVectorProperty
Switch vector property descriptor.
Definition: indiapi.h:365