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

Definition at line 711 of file fits.h.

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

711  : izstream(fname.c_str())
712  {
713  Constructor(fname, "", tableName, force);
714  if ((fTable.is_compressed ||fTable.name=="ZDrsCellOffsets") && !force)
715  {
716 #ifdef __EXCEPTIONS
717  throw std::runtime_error("Trying to read a compressed fits with the base fits class. Use factfits instead.");
718 #else
719  gLog << ___err___ << "ERROR - Trying to read a compressed fits with the base fits class. Use factfits instead." << std::endl;
720 #endif
721  clear(rdstate()|std::ios::badbit);
722  }
723  }
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: