FACT++  1.0
CompressedFitsFile::HeaderEntry::HeaderEntry ( const string &  line)
inline

Constructor from the original fits entry

Definition at line 73 of file fitsDecompressor.cc.

References Tools::Trim().

74  {
75  _fitsString = line.data();
76 
77  //parse the line
78  _key = Trim(line.substr(0,8));
79  //COMMENT and/or HISTORY values
80  if (line.substr(8,2)!= "= ")
81  {
82  _value = "";
83  _comment = Trim(line.substr(10));
84  return;
85  }
86  string next=line.substr(10);
87  const size_t slash = next.find_first_of('/');
88  _value = Trim(Trim(Trim(next.substr(0, slash)), '\''));
89  _comment = Trim(next.substr(slash+1));
90  }
string _comment
the comment associated to the header entry
string _value
the value of the header entry
string _key
the key (name) of the header entry
string _fitsString
the string that will be written to the fits file
string Trim(const string &str, char c=' ')

+ Here is the call graph for this function: