Static Public Member Functions | List of all members
nmx::Check Struct Reference

The Check struct Testfunktionen zum Auffinden von Fehlern. More...

#include <xerror.h>

Static Public Member Functions

template<class X = std::runtime_error>
static void error_if (const std::string &s, bool arg)
 error_if Fehler wenn Bedingung erfüllt ist More...
 
template<class X = std::runtime_error>
static void error_if_not (const std::string &s, bool arg)
 error_if_not Fehler wenn Bedingung nicht erfüllt ist More...
 
template<class X = std::invalid_argument>
static void all (const std::string &s, std::initializer_list< bool > lst)
 input teste mehrere Bedingungen auf einmal More...
 
template<class T , class X = std::invalid_argument>
static void ptr (const std::string &s, T *ptr)
 null_ptr teste Zeiger auf Gültigkeit More...
 

Detailed Description

The Check struct Testfunktionen zum Auffinden von Fehlern.

Definition at line 44 of file xerror.h.

Member Function Documentation

◆ all()

template<class X = std::invalid_argument>
static void nmx::Check::all ( const std::string &  s,
std::initializer_list< bool >  lst 
)
inlinestatic

input teste mehrere Bedingungen auf einmal

Parameters
sNachricht
argsBedingungen für Eingabeparameter wenn eine nicht erfüllt ist wird eine Ausnahme ausgeworfen

Definition at line 76 of file xerror.h.

◆ error_if()

template<class X = std::runtime_error>
static void nmx::Check::error_if ( const std::string &  s,
bool  arg 
)
inlinestatic

error_if Fehler wenn Bedingung erfüllt ist

Parameters
sNachricht
arg(Bedingung) wenn true wird eine Ausnahme ausgeworfen

Definition at line 51 of file xerror.h.

◆ error_if_not()

template<class X = std::runtime_error>
static void nmx::Check::error_if_not ( const std::string &  s,
bool  arg 
)
inlinestatic

error_if_not Fehler wenn Bedingung nicht erfüllt ist

Parameters
sNachricht
arg(Bedingung) wenn false wird Ausnahme ausgeworfen

Definition at line 63 of file xerror.h.

◆ ptr()

template<class T , class X = std::invalid_argument>
static void nmx::Check::ptr ( const std::string &  s,
T *  ptr 
)
inlinestatic

null_ptr teste Zeiger auf Gültigkeit

Parameters
sNachricht
ptrZeiger

Definition at line 98 of file xerror.h.


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