FACT++  1.0
std::string ofits::Key::Compile ( )
inline

Definition at line 189 of file ofits.h.

References comment, and key.

Referenced by Out().

190  {
191  if (!fitsString.empty())
192  return fitsString;
193 
194  std::ostringstream sout;
195  sout << std::left << std::setw(8) << key;
196 
197  if (!delim)
198  {
199  sout << " " << comment;
200  return sout.str();
201  }
202 
203  sout << "= ";
204  sout << (!value.empty() && value[0]=='\''?std::left:std::right);
205  sout << std::setw(20) << value << std::left;
206 
207  if (!comment.empty())
208  sout << " / " << comment;
209 
210  return sout.str();
211  }
std::string fitsString
Definition: ofits.h:41
std::string key
Definition: ofits.h:37
bool delim
Definition: ofits.h:38
std::string comment
Definition: ofits.h:40
std::string value
Definition: ofits.h:39

+ Here is the caller graph for this function: