FACT++  1.0
void ofits::SetDefaultKeys ( )
inline

Definition at line 1029 of file ofits.h.

References AddColumnInt(), close(), fits::GetNextRow(), i, fits::IsFileOk(), fits::IsHeaderOk(), main, PACKAGE_NAME, PACKAGE_VERSION, REVISION, SetFloat(), SetInt(), SetStr(), str, time, WriteRow(), and WriteTableHeader().

1030  {
1031  SetStr("TELESCOP", "FACT", "Telescope that acquired this data");
1032  SetStr("CREATOR", typeid(*this).name(), "Class that wrote this file");
1033  SetFloat("EXTREL", 1.0, "Release Number");
1034  SetStr("COMPILED", __DATE__" " __TIME__, "Compile time");
1035  SetStr("ORIGIN", "FACT", "Institution that wrote the file");
1036  SetStr("TIMESYS", "UTC", "Time system");
1037  SetStr("TIMEUNIT", "d", "Time given in days w.r.t. to MJDREF");
1038  SetInt("MJDREF", 40587, "MJD to UNIX time (seconds since 1970/1/1)");
1039  SetStr("PACKAGE", PACKAGE_NAME, "Package name");
1040  SetStr("VERSION", PACKAGE_VERSION, "Package description");
1041  SetStr("REVISION", REVISION, "SVN revision");
1042 
1043  const time_t t0 = time(NULL);
1044  const struct tm *tmp1 = gmtime(&t0);
1045 
1046  std::string str(19, '\0');
1047  if (tmp1 && strftime(const_cast<char*>(str.data()), 20, "%Y-%m-%dT%H:%M:%S", tmp1))
1048  SetStr("DATE", str, "File creation date");
1049  }
bool SetInt(const std::string &key, int64_t i, const std::string &comment="")
Definition: ofits.h:535
#define PACKAGE_NAME
Definition: ofits.h:8
char str[80]
Definition: test_client.c:7
#define PACKAGE_VERSION
Definition: ofits.h:12
#define REVISION
Definition: ofits.h:16
bool SetStr(const std::string &key, std::string s, const std::string &comment="")
Definition: ofits.h:526
Warning because the service this data corrsponds to might have been last updated longer ago than Local time
Definition: smartfact.txt:92
bool SetFloat(const std::string &key, double f, int p, const std::string &comment="")
Definition: ofits.h:543

+ Here is the call graph for this function: