FACT++  1.0
template<typename T >
bool FitsFile::WriteKeyNT ( const string &  name,
const T &  value,
const string &  comment 
)
inline

Definition at line 62 of file FitsFile.h.

References AddRow(), MessageImp::Error(), size, start(), and WriteData().

63  {
64  if (!fTable)
65  return false;
66 
67  try
68  {
69  fTable->addKey(name, value, comment);
70  }
71  catch (CCfits::FitsException e)
72  {
73  Error("CCfits::Table::addKey failed for '"+name+"' in '"+fFile->name()+'/'+fTable->name()+"': "+e.message());
74  return false;
75  }
76 
77  return true;
78  }
CCfits::Table * fTable
The pointer to the CCfits FITS file.
Definition: FitsFile.h:19
CCfits::FITS * fFile
Definition: FitsFile.h:18
int Error(const std::string &str)
Definition: MessageImp.h:49

+ Here is the call graph for this function: