#include "gdcmTypes.h"
#include "gdcmSystem.h"
#include <iosfwd>
#include <cassert>
Go to the source code of this file.
#define GDCM_FUNCTION "<unknow>" |
#define gdcmAssertMacro |
( |
|
arg | ) |
|
Value:{ \
if( !(arg) ) \
{ \
std::ostringstream osmacro; \
osmacro << "Assert: In " __FILE__ ", line " << __LINE__ \
<< "\n\n"; \
_os << osmacro.str() << std::endl; \
assert ( arg ); \
} \
}
#define GDCM_FUNCTION
Definition: gdcmTrace.h:109
static std::ostream & GetErrorStream()
Assert.
- Parameters
-
arg | argument to test An easy solution to pass also a message is to do: gdcmAssertMacro( "my message" && 2 < 3 ) |
Referenced by gdcm::PixelFormat::SetSamplesPerPixel().
#define gdcmDebugMacro |
( |
|
msg | ) |
|
Value:{ \
{ \
std::ostringstream osmacro; \
osmacro << "Debug: In " __FILE__ ", line " << __LINE__ \
<< "Last system error was: " \
_os << osmacro.str() << "\n\n" << std::endl; \
} \
}
#define GDCM_FUNCTION
Definition: gdcmTrace.h:109
static std::ostream & GetDebugStream()
static const char * GetLastSystemError()
Return the last error.
static bool GetDebugFlag()
Debug.
- Parameters
-
Referenced by gdcm::ByteValue::ByteValue(), gdcm::OpenSSLCryptoFactory::OpenSSLCryptoFactory(), gdcm::OpenSSLP7CryptoFactory::OpenSSLP7CryptoFactory(), gdcm::BasicOffsetTable::Read(), gdcm::SequenceOfItems::Read(), gdcm::Item::Read(), gdcm::VR::Read(), gdcm::SequenceOfFragments::ReadPreValue(), gdcm::SequenceOfFragments::ReadValue(), and gdcm::ByteValue::SetLength().
#define gdcmErrorMacro |
( |
|
msg | ) |
|
#define gdcmWarningMacro |
( |
|
msg | ) |
|