The Check struct Testfunktionen zum Auffinden von Fehlern.
More...
#include <xerror.h>
|
| 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...
|
| |
The Check struct Testfunktionen zum Auffinden von Fehlern.
Definition at line 44 of file xerror.h.
◆ 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
-
| s | Nachricht |
| args | Bedingungen 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
-
| s | Nachricht |
| 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
-
| s | Nachricht |
| 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
-
Definition at line 98 of file xerror.h.
The documentation for this struct was generated from the following file: