FACT++  1.0
static bool FITS::IsReservedKeyWord ( const std::string &  key)
inlinestatic

Definition at line 26 of file FITS.h.

Referenced by ofits::CopyKeys(), and fits::Table::PrintKeys().

27  {
28 #ifndef __CINT__
29  static const std::unordered_set<std::string> keys =
30  {
31  "DATASUM", "END", "EXTNAME", "PCOUNT", "NAXIS",
32  "NAXIS1", "NAXIS2", "RAWSUM", "SIMPLE", "TFIELDS",
33  "THEAP", "XTENSION", "ZHEAPPTR", "ZNAXIS1", "ZNAXIS2",
34  "ZPCOUNT", "ZRATIO", "ZSHRINK", "ZTABLE", "ZTILELEN",
35  };
36 
37  static const std::unordered_set<std::string> short_keys =
38  {
39  "TFORM", "TUNIT", "TTYPE", "ZCTYP", "ZFORM",
40  };
41 
42  if (keys.find(key)!=keys.end())
43  return true;
44 
45  const std::string five = key.substr(0, 5);
46  return short_keys.find(five)!=short_keys.end();
47 #endif
48  }

+ Here is the caller graph for this function: