Instrument Neutral Distributed Interface INDI
2.0.2
|
#include <watchdeviceproperty.h>
Classes | |
struct | DeviceInfo |
Public Member Functions | |
std::vector< BaseDevice > | getDevices () const |
BaseDevice | getDeviceByName (const char *name) |
DeviceInfo & | ensureDeviceByName (const char *name, const std::function< ParentDevice()> &constructor) |
bool | isEmpty () const |
bool | isDeviceWatched (const char *deviceName) const |
checks if the device is being watched by something More... | |
void | unwatchDevices () |
void | watchDevice (const std::string &deviceName) |
void | watchDevice (const std::string &deviceName, const std::function< void(BaseDevice)> &callback) |
void | watchProperty (const std::string &deviceName, const std::string &propertyName) |
void | clear () |
void | clearDevices () |
bool | deleteDevice (const BaseDevice &device) |
int | processXml (const INDI::LilXmlElement &root, char *errmsg, const std::function< ParentDevice()> &constructor=[] { return ParentDevice(ParentDevice::Valid);}) |
std::map< std::string, DeviceInfo >::iterator | begin () |
std::map< std::string, DeviceInfo >::iterator | end () |
Protected Attributes | |
std::set< std::string > | watchedDevice |
std::map< std::string, DeviceInfo > | data |
Definition at line 33 of file watchdeviceproperty.h.
|
inline |
Definition at line 81 of file watchdeviceproperty.h.
void INDI::WatchDeviceProperty::clear | ( | ) |
Definition at line 87 of file watchdeviceproperty.cpp.
void INDI::WatchDeviceProperty::clearDevices | ( | ) |
Definition at line 92 of file watchdeviceproperty.cpp.
bool INDI::WatchDeviceProperty::deleteDevice | ( | const BaseDevice & | device | ) |
Definition at line 100 of file watchdeviceproperty.cpp.
|
inline |
Definition at line 86 of file watchdeviceproperty.h.
WatchDeviceProperty::DeviceInfo & INDI::WatchDeviceProperty::ensureDeviceByName | ( | const char * | name, |
const std::function< ParentDevice()> & | constructor | ||
) |
Definition at line 42 of file watchdeviceproperty.cpp.
BaseDevice INDI::WatchDeviceProperty::getDeviceByName | ( | const char * | name | ) |
Definition at line 36 of file watchdeviceproperty.cpp.
std::vector< BaseDevice > INDI::WatchDeviceProperty::getDevices | ( | ) | const |
Definition at line 26 of file watchdeviceproperty.cpp.
bool INDI::WatchDeviceProperty::isDeviceWatched | ( | const char * | deviceName | ) | const |
checks if the device is being watched by something
deviceName | name of the searched device on the list |
Definition at line 60 of file watchdeviceproperty.cpp.
bool INDI::WatchDeviceProperty::isEmpty | ( | ) | const |
Definition at line 55 of file watchdeviceproperty.cpp.
int INDI::WatchDeviceProperty::processXml | ( | const INDI::LilXmlElement & | root, |
char * | errmsg, | ||
const std::function< ParentDevice()> & | constructor = [] { return ParentDevice(ParentDevice::Valid); } |
||
) |
Definition at line 115 of file watchdeviceproperty.cpp.
void INDI::WatchDeviceProperty::unwatchDevices | ( | ) |
Definition at line 65 of file watchdeviceproperty.cpp.
void INDI::WatchDeviceProperty::watchDevice | ( | const std::string & | deviceName | ) |
Definition at line 70 of file watchdeviceproperty.cpp.
void INDI::WatchDeviceProperty::watchDevice | ( | const std::string & | deviceName, |
const std::function< void(BaseDevice)> & | callback | ||
) |
Definition at line 75 of file watchdeviceproperty.cpp.
void INDI::WatchDeviceProperty::watchProperty | ( | const std::string & | deviceName, |
const std::string & | propertyName | ||
) |
Definition at line 81 of file watchdeviceproperty.cpp.
|
protected |
Definition at line 93 of file watchdeviceproperty.h.
|
protected |
Definition at line 92 of file watchdeviceproperty.h.