Caffa
1.1.0
C++ Application Framework for Embedded Systems with introspection
|
#include <cafObject.h>
Public Types | |
using | GetMethod = std::function< typename FieldType::FieldDataType()> |
using | SetMethod = std::function< void(const typename FieldType::FieldDataType &)> |
Public Member Functions | |
FieldInitHelper (FieldType &field, const std::string &keyword) | |
FieldInitHelper & | withDefault (const typename FieldType::FieldDataType &defaultValue) |
FieldInitHelper & | withScripting (const std::string &scriptFieldKeyword, bool readable=true, bool writable=true) |
FieldInitHelper & | withScripting (bool readable=true, bool writable=true) |
FieldInitHelper & | withAccessor (std::unique_ptr< DataFieldAccessor< typename FieldType::FieldDataType >> accessor) |
FieldInitHelper & | withProxyGetAccessor (GetMethod getMethod) |
FieldInitHelper & | withProxySetAccessor (SetMethod setMethod) |
FieldInitHelper & | withProxyGetSetAccessor (GetMethod getMethod, SetMethod setMethod) |
FieldInitHelper & | withValidator (std::unique_ptr< FieldValidator< typename FieldType::FieldDataType >> validator) |
FieldInitHelper & | withDoc (const std::string &documentation) |
Helper class that is initialised with Object::initField and allows .. addding additional features to the field.