Instrument Neutral Distributed Interface INDI
2.0.2
|
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> | |
int | findOnSwitchIndex () 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 |
void | save (FILE *f) const |
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) |
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 () |
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 |
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 1078 of file indipropertyview.h.
|
inline |
Definition at line 246 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 321 of file indipropertyview.h.
|
inline |
Definition at line 312 of file indipropertyview.h.
|
inline |
Definition at line 340 of file indipropertyview.h.
|
inlinestatic |
Definition at line 336 of file indipropertyview.h.
|
inline |
Definition at line 326 of file indipropertyview.h.
int INDI::PropertyView< T >::count | ( | ) | const |
|
inline |
Definition at line 1342 of file indipropertyview.h.
|
inline |
Definition at line 1348 of file indipropertyview.h.
|
inline |
Definition at line 1354 of file indipropertyview.h.
|
inline |
Definition at line 1360 of file indipropertyview.h.
|
inline |
Definition at line 1366 of file indipropertyview.h.
|
inline |
Definition at line 250 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 316 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 146 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 1259 of file indipropertyview.h.
|
inline |
Definition at line 1265 of file indipropertyview.h.
|
inline |
Definition at line 199 of file indipropertyview.h.
|
inline |
Definition at line 156 of file indipropertyview.h.
|
inline |
Definition at line 168 of file indipropertyview.h.
|
inline |
Definition at line 164 of file indipropertyview.h.
|
inline |
Definition at line 160 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 174 of file indipropertyview.h.
|
inline |
Definition at line 1283 of file indipropertyview.h.
|
inline |
Definition at line 1289 of file indipropertyview.h.
|
inline |
Definition at line 180 of file indipropertyview.h.
|
inline |
Definition at line 186 of file indipropertyview.h.
|
inline |
Definition at line 190 of file indipropertyview.h.
|
inline |
Definition at line 1295 of file indipropertyview.h.
|
inline |
Definition at line 1301 of file indipropertyview.h.
|
inline |
Definition at line 195 of file indipropertyview.h.
|
inline |
Definition at line 210 of file indipropertyview.h.
|
inline |
Definition at line 224 of file indipropertyview.h.
|
inline |
Definition at line 228 of file indipropertyview.h.
|
inline |
Definition at line 215 of file indipropertyview.h.
|
inline |
Definition at line 219 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 1163 of file indipropertyview.h.
|
inline |
Definition at line 1169 of file indipropertyview.h.
|
inline |
Definition at line 1175 of file indipropertyview.h.
|
inline |
Definition at line 1181 of file indipropertyview.h.
|
inline |
Definition at line 1187 of file indipropertyview.h.
|
inline |
Definition at line 1157 of file indipropertyview.h.
|
inline |
Definition at line 1084 of file indipropertyview.h.
|
inline |
Definition at line 1090 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 1108 of file indipropertyview.h.
|
inline |
Definition at line 1114 of file indipropertyview.h.
|
inline |
Definition at line 1096 of file indipropertyview.h.
|
inline |
Definition at line 1102 of file indipropertyview.h.
|
inline |
Definition at line 1203 of file indipropertyview.h.
|
inline |
Definition at line 1209 of file indipropertyview.h.
|
inline |
Definition at line 1223 of file indipropertyview.h.
|
inline |
Definition at line 1229 of file indipropertyview.h.
|
inline |
Definition at line 1213 of file indipropertyview.h.
|
inline |
Definition at line 1217 of file indipropertyview.h.
|
inline |
Definition at line 1132 of file indipropertyview.h.
|
inline |
Definition at line 1193 of file indipropertyview.h.
|
inline |
Definition at line 1199 of file indipropertyview.h.
|
inline |
Definition at line 1138 of file indipropertyview.h.
|
inline |
Definition at line 1144 of file indipropertyview.h.
void INDI::PropertyView< T >::setWidgets | ( | WidgetType * | w, |
size_t | count | ||
) |
|
inline |
Definition at line 1307 of file indipropertyview.h.
|
inline |
Definition at line 1314 of file indipropertyview.h.
|
inline |
Definition at line 1321 of file indipropertyview.h.
|
inline |
Definition at line 1328 of file indipropertyview.h.
|
inline |
Definition at line 1335 of file indipropertyview.h.
|
inline |
Definition at line 1151 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 1372 of file indipropertyview.h.
|
inline |
Definition at line 1378 of file indipropertyview.h.
|
inline |
Definition at line 1384 of file indipropertyview.h.
|
inline |
Definition at line 1390 of file indipropertyview.h.
|
inline |
Definition at line 1396 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.