tfel
Loading...
Searching...
No Matches
tfel::utilities::ArgumentParser::CallBack Struct Reference

structure describing an action to be performed when a argument is treated More...

#include </home/runner/work/tfel/tfel/include/TFEL/Utilities/ArgumentParser.hxx>

Public Member Functions

 CallBack ()=delete
 default constructor (deleted)
 CallBack (const std::string &, const std::function< void()> &, const bool)
 constructor
 CallBack (CallBack &&) noexcept
 move constructor
 CallBack (const CallBack &)
 copy constructor (deleted)
CallBack & operator= (CallBack &&) noexcept=delete
 move assignement
CallBack & operator= (const CallBack &)=delete
 assignement

Public Attributes

const std::string d
 description
std::function< void()> c
 action performed
const bool hasOption = false
 flag, true if the callback has an option

Detailed Description

structure describing an action to be performed when a argument is treated

Constructor & Destructor Documentation

◆ CallBack()

tfel::utilities::ArgumentParser::CallBack::CallBack ( const std::string & ,
const std::function< void()> & ,
const bool  )

constructor

Parameters
[in]d_description
[in]c_action
[in]b: true if the callback requires an option

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