33 auto blob = it.getBlob();
34 if (blob !=
nullptr &&
deleter !=
nullptr)
59 const int sizes[],
const int blobsizes[],
const char *
const blobs[],
const char *
const formats[],
60 const char *
const names[],
int n
64 return d->typedProperty.update(sizes, blobsizes, blobs, formats, names,
n) && (
emitUpdate(),
true);
68 const char *
device,
const char *name,
const char *label,
const char *group,
73 d->typedProperty.setWidgets(d->widgets.data(), d->widgets.size());
74 d->typedProperty.fill(
device, name, label, group, permission, timeout, state);
PropertyBasicPrivateTemplate(size_t count)
std::vector< WidgetView< IBLOB > > widgets
PropertyBasic(PropertyBasicPrivate &dd)
PropertyBlobPrivate(size_t count)
virtual ~PropertyBlobPrivate()
std::function< void(void *&)> deleter
PropertyBlob(size_t count)
void fill(const char *device, const char *name, const char *label, const char *group, IPerm permission, double timeout, IPState state)
void setBlobDeleter(const std::function< void(void *&)> &deleter)
Set the Blob Deleter function You can define a function to release the memory of the elements....
bool update(const int sizes[], const int blobsizes[], const char *const blobs[], const char *const formats[], const char *const names[], int n)
Provides generic container for INDI properties.
std::shared_ptr< PropertyPrivate > d_ptr
friend class PropertyBlob
IPerm
Permission hint, with respect to client.
*brief user defined string literal for JSON values *sa std::size_t n
Namespace to encapsulate INDI client, drivers, and mediator classes.
One Blob (Binary Large Object) descriptor.