tfel
Loading...
Searching...
No Matches
TestCaseParameters.hxx File Reference

Functions

MFMTG_VISIBILITY_EXPORT bool mfmtg::contains (const TestCaseParameters &, const std::string &)
MFMTG_VISIBILITY_EXPORT bool mfmtg::contains (const TestCaseParameters &, const char *const)
template<typename StringType, typename... StringTypes>
bool mfmtg::contains (const TestCaseParameters &, const StringType &, const StringTypes &...)
template<typename StringType, typename... StringTypes>
const TestCaseParameter & mfmtg::getParameter (const TestCaseParameters &, const StringType &, const StringTypes &...)
MFMTG_VISIBILITY_EXPORT const TestCaseParameter & mfmtg::getParameter (const TestCaseParameters &, const std::string &)
MFMTG_VISIBILITY_EXPORT const TestCaseParameter & mfmtg::getParameter (const TestCaseParameters &, const char *const)
MFMTG_VISIBILITY_EXPORT const TestCaseParameters & mfmtg::getTestCaseParameters (const TestCaseParameters &, const std::string &)
MFMTG_VISIBILITY_EXPORT const TestCaseParameters & mfmtg::getTestCaseParameters (const TestCaseParameters &, const char *const)
template<typename T = std::string, typename StringType, typename... StringTypes>
const T & mfmtg::get (const TestCaseParameters &parameters, const StringType &n, const StringTypes &... args)
template<typename T = std::string, typename StringType>
const T & mfmtg::get (const TestCaseParameters &, const StringType &)
template<typename T = std::string, typename StringType, typename T2>
T mfmtg::get_if (const TestCaseParameters &, const StringType &, const T2 &)
template<typename StringType, typename... StringTypes>
Evolution mfmtg::getEvolution (const TestCaseParameters &, const StringType &, const StringTypes &...)
MFMTG_VISIBILITY_EXPORT Evolution mfmtg::getEvolution (const TestCaseParameters &, const std::string &)
MFMTG_VISIBILITY_EXPORT Evolution mfmtg::getEvolution (const TestCaseParameters &, const char *const)
template<typename StringType, typename... StringTypes>
std::map< std::string, Evolution > mfmtg::getEvolutions (const TestCaseParameters &, const StringType &, const StringTypes &..., const bool=true)
MFMTG_VISIBILITY_EXPORT std::map< std::string, Evolution > mfmtg::getEvolutions (const TestCaseParameters &, const std::string &, const bool=true)
MFMTG_VISIBILITY_EXPORT std::map< std::string, Evolution > mfmtg::getEvolutions (const TestCaseParameters &, const char *const, const bool=true)
MFMTG_VISIBILITY_EXPORT void mfmtg::check (const TestCaseParameters &, const std::vector< std::string > &)
 check that the parameters' names are part of the one given list.
MFMTG_VISIBILITY_EXPORT void mfmtg::throwInvalidParameterTypeException (const std::string &)

Detailed Description

Author
Thomas Helfer
Date
17/09/2019

Function Documentation

◆ check()

MFMTG_VISIBILITY_EXPORT void mfmtg::check ( const TestCaseParameters & ,
const std::vector< std::string > &  )

check that the parameters' names are part of the one given list.

Parameters
mparameters.
kallowed names.

◆ contains() [1/3]

MFMTG_VISIBILITY_EXPORT bool mfmtg::contains ( const TestCaseParameters & ,
const char * const  )
Returns
true if a parameter with the given name exists
Parameters
[in]pparameters
[in]nname of the parameter.

◆ contains() [2/3]

MFMTG_VISIBILITY_EXPORT bool mfmtg::contains ( const TestCaseParameters & ,
const std::string &  )
Returns
true if a parameter with the given name exists
Parameters
[in]pparameters
[in]nname of the parameter.

◆ contains() [3/3]

template<typename StringType, typename... StringTypes>
bool mfmtg::contains ( const TestCaseParameters & ,
const StringType & ,
const StringTypes & ... )
Returns
true if a parameter associated the given identifiers exists.
Parameters
[in]pparameters
[in]nfirst level identitifer.
[in]argshigher level identifiers.

◆ get() [1/2]

template<typename T = std::string, typename StringType>
const T & mfmtg::get ( const TestCaseParameters & parameters,
const StringType & n )
Returns
the parameter with the given name
Parameters
[in]pparameters
[in]nname of the parameter to be retrieved.

◆ get() [2/2]

template<typename T = std::string, typename StringType, typename... StringTypes>
const T & mfmtg::get ( const TestCaseParameters & parameters,
const StringType & n,
const StringTypes &... args )
Returns
the parameter with the given identifiers
Parameters
[in]pparameters
[in]nfirst level identitifer.
[in]argshigher level identifiers.

