Instrument Neutral Distributed Interface INDI  2.0.2
Namespaces | Macros
indiproperty.cpp File Reference
#include "indiproperty.h"
#include "indiproperty_p.h"
#include "basedevice.h"
#include "indipropertytext.h"
#include "indipropertyswitch.h"
#include "indipropertynumber.h"
#include "indipropertylight.h"
#include "indipropertyblob.h"
#include "indipropertytext_p.h"
#include "indipropertyswitch_p.h"
#include "indipropertynumber_p.h"
#include "indipropertylight_p.h"
#include "indipropertyblob_p.h"
#include <cstdlib>
#include <cstring>

Go to the source code of this file.

Namespaces

 INDI
 Namespace to encapsulate INDI client, drivers, and mediator classes.
 

Macros

#define PROPERTY_CASE(CODE)
 

Macro Definition Documentation

◆ PROPERTY_CASE

#define PROPERTY_CASE (   CODE)
Value:
switch (d->property != nullptr ? d->type : INDI_UNKNOWN) \
{ \
case INDI_NUMBER: { auto property = static_cast<PropertyViewNumber *>(d->property); CODE } break; \
case INDI_TEXT: { auto property = static_cast<PropertyViewText *>(d->property); CODE } break; \
case INDI_SWITCH: { auto property = static_cast<PropertyViewSwitch *>(d->property); CODE } break; \
case INDI_LIGHT: { auto property = static_cast<PropertyViewLight *>(d->property); CODE } break; \
case INDI_BLOB: { auto property = static_cast<PropertyViewBlob *>(d->property); CODE } break; \
default:; \
}
@ INDI_LIGHT
Definition: indidriver.c:60
@ INDI_TEXT
Definition: indidriver.c:59
@ INDI_UNKNOWN
Definition: indidriver.c:62
@ INDI_NUMBER
Definition: indidriver.c:57
@ INDI_SWITCH
Definition: indidriver.c:58
@ INDI_BLOB
Definition: indidriver.c:61
PropertyView< IBLOB > PropertyViewBlob
PropertyView< ISwitch > PropertyViewSwitch
PropertyView< ILight > PropertyViewLight
PropertyView< INumber > PropertyViewNumber
PropertyView< IText > PropertyViewText

Definition at line 109 of file indiproperty.cpp.