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

#include <cafMethodInitHelper.h>

Public Member Functions

 MethodInitHelper (MethodType &method, const std::string &keyword)
 
MethodInitHelperwithDoc (const std::string &documentation)
 Apply documentation. More...
 
MethodInitHelperwithArgumentNames (const std::vector< std::string > &argumentNames)
 Set argument names. Required for positional arguments. More...
 
MethodInitHelpermakeConst ()
 Make the method a const method that cannot alter values Analoguous to a regular const object method. More...
 

Detailed Description

template<DerivesFromMethodHandle MethodType>
class caffa::MethodInitHelper< MethodType >

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

Member Function Documentation

◆ makeConst()

template<DerivesFromMethodHandle MethodType>
MethodInitHelper& caffa::MethodInitHelper< MethodType >::makeConst ( )
inline

Make the method a const method that cannot alter values Analoguous to a regular const object method.

Returns
MethodInitHelper&

◆ withArgumentNames()

template<DerivesFromMethodHandle MethodType>
MethodInitHelper& caffa::MethodInitHelper< MethodType >::withArgumentNames ( const std::vector< std::string > &  argumentNames)
inline

Set argument names. Required for positional arguments.

Parameters
argumentNamesA list of argument names applied positionally.
Returns
MethodInitHelper&

◆ withDoc()

template<DerivesFromMethodHandle MethodType>
MethodInitHelper& caffa::MethodInitHelper< MethodType >::withDoc ( const std::string &  documentation)
inline

Apply documentation.

Parameters
documentation
Returns
MethodInitHelper&

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