USGS

Isis 3.0 Object Programmers' Reference

Home

JP2Error.cpp
Go to the documentation of this file.
1 
23 #include <iostream>
24 #include <string>
25 #include <sstream>
26 
27 #include "IException.h"
28 #include "JP2Error.h"
29 
30 using namespace std;
31 namespace Isis {
32 
47  void JP2Error::put_text(const char *message) {
48  Message += message;
49  }
50 
57  void JP2Error::add_text(const std::string &message) {
58  if(!Message.empty()) Message += '\n';
59  Message += message;
60  }
61 
68  void JP2Error::flush(bool end_of_message) {
69  throw IException(IException::User, Message.c_str(), _FILEINFO_);
70  }
71 }