◆ get_if()

template<typename T = std::string, typename StringType, typename T2>
T mfmtg::get_if ( const TestCaseParameters & parameters,
const StringType & n,
const T2 & v )
Returns
the parameter with the given name if it exits a default value otherwise.
Parameters
[in]pparameters
[in]nname of the parameter to be retrieved.
[in]vdefault value.

◆ getEvolution() [1/3]

MFMTG_VISIBILITY_EXPORT Evolution mfmtg::getEvolution ( const TestCaseParameters & ,
const char * const  )
Returns
the evolution stored at the given address
Parameters
[in]pparameters
[in]naddress of the to be retrieved.

◆ getEvolution() [2/3]

MFMTG_VISIBILITY_EXPORT Evolution mfmtg::getEvolution ( const TestCaseParameters & ,
const std::string &  )
Returns
the evolution stored at the given address
Parameters
[in]pparameters
[in]naddress of the to be retrieved.

◆ getEvolution() [3/3]

template<typename StringType, typename... StringTypes>
Evolution mfmtg::getEvolution ( const TestCaseParameters & ,
const StringType & ,
const StringTypes & ... )
Returns
the evolution stored at the given address
Parameters
[in]pparameters
[in]nfirst level identitifer.
[in]argshigher level identifiers.

◆ getEvolutions() [1/3]

MFMTG_VISIBILITY_EXPORT std::map< std::string, Evolution > mfmtg::getEvolutions ( const TestCaseParameters & ,
const char * const ,
const bool = true )
Returns
the evolutions stored at the given address
Parameters
[in]pparameters
[in]naddress of the to be retrieved.
[in]bboolean value. If true and that if the last identifier does not exist, an empty evolution is returned.

◆ getEvolutions() [2/3]

MFMTG_VISIBILITY_EXPORT std::map< std::string, Evolution > mfmtg::getEvolutions ( const TestCaseParameters & ,
const std::string & ,
const bool = true )
Returns
the evolutions stored at the given address
Parameters
[in]pparameters
[in]naddress of the to be retrieved.
[in]bboolean value. If true and that if the last identifier does not exist, an empty evolution is returned.

◆ getEvolutions() [3/3]

template<typename StringType, typename... StringTypes>
std::map< std::string, Evolution > mfmtg::getEvolutions ( const TestCaseParameters & ,
const StringType & ,
const StringTypes & ...,
const bool = true )
Returns
the evolutions stored at the given address
Parameters
[in]pparameters
[in]nfirst level identitifer.
[in]argshigher level identifiers.
[in]bboolean value. If true and that if the last identifier does not exist, an empty evolution is returned.

◆ getParameter() [1/3]

MFMTG_VISIBILITY_EXPORT const TestCaseParameter & mfmtg::getParameter ( const TestCaseParameters & ,
const char * const  )
Returns
the parameter with the given name
Parameters
[in]pparameters
[in]nname of the parameter to be retrieved.

◆ getParameter() [2/3]

MFMTG_VISIBILITY_EXPORT const TestCaseParameter & mfmtg::getParameter ( const TestCaseParameters & ,
const std::string &  )
Returns
the parameter with the given name
Parameters
[in]pparameters
[in]nname of the parameter to be retrieved.

◆ getParameter() [3/3]

template<typename StringType, typename... StringTypes>
const TestCaseParameter & mfmtg::getParameter ( const TestCaseParameters & ,
const StringType & ,
const StringTypes & ... )
Returns
the parameter with the given name
Parameters
[in]pparameters
[in]nfirst level identitifer.
[in]argshigher level identifiers.

◆ getTestCaseParameters() [1/2]

MFMTG_VISIBILITY_EXPORT const TestCaseParameters & mfmtg::getTestCaseParameters ( const TestCaseParameters & ,
const char * const  )
Returns
the parameter with the given name
Parameters
[in]pparameters
[in]nname of the parameter to be retrieved.

◆ getTestCaseParameters() [2/2]

MFMTG_VISIBILITY_EXPORT const TestCaseParameters & mfmtg::getTestCaseParameters ( const TestCaseParameters & ,
const std::string &  )
Returns
the parameter with the given name
Parameters
[in]pparameters
[in]nname of the parameter to be retrieved.

◆ throwInvalidParameterTypeException()

MFMTG_VISIBILITY_EXPORT void mfmtg::throwInvalidParameterTypeException ( const std::string & )
Exceptions
anexception reporting that the type of the parameter with the given name is not the one that what was requested.
Parameters
[in]nname of the missing parameter