AiLibrary  v1.3.0
A single-header C++ Library from Ailurus Studio
Parameter Functions

Functions providing methods to parse and assign parameters. More...

Functions

INLINE std::string ai::parseParameter (const char *input, const std::string name)
 
template<typename T >
INLINE void ai::assignFromVectorByIntervalCondition (T &value, const T parameter, const std::vector< std::vector< T > > intervals)
 
template<typename T >
INLINE void ai::assignFromVectorByIntervalCondition (T &firstValue, T &secondValue, const T parameter, const std::vector< std::vector< T > > intervals)
 
INLINE bool ai::assignBooleanParameter (const char *input, const std::string name, bool &value)
 
INLINE bool ai::assignCharParameter (const char *input, const std::string name, char &value)
 
INLINE bool ai::assignStringParameter (const char *input, const std::string name, std::string &value)
 
template<typename T >
INLINE bool ai::assignParameter (const char *input, const std::string name, T &value)
 
INLINE bool ai::assignAbsDoubleParameter (const char *input, const std::string name, double &value)
 
template<typename T >
INLINE bool ai::assignByCheckingParameter (const char *input, const std::string parameter, T &value, const T supposed)
 

Detailed Description

Group of functions that is useful to parse parameters (e.g., from command line) and assign its values to your variables

Function Documentation

◆ assignAbsDoubleParameter()

INLINE bool ai::assignAbsDoubleParameter ( const char *  input,
const std::string  name,
double &  value 
)
Here is the call graph for this function:

◆ assignBooleanParameter()

INLINE bool ai::assignBooleanParameter ( const char *  input,
const std::string  name,
bool &  value 
)
Here is the call graph for this function:

◆ assignByCheckingParameter()

template<typename T >
INLINE bool ai::assignByCheckingParameter ( const char *  input,
const std::string  parameter,
T &  value,
const T  supposed 
)
Template Parameters
TAny type
Here is the call graph for this function:

◆ assignCharParameter()

INLINE bool ai::assignCharParameter ( const char *  input,
const std::string  name,
char &  value 
)
Here is the call graph for this function:

◆ assignFromVectorByIntervalCondition() [1/2]

template<typename T >
INLINE void ai::assignFromVectorByIntervalCondition ( T &  value,
const T  parameter,
const std::vector< std::vector< T > >  intervals 
)
Template Parameters
TAny comparable type

◆ assignFromVectorByIntervalCondition() [2/2]

template<typename T >
INLINE void ai::assignFromVectorByIntervalCondition ( T &  firstValue,
T &  secondValue,
const T  parameter,
const std::vector< std::vector< T > >  intervals 
)
Template Parameters
TAny comparable type

◆ assignParameter()

template<typename T >
INLINE bool ai::assignParameter ( const char *  input,
const std::string  name,
T &  value 
)
Template Parameters
TAny printable type
Here is the call graph for this function:

◆ assignStringParameter()

INLINE bool ai::assignStringParameter ( const char *  input,
const std::string  name,
std::string &  value 
)
Here is the call graph for this function:

◆ parseParameter()

INLINE std::string ai::parseParameter ( const char *  input,
const std::string  name 
)
Here is the call graph for this function: