FACT++  1.0
fits::fits ( const std::string &  fname,
const std::string &  fout,
const std::string &  tableName,
bool  force = false 
)
inline

Definition at line 725 of file fits.h.

References ___err___, clear(), gLog, fits::Table::is_compressed, and fits::Table::name.

725  : izstream(fname.c_str())
726  {
727  Constructor(fname, fout, tableName, force);
728  if ((fTable.is_compressed || fTable.name=="ZDrsCellOffsets") && !force)
729  {
730 #ifdef __EXCEPTIONS
731  throw std::runtime_error("Trying to read a compressed fits with the base fits class. Use factfits instead.");
732 #else
733  gLog << ___err___ << "ERROR - Trying to read a compressed fits with the base fits class. Use factfits instead." << std::endl;
734 #endif
735  clear(rdstate()|std::ios::badbit);
736  }
737  }
bool is_compressed
Definition: fits.h:93
std::string name
Definition: fits.h:95
#define gLog
Definition: fits.h:36
#define ___err___
Definition: fits.h:37
Table fTable
Definition: fits.h:502
izstream()
Definition: izstream.h:52
void clear()
Definition: HeadersFTM.h:216
void Constructor(const std::string &fname, std::string fout="", const std::string &tableName="", bool force=false)
Definition: fits.h:571

+ Here is the call graph for this function: