46 const std::string &digitalPrefix,
const std::string &analogPrefix)
54 for (
size_t i = 0; i < digital; i++)
56 auto name =
"DIGITAL_INPUT_" + std::to_string(i + 1);
57 auto label = digitalPrefix +
" #" + std::to_string(i + 1);
60 oneLabel.
fill(name, label, label);
76 for (
size_t i = 0; i < analog; i++)
78 auto name =
"ANALOG_INPUT_" + std::to_string(i + 1);
79 auto label = analogPrefix +
" #" + std::to_string(i + 1);
82 oneLabel.
fill(name, label, label);
97 for (
size_t i = 0; i < analog; i++)
99 auto name =
"ANALOG_INPUT_" + std::to_string(i + 1);
100 auto label = analogPrefix +
" #" + std::to_string(i + 1);
106 oneNumber[0].
fill(name, label,
"%.2f", 0, 1e6, 1, 1);
114 for (
size_t i = 0; i < digital; i++)
116 auto name =
"DIGITAL_INPUT_" + std::to_string(i + 1);
117 auto label = digitalPrefix +
" #" + std::to_string(i + 1);
const char * getDeviceName() const
Class to provide extended functionality for devices in addition to the functionality provided by INDI...
virtual bool saveConfig(bool silent=false, const char *property=nullptr)
Save the current properties in a configuration file.
virtual bool deleteProperty(const char *propertyName)
Delete a property and unregister it. It will also be deleted from all clients.
void defineProperty(INumberVectorProperty *property)
void push(WidgetView< T > &&item)
void setState(IPState state)
void apply(const char *format,...) const ATTRIBUTE_FORMAT_PRINTF(2
bool load()
load Attempt to load property values from configuration file.
void save(FILE *f) const
save Save property to configuration file.
bool isNameMatch(const char *otherName) 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, ISRule rule, double timeout, IPState state)
bool update(const char *const texts[], const char *const names[], int n)
void fill(const char *device, const char *name, const char *label, const char *group, IPerm permission, double timeout, IPState state)
INDI::PropertyViewText * getText() const
Namespace to encapsulate INDI client, drivers, and mediator classes.
void fill(const char *device, const char *name, const char *label, const char *group, IPerm permission, double timeout, IPState state)
void fill(const char *name, const char *label, const char *initialText)