#include "gdcmTypes.h"
#include "gdcmSystem.h"
#include <iosfwd>
#include <cassert>
Go to the source code of this file.
◆ GDCM_FUNCTION
| #define GDCM_FUNCTION "<unknown>" |
◆ gdcmAssertAlwaysMacro
AssertAlways.
- Parameters
-
| arg | argument to test An easy solution to pass also a message is to do: gdcmAssertMacro( "my message" && 2 < 3 ) |
◆ gdcmAssertMacro
| #define gdcmAssertMacro |
( |
|
arg | ) |
|
Value:{ \
if( !(arg) ) \
{ \
std::ostringstream osmacro; \
osmacro << "Assert: In " __FILE__ ", line " << __LINE__ \
<< "\n\n"; \
_os << osmacro.str() << std::endl; \
assert ( arg ); \
} \
} \
static std::ostream & GetErrorStream()
#define GDCM_NOOP_STATEMENT
Definition gdcmLegacyMacro.h:57
#define GDCM_FUNCTION
Definition gdcmTrace.h:109
Assert.
- Parameters
-
| arg | argument to test An easy solution to pass also a message is to do: gdcmAssertMacro( "my message" && 2 < 3 ) |
◆ gdcmDebugMacro
| #define gdcmDebugMacro |
( |
|
msg | ) |
|
Value:{ \
{ \
std::ostringstream osmacro; \
osmacro << "Debug: In " __FILE__ ", line " << __LINE__ \
<< "Last system error was: " \
_os << osmacro.str() << "\n\n" << std::endl; \
} \
} \
static const char * GetLastSystemError()
Return the last error.
static std::ostream & GetDebugStream()
static bool GetDebugFlag()
Debug.
- Parameters
-
◆ gdcmErrorMacro
| #define gdcmErrorMacro |
( |
|
msg | ) |
|
Value:{ \
{ \
std::ostringstream osmacro; \
osmacro << "Error: In " __FILE__ ", line " << __LINE__ \
<< msg << "\n\n"; \
_os << osmacro.str() << std::endl; \
} \
} \
static bool GetErrorFlag()
Error this is pretty bad, more than just warning It could mean lost of data, something not handle...
- Parameters
-
◆ gdcmWarningMacro
| #define gdcmWarningMacro |
( |
|
msg | ) |
|
Value:{ \
{ \
std::ostringstream osmacro; \
osmacro << "Warning: In " __FILE__ ", line " << __LINE__ \
<< msg << "\n\n"; \
_os << osmacro.str() << std::endl; \
} \
} \
static bool GetWarningFlag()
static std::ostream & GetWarningStream()
Warning.
- Parameters
-