53 void setName(
const std::string &name);
56 void setLabel(
const std::string &label);
87 bool isNameMatch(
const std::string &otherName)
const;
103 void save(FILE *f)
const;
112 void vapply(
const char *format, va_list args)
const;
113 void vdefine(
const char *format, va_list args)
const;
150 template <
typename Predicate>
153 return std::find_if(
begin(),
end(), pred);
156 template <
typename Predicate>
159 return std::find_if(
begin(),
end(), pred);
168 PropertyBasic(
const std::shared_ptr<PropertyBasicPrivate> &dd);
170#ifdef INDI_PROPERTY_BACKWARD_COMPATIBILE
void setDeviceName(const char *name)
void push(WidgetView< T > &&item)
void vapply(const char *format, va_list args) const
void setState(IPState state)
bool isLabelMatch(const char *otherLabel) const
const char * getPermissionAsString() const
WidgetView< T > * findWidgetByName(const char *name) const
const char * getDeviceName() const
void setName(const char *name)
bool load()
load Attempt to load property values from configuration file.
WidgetView< T > * begin()
void save(FILE *f) const
save Save property to configuration file.
void vdefine(const char *format, va_list args) const
double getTimeout() const
void setLabel(const char *label)
const char * getName() const
bool isNameMatch(const char *otherName) const
bool snoop(XMLEle *root)
Inspect the root XML and snoop the property if it exists in the root element.
const char * getGroupName() const
const WidgetView< T > * find_if(Predicate pred) const
WidgetView< T > * find_if(Predicate pred)
const char * getStateAsString() const
const char * getLabel() const
void setPermission(IPerm permission)
void void void apply() const
WidgetView< T > & operator[](int index) const
int findWidgetIndexByName(const char *name) const
const WidgetView< T > * at(size_t index) const
const char * getTimestamp() const
void setTimestamp(const char *timestamp)
void setGroupName(const char *name)
void reserve(size_t size)
void setTimeout(double timeout)
IPerm getPermission() const
Provides generic container for INDI properties.
IPerm
Permission hint, with respect to client.
#define ATTRIBUTE_FORMAT_PRINTF(A, B)
#define INDI_DEPRECATED(message)
Namespace to encapsulate INDI client, drivers, and mediator classes.
WidgetView< ISwitch > WidgetViewSwitch
WidgetView< ILight > WidgetViewLight
WidgetView< IText > WidgetViewText
WidgetView< IBLOB > WidgetViewBlob
WidgetView< INumber > WidgetViewNumber
Provides decorator for Low-Level IXXXVectorProperty/IXXX.