|
OTB
9.0.0
Orfeo Toolbox
|
Go to the documentation of this file.
21 #ifndef otbWrapperMacros_h
22 #define otbWrapperMacros_h
25 #define otbAppLogFATAL(x) \
27 std::ostringstream msg; \
28 msg << "" x << std::endl; \
29 this->GetLogger()->Fatal(msg.str()); \
31 std::ostringstream message; \
32 message << "otb::ApplicationException " x; \
33 ::otb::ApplicationException e_(__FILE__, __LINE__, message.str(), ITK_LOCATION); \
38 #define otbAppLogCRITICAL(x) \
40 std::ostringstream msg; \
41 msg << "" x << std::endl; \
42 this->GetLogger()->Write(itk::LoggerBase::CRITICAL, msg.str()); \
45 #define otbAppLogWARNING(x) \
47 std::ostringstream msg; \
48 msg << "" x << std::endl; \
49 this->GetLogger()->Write(itk::LoggerBase::WARNING, msg.str()); \
52 #define otbAppLogINFO(x) \
54 std::ostringstream msg; \
55 msg << "" x << std::endl; \
56 this->GetLogger()->Write(itk::LoggerBase::INFO, msg.str()); \
59 #define otbAppLogDEBUG(x) \
61 std::ostringstream msg; \
62 msg << "" x << std::endl; \
63 this->GetLogger()->Write(itk::LoggerBase::DEBUG, msg.str()); \