|
Instrument Neutral Distributed Interface INDI 2.2.5
|
Provides decorator for Low-Level IXXXVectorProperty/IXXX. More...
#include <indipropertyview.h>
Public Types | |
| using | Type = T |
| using | PropertyType = typename WidgetTraits< T >::PropertyType |
| using | WidgetType = WidgetView< T > |
| template<typename X , typename Needed > | |
| using | enable_if_is_same_t = typename std::enable_if< std::is_same< X, Needed >::value, bool >::type |
Public Member Functions | |
| PropertyView () | |
| void | setDeviceName (const char *name) |
| void | setDeviceName (const std::string &name) |
| void | setName (const char *name) |
| void | setName (const std::string &name) |
| void | setLabel (const char *label) |
| void | setLabel (const std::string &label) |
| void | setGroupName (const char *name) |
| void | setGroupName (const std::string &name) |
| void | setPermission (IPerm permission) |
| void | setTimeout (double timeout) |
| void | setState (IPState state) |
| void | setTimestamp (const char *timestamp) |
| void | setTimestamp (const std::string ×tamp) |
| void | setAux (void *user) |
| void | setWidgets (WidgetType *w, size_t count) |
| template<size_t N> | |
| void | setWidgets (WidgetType(&w)[N]) |
| void | setRule (ISRule rule) |
| bool | setRule (const std::string &rule) |
| template<typename X = T, enable_if_is_same_t< X, ISwitch > = true> | |
| void | reset () |
| template<typename X = T, enable_if_is_same_t< X, ISwitch > = true> | |
| WidgetType * | findOnSwitch () const |
| template<typename X = T, enable_if_is_same_t< X, ISwitch > = true> | |
| bool | isSwitchOn (const std::string &name) const |
| template<typename X = T, enable_if_is_same_t< X, ISwitch > = true> | |
| int | findOnSwitchIndex () const |
| template<typename X = T, enable_if_is_same_t< X, ISwitch > = true> | |
| std::string | findOnSwitchName () const |
| template<typename X = T, enable_if_is_same_t< X, INumber > = true> | |
| void | updateMinMax () |
| const char * | getDeviceName () const |
| const char * | getName () const |
| const char * | getLabel () const |
| const char * | getGroupName () const |
| IPerm | getPermission () const |
| const char * | getPermissionAsString () const |
| ISRule | getRule () const |
| const char * | getRuleAsString () const |
| double | getTimeout () const |
| IPState | getState () const |
| const char * | getStateAsString () const |
| const char * | getTimestamp () const |
| void * | getAux () const |
| int | count () const |
| WidgetType * | widget () const |
| WidgetType * | findWidgetByName (const char *name) const |
| bool | isEmpty () const |
| bool | isNameMatch (const char *otherName) const |
| bool | isNameMatch (const std::string &otherName) const |
| bool | isLabelMatch (const char *otherLabel) const |
| bool | isLabelMatch (const std::string &otherLabel) const |
| bool | load () |
| void | save (FILE *f) const |
| bool | snoop (XMLEle *root) |
| void | vapply (const char *format, va_list args) const |
| void | vdefine (const char *format, va_list args) const |
| void | apply (const char *format,...) const ATTRIBUTE_FORMAT_PRINTF(2 |
| void void | define (const char *format,...) const ATTRIBUTE_FORMAT_PRINTF(2 |
| void void void | apply () const |
| void | define () const |
| template<typename X = T, enable_if_is_same_t< X, IText > = true> | |
| void | fill (const char *device, const char *name, const char *label, const char *group, IPerm permission, double timeout, IPState state) |
| template<typename X = T, enable_if_is_same_t< X, INumber > = true> | |
| void | fill (const char *device, const char *name, const char *label, const char *group, IPerm permission, double timeout, IPState state) |
| template<typename X = T, enable_if_is_same_t< X, ISwitch > = true> | |
| void | fill (const char *device, const char *name, const char *label, const char *group, IPerm permission, ISRule rule, double timeout, IPState state) |
| template<typename X = T, enable_if_is_same_t< X, ILight > = true> | |
| void | fill (const char *device, const char *name, const char *label, const char *group, IPState state) |
| template<typename X = T, enable_if_is_same_t< X, IBLOB > = true> | |
| void | fill (const char *device, const char *name, const char *label, const char *group, IPerm permission, double timeout, IPState state) |
| template<typename X = T, enable_if_is_same_t< X, IText > = true> | |
| bool | update (const char *const texts[], const char *const names[], int n) |
| template<typename X = T, enable_if_is_same_t< X, INumber > = true> | |
| bool | update (const double values[], const char *const names[], int n) |
| template<typename X = T, enable_if_is_same_t< X, ISwitch > = true> | |
| bool | update (const ISState states[], const char *const names[], int n) |
| template<typename X = T, enable_if_is_same_t< X, IBLOB > = true> | |
| bool | update (const int sizes[], const int blobsizes[], const char *const blobs[], const char *const formats[], const char *const names[], int n) |
| template<typename X = T, enable_if_is_same_t< X, IText > = true> | |
| bool | isUpdated (const char *const texts[], const char *const names[], int n) const |
| template<typename X = T, enable_if_is_same_t< X, INumber > = true> | |
| bool | isUpdated (const double values[], const char *const names[], int n) const |
| template<typename X = T, enable_if_is_same_t< X, ISwitch > = true> | |
| bool | isUpdated (const ISState states[], const char *const names[], int n) const |
| WidgetType * | begin () const |
| WidgetType * | end () const |
| WidgetType * | at (size_t index) const |
| void | clear () |
| PropertyType * | cast () |
| void | vapply (const char *format, va_list arg) const |
| void | vdefine (const char *format, va_list arg) const |
| void | vapply (const char *format, va_list arg) const |
| void | vdefine (const char *format, va_list arg) const |
| void | vapply (const char *format, va_list arg) const |
| void | vdefine (const char *format, va_list arg) const |
| void | vapply (const char *format, va_list arg) const |
| void | vdefine (const char *format, va_list arg) const |
| void | vapply (const char *format, va_list arg) const |
| void | vdefine (const char *format, va_list arg) const |
| void | fill (const char *device, const char *name, const char *label, const char *group, IPerm permission, double timeout, IPState state) |
| void | fill (const char *device, const char *name, const char *label, const char *group, IPerm permission, double timeout, IPState state) |
| void | fill (const char *device, const char *name, const char *label, const char *group, IPerm permission, ISRule rule, double timeout, IPState state) |
| void | fill (const char *device, const char *name, const char *label, const char *group, IPState state) |
| void | fill (const char *device, const char *name, const char *label, const char *group, IPerm permission, double timeout, IPState state) |
| bool | update (const char *const texts[], const char *const names[], int n) |
| bool | update (const double values[], const char *const names[], int n) |
| bool | update (const ISState states[], const char *const names[], int n) |
| bool | update (const int sizes[], const int blobsizes[], const char *const blobs[], const char *const formats[], const char *const names[], int n) |
| void | updateMinMax () |
| bool | isUpdated (const char *const texts[], const char *const names[], int n) const |
| bool | isUpdated (const double values[], const char *const names[], int n) const |
| bool | isUpdated (const ISState states[], const char *const names[], int n) const |
| bool | load () |
| bool | load () |
| bool | load () |
| bool | load () |
| bool | load () |
| void | save (FILE *f) const |
| void | save (FILE *f) const |
| void | save (FILE *f) const |
| void | save (FILE *f) const |
| void | save (FILE *f) const |
| bool | snoop (XMLEle *root) |
| bool | snoop (XMLEle *root) |
| bool | snoop (XMLEle *root) |
| bool | snoop (XMLEle *root) |
| bool | snoop (XMLEle *root) |
| void | setTimeout (double) |
| void | setPermission (IPerm) |
| void | setRule (ISRule rule) |
| bool | setRule (const std::string &rule) |
| WidgetView< IText > * | findWidgetByName (const char *name) const |
| WidgetView< INumber > * | findWidgetByName (const char *name) const |
| WidgetView< ISwitch > * | findWidgetByName (const char *name) const |
| WidgetView< ILight > * | findWidgetByName (const char *name) const |
| WidgetView< IBLOB > * | findWidgetByName (const char *name) const |
| IPerm | getPermission () const |
| ISRule | getRule () const |
| double | getTimeout () const |
| void | setWidgets (WidgetType *w, size_t size) |
| void | setWidgets (WidgetType *w, size_t size) |
| void | setWidgets (WidgetType *w, size_t size) |
| void | setWidgets (WidgetType *w, size_t size) |
| void | setWidgets (WidgetType *w, size_t size) |
| int | count () const |
| int | count () const |
| int | count () const |
| int | count () const |
| int | count () const |
| PropertyView< IText >::WidgetType * | widget () const |
| PropertyView< INumber >::WidgetType * | widget () const |
| PropertyView< ISwitch >::WidgetType * | widget () const |
| PropertyView< ILight >::WidgetType * | widget () const |
| PropertyView< IBLOB >::WidgetType * | widget () const |
Static Public Member Functions | |
| static PropertyView< T > * | cast (PropertyType *raw) |
Friends | |
| class | Property |
| class | PropertyPrivate |
| class | BaseDevice |
| class | DefaultDevice |
| template<typename > | |
| struct | WidgetView |
Provides decorator for Low-Level IXXXVectorProperty/IXXX.
A class that will allow a easy transition to the new widget handling interface (future).
The PropertyView<IXXX> class is compatible with low-level IXXXVectorProperty structures.
A class that will allow a easy transition to the new widget handling interface (future).
The WidgetView<IXXX> class is compatible with low-level IXXX structures.
Definition at line 82 of file indipropertyview.h.
| using INDI::PropertyView< T >::enable_if_is_same_t = typename std::enable_if<std::is_same<X, Needed>::value, bool>::type |
Definition at line 96 of file indipropertyview.h.
| using INDI::PropertyView< T >::PropertyType = typename WidgetTraits<T>::PropertyType |
Definition at line 85 of file indipropertyview.h.
| using INDI::PropertyView< T >::Type = T |
Definition at line 84 of file indipropertyview.h.
| using INDI::PropertyView< T >::WidgetType = WidgetView<T> |
Definition at line 86 of file indipropertyview.h.
|
inline |
Definition at line 1114 of file indipropertyview.h.
|
inline |
Definition at line 265 of file indipropertyview.h.
| void INDI::PropertyView< T >::apply | ( | const char * | format, |
| ... | |||
| ) | const |
Definition at line 136 of file indipropertyview.cpp.
|
inline |
Definition at line 349 of file indipropertyview.h.
|
inline |
Definition at line 340 of file indipropertyview.h.
|
inline |
Definition at line 368 of file indipropertyview.h.
|
inlinestatic |
Definition at line 364 of file indipropertyview.h.
|
inline |
Definition at line 354 of file indipropertyview.h.
| int INDI::PropertyView< T >::count | ( | ) | const |
|
inline |
Definition at line 1438 of file indipropertyview.h.
|
inline |
Definition at line 1444 of file indipropertyview.h.
|
inline |
Definition at line 1450 of file indipropertyview.h.
|
inline |
Definition at line 1456 of file indipropertyview.h.
|
inline |
Definition at line 1462 of file indipropertyview.h.
|
inline |
Definition at line 269 of file indipropertyview.h.
| void INDI::PropertyView< T >::define | ( | const char * | format, |
| ... | |||
| ) | const |
Definition at line 145 of file indipropertyview.cpp.
|
inline |
Definition at line 344 of file indipropertyview.h.
| void INDI::PropertyView< IText >::fill | ( | const char * | device, |
| const char * | name, | ||
| const char * | label, | ||
| const char * | group, | ||
| IPerm | permission, | ||
| double | timeout, | ||
| IPState | state | ||
| ) |
Definition at line 154 of file indipropertyview.cpp.
| void INDI::PropertyView< INumber >::fill | ( | const char * | device, |
| const char * | name, | ||
| const char * | label, | ||
| const char * | group, | ||
| IPerm | permission, | ||
| double | timeout, | ||
| IPState | state | ||
| ) |
Definition at line 166 of file indipropertyview.cpp.
| void INDI::PropertyView< IBLOB >::fill | ( | const char * | device, |
| const char * | name, | ||
| const char * | label, | ||
| const char * | group, | ||
| IPerm | permission, | ||
| double | timeout, | ||
| IPState | state | ||
| ) |
Definition at line 202 of file indipropertyview.cpp.
| void INDI::PropertyView< T >::fill | ( | const char * | device, |
| const char * | name, | ||
| const char * | label, | ||
| const char * | group, | ||
| IPerm | permission, | ||
| double | timeout, | ||
| IPState | state | ||
| ) |
| void INDI::PropertyView< T >::fill | ( | const char * | device, |
| const char * | name, | ||
| const char * | label, | ||
| const char * | group, | ||
| IPerm | permission, | ||
| double | timeout, | ||
| IPState | state | ||
| ) |
| void INDI::PropertyView< T >::fill | ( | const char * | device, |
| const char * | name, | ||
| const char * | label, | ||
| const char * | group, | ||
| IPerm | permission, | ||
| double | timeout, | ||
| IPState | state | ||
| ) |
| void INDI::PropertyView< ISwitch >::fill | ( | const char * | device, |
| const char * | name, | ||
| const char * | label, | ||
| const char * | group, | ||
| IPerm | permission, | ||
| ISRule | rule, | ||
| double | timeout, | ||
| IPState | state | ||
| ) |
Definition at line 178 of file indipropertyview.cpp.
| void INDI::PropertyView< T >::fill | ( | const char * | device, |
| const char * | name, | ||
| const char * | label, | ||
| const char * | group, | ||
| IPerm | permission, | ||
| ISRule | rule, | ||
| double | timeout, | ||
| IPState | state | ||
| ) |
| void INDI::PropertyView< ILight >::fill | ( | const char * | device, |
| const char * | name, | ||
| const char * | label, | ||
| const char * | group, | ||
| IPState | state | ||
| ) |
Definition at line 190 of file indipropertyview.cpp.
| void INDI::PropertyView< T >::fill | ( | const char * | device, |
| const char * | name, | ||
| const char * | label, | ||
| const char * | group, | ||
| IPState | state | ||
| ) |
|
inline |
Definition at line 140 of file indipropertyview.h.
|
inline |
Definition at line 153 of file indipropertyview.h.
|
inline |
Definition at line 159 of file indipropertyview.h.
|
inline |
Definition at line 1331 of file indipropertyview.h.
|
inline |
Definition at line 1337 of file indipropertyview.h.
|
inline |
Definition at line 1343 of file indipropertyview.h.
|
inline |
Definition at line 1349 of file indipropertyview.h.
|
inline |
Definition at line 1355 of file indipropertyview.h.
|
inline |
Definition at line 1361 of file indipropertyview.h.
|
inline |
Definition at line 216 of file indipropertyview.h.
|
inline |
Definition at line 173 of file indipropertyview.h.
|
inline |
Definition at line 185 of file indipropertyview.h.
|
inline |
Definition at line 181 of file indipropertyview.h.
|
inline |
Definition at line 177 of file indipropertyview.h.
|
inline |
Definition at line 1367 of file indipropertyview.h.
|
inline |
Definition at line 1373 of file indipropertyview.h.
|
inline |
Definition at line 191 of file indipropertyview.h.
|
inline |
Definition at line 1379 of file indipropertyview.h.
|
inline |
Definition at line 1385 of file indipropertyview.h.
|
inline |
Definition at line 197 of file indipropertyview.h.
|
inline |
Definition at line 203 of file indipropertyview.h.
|
inline |
Definition at line 207 of file indipropertyview.h.
|
inline |
Definition at line 1391 of file indipropertyview.h.
|
inline |
Definition at line 1397 of file indipropertyview.h.
|
inline |
Definition at line 212 of file indipropertyview.h.
|
inline |
Definition at line 227 of file indipropertyview.h.
|
inline |
Definition at line 241 of file indipropertyview.h.
|
inline |
Definition at line 245 of file indipropertyview.h.
|
inline |
Definition at line 232 of file indipropertyview.h.
|
inline |
Definition at line 236 of file indipropertyview.h.
|
inline |
Definition at line 146 of file indipropertyview.h.
| bool INDI::PropertyView< IText >::isUpdated | ( | const char *const | texts[], |
| const char *const | names[], | ||
| int | n | ||
| ) | const |
Definition at line 269 of file indipropertyview.cpp.
| bool INDI::PropertyView< T >::isUpdated | ( | const char *const | texts[], |
| const char *const | names[], | ||
| int | n | ||
| ) | const |
| bool INDI::PropertyView< INumber >::isUpdated | ( | const double | values[], |
| const char *const | names[], | ||
| int | n | ||
| ) | const |
Definition at line 281 of file indipropertyview.cpp.
| bool INDI::PropertyView< T >::isUpdated | ( | const double | values[], |
| const char *const | names[], | ||
| int | n | ||
| ) | const |
| bool INDI::PropertyView< ISwitch >::isUpdated | ( | const ISState | states[], |
| const char *const | names[], | ||
| int | n | ||
| ) | const |
Definition at line 293 of file indipropertyview.cpp.
| bool INDI::PropertyView< T >::isUpdated | ( | const ISState | states[], |
| const char *const | names[], | ||
| int | n | ||
| ) | const |
| bool INDI::PropertyView< T >::load | ( | ) |
|
inline |
Definition at line 1199 of file indipropertyview.h.
|
inline |
Definition at line 1205 of file indipropertyview.h.
|
inline |
Definition at line 1211 of file indipropertyview.h.
|
inline |
Definition at line 1217 of file indipropertyview.h.
|
inline |
Definition at line 1223 of file indipropertyview.h.
|
inline |
Definition at line 134 of file indipropertyview.h.
| void INDI::PropertyView< T >::save | ( | FILE * | f | ) | const |
|
inline |
Definition at line 1229 of file indipropertyview.h.
|
inline |
Definition at line 1235 of file indipropertyview.h.
|
inline |
Definition at line 1241 of file indipropertyview.h.
|
inline |
Definition at line 1247 of file indipropertyview.h.
|
inline |
Definition at line 1253 of file indipropertyview.h.
|
inline |
Definition at line 1193 of file indipropertyview.h.
|
inline |
Definition at line 1120 of file indipropertyview.h.
|
inline |
Definition at line 1126 of file indipropertyview.h.
|
inline |
Definition at line 1156 of file indipropertyview.h.
|
inline |
Definition at line 1162 of file indipropertyview.h.
|
inline |
Definition at line 1144 of file indipropertyview.h.
|
inline |
Definition at line 1150 of file indipropertyview.h.
|
inline |
Definition at line 1132 of file indipropertyview.h.
|
inline |
Definition at line 1138 of file indipropertyview.h.
|
inline |
Definition at line 1299 of file indipropertyview.h.
|
inline |
Definition at line 1305 of file indipropertyview.h.
|
inline |
Definition at line 1319 of file indipropertyview.h.
|
inline |
Definition at line 1325 of file indipropertyview.h.
|
inline |
Definition at line 1309 of file indipropertyview.h.
|
inline |
Definition at line 1313 of file indipropertyview.h.
|
inline |
Definition at line 1168 of file indipropertyview.h.
|
inline |
Definition at line 1289 of file indipropertyview.h.
|
inline |
Definition at line 1295 of file indipropertyview.h.
|
inline |
Definition at line 1174 of file indipropertyview.h.
|
inline |
Definition at line 1180 of file indipropertyview.h.
| void INDI::PropertyView< T >::setWidgets | ( | WidgetType * | w, |
| size_t | count | ||
| ) |
|
inline |
Definition at line 1403 of file indipropertyview.h.
|
inline |
Definition at line 1410 of file indipropertyview.h.
|
inline |
Definition at line 1417 of file indipropertyview.h.
|
inline |
Definition at line 1424 of file indipropertyview.h.
|
inline |
Definition at line 1431 of file indipropertyview.h.
|
inline |
Definition at line 1187 of file indipropertyview.h.
| bool INDI::PropertyView< T >::snoop | ( | XMLEle * | root | ) |
|
inline |
Definition at line 1259 of file indipropertyview.h.
|
inline |
Definition at line 1265 of file indipropertyview.h.
|
inline |
Definition at line 1271 of file indipropertyview.h.
|
inline |
Definition at line 1277 of file indipropertyview.h.
|
inline |
Definition at line 1283 of file indipropertyview.h.
| bool INDI::PropertyView< IText >::update | ( | const char *const | texts[], |
| const char *const | names[], | ||
| int | n | ||
| ) |
Definition at line 214 of file indipropertyview.cpp.
| bool INDI::PropertyView< T >::update | ( | const char *const | texts[], |
| const char *const | names[], | ||
| int | n | ||
| ) |
| bool INDI::PropertyView< INumber >::update | ( | const double | values[], |
| const char *const | names[], | ||
| int | n | ||
| ) |
Definition at line 224 of file indipropertyview.cpp.
| bool INDI::PropertyView< T >::update | ( | const double | values[], |
| const char *const | names[], | ||
| int | n | ||
| ) |
| bool INDI::PropertyView< IBLOB >::update | ( | const int | sizes[], |
| const int | blobsizes[], | ||
| const char *const | blobs[], | ||
| const char *const | formats[], | ||
| const char *const | names[], | ||
| int | n | ||
| ) |
Definition at line 244 of file indipropertyview.cpp.
| bool INDI::PropertyView< T >::update | ( | const int | sizes[], |
| const int | blobsizes[], | ||
| const char *const | blobs[], | ||
| const char *const | formats[], | ||
| const char *const | names[], | ||
| int | n | ||
| ) |
| bool INDI::PropertyView< ISwitch >::update | ( | const ISState | states[], |
| const char *const | names[], | ||
| int | n | ||
| ) |
Definition at line 234 of file indipropertyview.cpp.
| bool INDI::PropertyView< T >::update | ( | const ISState | states[], |
| const char *const | names[], | ||
| int | n | ||
| ) |
| void INDI::PropertyView< INumber >::updateMinMax | ( | ) |
Definition at line 262 of file indipropertyview.cpp.
| void INDI::PropertyView< T >::updateMinMax | ( | ) |
| void INDI::PropertyView< IText >::vapply | ( | const char * | format, |
| va_list | arg | ||
| ) | const |
Definition at line 46 of file indipropertyview.cpp.
| void INDI::PropertyView< INumber >::vapply | ( | const char * | format, |
| va_list | arg | ||
| ) | const |
Definition at line 64 of file indipropertyview.cpp.
| void INDI::PropertyView< ISwitch >::vapply | ( | const char * | format, |
| va_list | arg | ||
| ) | const |
Definition at line 82 of file indipropertyview.cpp.
| void INDI::PropertyView< ILight >::vapply | ( | const char * | format, |
| va_list | arg | ||
| ) | const |
Definition at line 100 of file indipropertyview.cpp.
| void INDI::PropertyView< IBLOB >::vapply | ( | const char * | format, |
| va_list | arg | ||
| ) | const |
Definition at line 118 of file indipropertyview.cpp.
| void INDI::PropertyView< T >::vapply | ( | const char * | format, |
| va_list | args | ||
| ) | const |
| void INDI::PropertyView< IText >::vdefine | ( | const char * | format, |
| va_list | arg | ||
| ) | const |
Definition at line 55 of file indipropertyview.cpp.
| void INDI::PropertyView< INumber >::vdefine | ( | const char * | format, |
| va_list | arg | ||
| ) | const |
Definition at line 73 of file indipropertyview.cpp.
| void INDI::PropertyView< ISwitch >::vdefine | ( | const char * | format, |
| va_list | arg | ||
| ) | const |
Definition at line 91 of file indipropertyview.cpp.
| void INDI::PropertyView< ILight >::vdefine | ( | const char * | format, |
| va_list | arg | ||
| ) | const |
Definition at line 109 of file indipropertyview.cpp.
| void INDI::PropertyView< IBLOB >::vdefine | ( | const char * | format, |
| va_list | arg | ||
| ) | const |
Definition at line 127 of file indipropertyview.cpp.
| void INDI::PropertyView< T >::vdefine | ( | const char * | format, |
| va_list | args | ||
| ) | const |
| WidgetType * INDI::PropertyView< T >::widget | ( | ) | const |
|
inline |
Definition at line 1468 of file indipropertyview.h.
|
inline |
Definition at line 1474 of file indipropertyview.h.
|
inline |
Definition at line 1480 of file indipropertyview.h.
|
inline |
Definition at line 1486 of file indipropertyview.h.
|
inline |
Definition at line 1492 of file indipropertyview.h.
|
friend |
Definition at line 90 of file indipropertyview.h.
|
friend |
Definition at line 91 of file indipropertyview.h.
|
friend |
Definition at line 88 of file indipropertyview.h.
|
friend |
Definition at line 89 of file indipropertyview.h.
Definition at line 93 of file indipropertyview.h.