Sharg 1.1.2-rc.1
The argument parser for bio-c++ tools.
Loading...
Searching...
No Matches
format_tdl.hpp File Reference

Provides the format_tdl struct and its helper functions. More...

#include <concepts>
#include <numeric>
#include <sharg/detail/format_base.hpp>
#include <sharg/validators.hpp>
#include <tdl/tdl.h>
+ Include dependency graph for format_tdl.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  sharg::detail::format_tdl
 A generalized format to create different tool description files. More...
 

Functions

auto sharg::detail::to_tdl (bool v)
 converts a value into the corresponding tdl value type
 
auto sharg::detail::to_tdl (std::integral auto v)
 
auto sharg::detail::to_tdl (std::floating_point auto v)
 
auto sharg::detail::to_tdl (std::string const &v)
 
auto sharg::detail::to_tdl (auto v)
 

Detailed Description

Provides the format_tdl struct and its helper functions.

Author
Simon Gene Gottlieb <simon.gottlieb AT fu-berlin.de>

Function Documentation

◆ to_tdl() [1/5]

auto sharg::detail::to_tdl ( auto v)
Parameters
vThe value to convert.
Returns
the matching tdl type.

◆ to_tdl() [2/5]

auto sharg::detail::to_tdl ( bool v)
inline

converts a value into the corresponding tdl value type

Parameters
vThe value to convert.
Returns
the matching tdl type.

◆ to_tdl() [3/5]

auto sharg::detail::to_tdl ( std::floating_point auto v)
Parameters
vThe value to convert.
Returns
the matching tdl type.

◆ to_tdl() [4/5]

auto sharg::detail::to_tdl ( std::integral auto v)
Parameters
vThe value to convert.
Returns
the matching tdl type.

◆ to_tdl() [5/5]

auto sharg::detail::to_tdl ( std::string const & v)
inline
Parameters
vThe value to convert.
Returns
the matching tdl type.
Hide me