Instrument Neutral Distributed Interface INDI  2.0.2
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
INDI::AbstractBaseClientPrivate Class Referenceabstract

#include <abstractbaseclient_p.h>

Inheritance diagram for INDI::AbstractBaseClientPrivate:
INDI::BaseClientPrivate INDI::BaseClientQtPrivate

Public Member Functions

 AbstractBaseClientPrivate (AbstractBaseClient *parent)
 
virtual ~AbstractBaseClientPrivate ()=default
 
virtual ssize_t sendData (const void *data, size_t size)=0
 
void clear ()
 
int dispatchCommand (const INDI::LilXmlElement &root, char *errmsg)
 Dispatch command received from INDI server to respective devices handled by the client. More...
 
int deleteDevice (const char *devName, char *errmsg)
 Remove device. More...
 
int delPropertyCmd (const INDI::LilXmlElement &root, char *errmsg)
 Delete property command. More...
 
int messageCmd (const INDI::LilXmlElement &root, char *errmsg)
 
void userIoGetProperties ()
 
void setDriverConnection (bool status, const char *deviceName)
 Connect/Disconnect to INDI driver. More...
 
BLOBModefindBLOBMode (const std::string &device, const std::string &property)
 

Public Attributes

AbstractBaseClientparent
 
std::list< BLOBModeblobModes
 
std::string cServer {"localhost"}
 
uint32_t cPort {7624}
 
std::atomic_bool sConnected {false}
 
bool verbose {false}
 
uint32_t timeout_sec {3}
 
uint32_t timeout_us {0}
 
WatchDeviceProperty watchDevice
 

Static Public Attributes

static userio io
 

Detailed Description

Definition at line 45 of file abstractbaseclient_p.h.

Constructor & Destructor Documentation

◆ AbstractBaseClientPrivate()

INDI::AbstractBaseClientPrivate::AbstractBaseClientPrivate ( AbstractBaseClient parent)

Definition at line 46 of file abstractbaseclient.cpp.

◆ ~AbstractBaseClientPrivate()

virtual INDI::AbstractBaseClientPrivate::~AbstractBaseClientPrivate ( )
virtualdefault

Member Function Documentation

◆ clear()

void INDI::AbstractBaseClientPrivate::clear ( )

Definition at line 64 of file abstractbaseclient.cpp.

◆ deleteDevice()

int INDI::AbstractBaseClientPrivate::deleteDevice ( const char *  devName,
char *  errmsg 
)

Remove device.

Definition at line 125 of file abstractbaseclient.cpp.

◆ delPropertyCmd()

int INDI::AbstractBaseClientPrivate::delPropertyCmd ( const INDI::LilXmlElement root,
char *  errmsg 
)

Delete property command.

Definition at line 142 of file abstractbaseclient.cpp.

◆ dispatchCommand()

int INDI::AbstractBaseClientPrivate::dispatchCommand ( const INDI::LilXmlElement root,
char *  errmsg 
)

Dispatch command received from INDI server to respective devices handled by the client.

Definition at line 70 of file abstractbaseclient.cpp.

◆ findBLOBMode()

BLOBMode * INDI::AbstractBaseClientPrivate::findBLOBMode ( const std::string &  device,
const std::string &  property 
)

Definition at line 300 of file abstractbaseclient.cpp.

◆ messageCmd()

int INDI::AbstractBaseClientPrivate::messageCmd ( const INDI::LilXmlElement root,
char *  errmsg 
)

Process messages

Definition at line 180 of file abstractbaseclient.cpp.

◆ sendData()

virtual ssize_t INDI::AbstractBaseClientPrivate::sendData ( const void *  data,
size_t  size 
)
pure virtual

◆ setDriverConnection()

void INDI::AbstractBaseClientPrivate::setDriverConnection ( bool  status,
const char *  deviceName 
)

Connect/Disconnect to INDI driver.

Parameters
statusIf true, the client will attempt to turn on CONNECTION property within the driver (i.e. turn on the device). Otherwise, CONNECTION will be turned off.
deviceNameName of the device to connect to.

Definition at line 256 of file abstractbaseclient.cpp.

◆ userIoGetProperties()

void INDI::AbstractBaseClientPrivate::userIoGetProperties ( )

Definition at line 223 of file abstractbaseclient.cpp.

Member Data Documentation

◆ blobModes

std::list<BLOBMode> INDI::AbstractBaseClientPrivate::blobModes

Definition at line 87 of file abstractbaseclient_p.h.

◆ cPort

uint32_t INDI::AbstractBaseClientPrivate::cPort {7624}

Definition at line 90 of file abstractbaseclient_p.h.

◆ cServer

std::string INDI::AbstractBaseClientPrivate::cServer {"localhost"}

Definition at line 89 of file abstractbaseclient_p.h.

◆ io

userio INDI::AbstractBaseClientPrivate::io
static

Definition at line 100 of file abstractbaseclient_p.h.

◆ parent

AbstractBaseClient* INDI::AbstractBaseClientPrivate::parent

Definition at line 85 of file abstractbaseclient_p.h.

◆ sConnected

std::atomic_bool INDI::AbstractBaseClientPrivate::sConnected {false}

Definition at line 92 of file abstractbaseclient_p.h.

◆ timeout_sec

uint32_t INDI::AbstractBaseClientPrivate::timeout_sec {3}

Definition at line 96 of file abstractbaseclient_p.h.

◆ timeout_us

uint32_t INDI::AbstractBaseClientPrivate::timeout_us {0}

Definition at line 96 of file abstractbaseclient_p.h.

◆ verbose

bool INDI::AbstractBaseClientPrivate::verbose {false}

Definition at line 94 of file abstractbaseclient_p.h.

◆ watchDevice

WatchDeviceProperty INDI::AbstractBaseClientPrivate::watchDevice

Definition at line 98 of file abstractbaseclient_p.h.


The documentation for this class was generated from the following files: