Caffa  1.1.0
C++ Application Framework for Embedded Systems with introspection
Public Types | Public Member Functions | List of all members
caffa::FieldInitHelper< FieldType > Class Template Reference

#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)
 
FieldInitHelperwithDefault (const typename FieldType::FieldDataType &defaultValue)
 
FieldInitHelperwithScripting (const std::string &scriptFieldKeyword, bool readable=true, bool writable=true)
 
FieldInitHelperwithScripting (bool readable=true, bool writable=true)
 
FieldInitHelperwithAccessor (std::unique_ptr< DataFieldAccessor< typename FieldType::FieldDataType >> accessor)
 
FieldInitHelperwithProxyGetAccessor (GetMethod getMethod)
 
FieldInitHelperwithProxySetAccessor (SetMethod setMethod)
 
FieldInitHelperwithProxyGetSetAccessor (GetMethod getMethod, SetMethod setMethod)
 
FieldInitHelperwithValidator (std::unique_ptr< FieldValidator< typename FieldType::FieldDataType >> validator)
 
FieldInitHelperwithDoc (const std::string &documentation)
 

Detailed Description

template<typename FieldType>
class caffa::FieldInitHelper< FieldType >

Helper class that is initialised with Object::initField and allows .. addding additional features to the field.


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