FACT++  1.0
void CompressedFitsFile::HeaderEntry::setValue ( const string &  v)

Definition at line 472 of file fitsCompressor.cc.

References CompressedFitsFile::_dummyHeaderEntry, CompressedFitsWriter::_emptyBlock, CompressedFitsWriter::_fitsHeader, i, and str.

473 {
474  string val = v;
475  if (val.size() > 2 && val[0] == '\'')
476  {
477  size_t pos = val.find_last_of("'");
478  if (pos != string::npos && pos != 0)
479  val = val.substr(1, pos-1);
480  }
481  ostringstream str;
482 
483  str << "'" << val << "'";
484  for (int i=str.str().length(); i<20;i++)
485  str << " ";
486  _value = str.str();
487  buildFitsString();
488 }
string _value
the value of the header entry
int i
Definition: db_dim_client.c:21
char str[80]
Definition: test_client.c:7