Instrument Neutral Distributed Interface INDI 2.2.5
INDI::PropertyLight Class Reference

#include <indipropertylight.h>

Inheritance diagram for INDI::PropertyLight:
INDI::PropertyBasic< ILight > INDI::Property

Public Member Functions

 PropertyLight (size_t count)
 PropertyLight (INDI::Property property)
 ~PropertyLight ()
void fill (const char *device, const char *name, const char *label, const char *group, IPState state)
Public Member Functions inherited from INDI::PropertyBasic< ILight >
 ~PropertyBasic ()
void setDeviceName (const char *name)
void setName (const char *name)
void setLabel (const char *label)
void setGroupName (const char *name)
void setPermission (IPerm permission)
void setTimeout (double timeout)
void setState (IPState state)
void setTimestamp (const char *timestamp)
const char * getDeviceName () const
const char * getName () const
const char * getLabel () const
const char * getGroupName () const
IPerm getPermission () const
const char * getPermissionAsString () const
double getTimeout () const
IPState getState () const
const char * getStateAsString () const
const char * getTimestamp () const
bool isEmpty () const
bool isNameMatch (const char *otherName) const
bool isLabelMatch (const char *otherLabel) const
bool load ()
 load Attempt to load property values from configuration file.
void save (FILE *f) const
 save Save property to configuration file.
bool snoop (XMLEle *root)
 Inspect the root XML and snoop the property if it exists in the root element.
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
size_t size () const
size_t count () const
void reserve (size_t size)
void resize (size_t size)
void shrink_to_fit ()
void push (WidgetView< ILight > &&item)
const WidgetView< ILight > * at (size_t index) const
WidgetView< ILight > & operator[] (int index) const
WidgetView< ILight > * begin ()
WidgetView< ILight > * end ()
WidgetView< ILight > * find_if (Predicate pred)
WidgetView< ILight > * findWidgetByName (const char *name) const
int findWidgetIndexByName (const char *name) const
INDI::PropertyView< ILight > * operator-> ()
INDI::PropertyView< ILight > operator* ()
Public Member Functions inherited from INDI::Property
 Property ()
 ~Property ()
 Property (INDI::PropertyNumber property)
 Property (INDI::PropertyText property)
 Property (INDI::PropertySwitch property)
 Property (INDI::PropertyLight property)
 Property (INDI::PropertyBlob property)
 Property (INumberVectorProperty *property)
 Property (ITextVectorProperty *property)
 Property (ISwitchVectorProperty *property)
 Property (ILightVectorProperty *property)
 Property (IBLOBVectorProperty *property)
 Property (INDI::PropertyViewNumber *property)
 Property (INDI::PropertyViewText *property)
 Property (INDI::PropertyViewSwitch *property)
 Property (INDI::PropertyViewLight *property)
 Property (INDI::PropertyViewBlob *property)
void setProperty (void *)
void setType (INDI_PROPERTY_TYPE t)
void setRegistered (bool r)
void setDynamic (bool d)
void setBaseDevice (BaseDevice *idp)
void setBaseDevice (BaseDevice device)
void * getProperty () const
INDI_PROPERTY_TYPE getType () const
const char * getTypeAsString () const
bool getRegistered () const
bool isDynamic () const
BaseDevice getBaseDevice () const
void setName (const char *name)
void setLabel (const char *label)
void setGroupName (const char *groupName)
void setDeviceName (const char *deviceName)
void setTimestamp (const char *timestamp)
void setState (IPState state)
void setPermission (IPerm permission)
void setTimeout (double timeout)
const char * getName () const
const char * getLabel () const
const char * getGroupName () const
const char * getDeviceName () const
const char * getTimestamp () const
IPState getState () const
const char * getStateAsString () const
IPerm getPermission () const
bool isEmpty () const
bool isValid () 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 isDeviceNameMatch (const char *otherDeviceName) const
bool isDeviceNameMatch (const std::string &otherDeviceName) const
bool isTypeMatch (INDI_PROPERTY_TYPE otherType) const
void onUpdate (const std::function< void()> &callback)
void emitUpdate ()
bool hasUpdateCallback () const
bool load ()
void save (FILE *fp) 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
INDI::PropertyViewNumber * getNumber () const
INDI::PropertyViewText * getText () const
INDI::PropertyViewSwitch * getSwitch () const
INDI::PropertyViewLight * getLight () const
INDI::PropertyViewBlob * getBLOB () const
INDI::Property * operator-> ()
const INDI::Property * operator-> () const
 operator INDI::Property * ()
 operator const INDI::Property * () const
 operator INDI::PropertyViewNumber * () const
 operator INDI::PropertyViewText * () const
 operator INDI::PropertyViewSwitch * () const
 operator INDI::PropertyViewLight * () const
 operator INDI::PropertyViewBlob * () const
bool operator!= (std::nullptr_t) const
bool operator== (std::nullptr_t) const
 operator bool () const
 operator bool ()

Additional Inherited Members

Public Types inherited from INDI::PropertyBasic< ILight >
using ViewType
Protected Member Functions inherited from INDI::PropertyBasic< ILight >
PropertyView< ILight > * operator& ()
 PropertyBasic (PropertyBasicPrivate &dd)
Protected Member Functions inherited from INDI::Property
 Property (const std::shared_ptr< PropertyPrivate > &dd)
 Property (PropertyPrivate &dd)
INDI::Property * self ()
Protected Attributes inherited from INDI::Property
std::shared_ptr< PropertyPrivate > d_ptr

Detailed Description

Examples
dome.h, and raindetector.h.

Definition at line 27 of file indipropertylight.h.

Constructor & Destructor Documentation

◆ PropertyLight() [1/2]

INDI::PropertyLight::PropertyLight ( size_t count)

Definition at line 32 of file indipropertylight.cpp.

◆ PropertyLight() [2/2]

INDI::PropertyLight::PropertyLight ( INDI::Property property)

Definition at line 36 of file indipropertylight.cpp.

◆ ~PropertyLight()

INDI::PropertyLight::~PropertyLight ( )

Definition at line 40 of file indipropertylight.cpp.

Member Function Documentation

◆ fill()

void INDI::PropertyLight::fill ( const char * device,
const char * name,
const char * label,
const char * group,
IPState state )

Definition at line 43 of file indipropertylight.cpp.


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