Isis Developer Reference
JP2Error.h
Go to the documentation of this file.
1 #ifndef JP2Error_h
2 #define JP2Error_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 #include <string>
10 
11 #if ENABLEJP2K
12 #include "jp2.h"
13 #endif
14 
15 namespace Isis {
35 #if ENABLEJP2K
36  class JP2Error : public kdu_core::kdu_thread_safe_message {
37 #else
38  class JP2Error {
39 #endif
40  public:
42  void put_text(const char *message);
43 
45  void add_text(const std::string &message);
46 
48  void flush(bool end_of_message = false);
49 
51  std::string Message;
52  };
53 };
54 #endif
JP2Error.h
Isis::JP2Error
Kakadu error messaging class.
Definition: JP2Error.h:38
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Isis::JP2Error::add_text
void add_text(const std::string &message)
Write Kakadu error messages using ISIS methods.
Definition: JP2Error.cpp:41
Isis::IException
Isis exception class.
Definition: IException.h:91
Isis::JP2Error::flush
void flush(bool end_of_message=false)
Used to store accumulated Kakadu error messages.
Definition: JP2Error.cpp:52
Isis::JP2Error::Message
std::string Message
Definition: JP2Error.h:51
IException.h
std
Namespace for the standard library.
Isis::JP2Error::put_text
void put_text(const char *message)
<Save text from a Kakadu produced error
Definition: JP2Error.cpp:31
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16