FACT++  1.0
Checksum ofits::UpdateHeaderChecksum ( )
inline

Definition at line 970 of file ofits.h.

References SetStr(), str, Checksum::val(), and WriteHeader().

Referenced by close().

971  {
972  std::ostringstream dataSumStr;
973  dataSumStr << fDataSum.val();
974  SetStr("DATASUM", dataSumStr.str());
975 
976  const Checksum sum = WriteHeader();
977 
978  //sum += headersum;
979 
980  SetStr("CHECKSUM", (sum+fDataSum).str());
981 
982  return WriteHeader();
983  }
Checksum WriteHeader()
Definition: ofits.h:797
Checksum fDataSum
Definition: ofits.h:340
char str[80]
Definition: test_client.c:7
uint32_t val() const
Definition: checksum.h:20
bool SetStr(const std::string &key, std::string s, const std::string &comment="")
Definition: ofits.h:526

+ Here is the call graph for this function:

+ Here is the caller graph for this function: