FACT++  1.0
bool ofits::SetStr ( const std::string &  key,
std::string  s,
const std::string &  comment = "" 
)
inline

Definition at line 526 of file ofits.h.

References ofits::Key::comment, i, and Set().

Referenced by AddColumn(), open(), SetDefaultKeys(), SetHex(), UpdateHeaderChecksum(), factofits::WriteDrsOffsetsTable(), WriteFitsHeader(), and WriteTableHeader().

527  {
528  for (uint i=0; i<s.length(); i++)
529  if (s[i]=='\'')
530  s.insert(i++, "\'");
531 
532  return Set(key, true, "'"+s+"'", comment);
533  }
int i
Definition: db_dim_client.c:21
bool Set(const std::string &key="", bool delim=false, const std::string &value="", const std::string &comment="")
Definition: ofits.h:260

+ Here is the call graph for this function:

+ Here is the caller graph for this function: