29 static const std::unordered_set<std::string> keys =
31 "DATASUM",
"END",
"EXTNAME",
"PCOUNT",
"NAXIS",
32 "NAXIS1",
"NAXIS2",
"RAWSUM",
"SIMPLE",
"TFIELDS",
33 "THEAP",
"XTENSION",
"ZHEAPPTR",
"ZNAXIS1",
"ZNAXIS2",
34 "ZPCOUNT",
"ZRATIO",
"ZSHRINK",
"ZTABLE",
"ZTILELEN",
37 static const std::unordered_set<std::string> short_keys =
39 "TFORM",
"TUNIT",
"TTYPE",
"ZCTYP",
"ZFORM",
42 if (keys.find(key)!=keys.end())
45 const std::string five = key.substr(0, 5);
46 return short_keys.find(five)!=short_keys.end();