FACT++  1.0
bool FitsFile::SetFile ( CCfits::FITS *  file = 0)

Definition at line 139 of file FitsFile.cc.

References Error().

Referenced by AddColumn().

140 {
141  if (!file)
142  {
143  Error("Fits::SetFile failed: NULL argument.");
144  return false;
145  }
146 
147  if (fFile)
148  {
149  Error("Fits::SetFile failed: File already set.");
150  return false;
151  }
152 
153  fFile = file;
154  fIsOwner = false;
155 
156  return true;
157 }
CCfits::FITS * fFile
Definition: FitsFile.h:18
int Error(const std::string &str)
Definition: MessageImp.h:49
bool fIsOwner
Definition: FitsFile.h:24

+ Here is the call graph for this function:

+ Here is the caller graph for this function: