4 #ifndef GloriaFitsHeader_h 
    5 #define GloriaFitsHeader_h 1 
   20 #include <cfitsio/fitsio.h> 
   63     void ReadFitsHeader(fitsfile *fp);
 
   68     void WriteFitsHeader(fitsfile *fp);
 
   83     inline std::string& 
GetKeywordAt(
const int ikey) {
return _fitsHeaderRecords.at(ikey).Keyword; };   
 
   86     inline std::string& 
GetValueAt(
const int ikey) {
return _fitsHeaderRecords.at(ikey).Value; };   
 
   89     inline std::string& 
GetCommentAt(
const int ikey) {
return _fitsHeaderRecords.at(ikey).Comment; };   
 
   92     bool IsKeywordSet(
const char *keyword);
 
   95     HeaderRecord& GetKeywordRecord(
const char *keyword);   
 
   98     std::string& GetKeywordValue(
const char *keyword);   
 
  101     long   GetKeywordValueInt(
const char *keyword);   
 
  104     double GetKeywordValueDouble(
const char *keyword);   
 
  107     void AddKeyword(
const char *keyword, std::string value, std::string comment);   
 
  110     void AddKeywordDouble(
const char *keyword, 
double value, std::string comment);   
 
  113     void AddKeywordInt(
const char *keyword, 
int value, std::string comment);   
 
  116     void AddKeyword(HeaderRecord record);   
 
  119     void SetKeyword(
const char *keyword, std::string value, std::string comment);   
 
  122     void SetKeywordDouble(
const char *keyword, 
double value, std::string comment);
 
  125     void SetKeywordInt(
const char *keyword, 
int value, std::string comment);    
 
  128     void AddComment(std::string comment);   
 
  131     void AddHistory(std::string history);   
 
  137     void RemoveKeyword(
const char *keyword);   
 
  141     void RemoveKeywords(
const char *keyword);   
 
  150     void PrintHeader( std::ostream& os, 
int maxRec=100);
 
  156     inline bool OK() { 
return _statusOK; };
 
  159     inline bool Error() { 
return !_statusOK; };
 
  166     inline void ClearError() { _statusOK=
true; _errorMessage.clear();};
 
  184     std::vector<HeaderRecord> _fitsHeaderRecords;
 
  187     std::multimap<std::string,int> _headerKeywordMap;
 
  193     std::string   _inputFileName;
 
  197     std::string   _outputFileName;
 
  204     std::string _errorMessage;
 
namespace for data storing and exchange formats 
Definition: GloriaAstrometry.h:15
 
Class for storing catalogs of sky objects (eg. stars) 
Definition: GloriaSkyCatalog.h:36
 
Class for reading and processing fits tables in Luiza. 
Definition: GloriaFitsTable.h:109
 
Class for reading and processing fits images in Luiza. 
Definition: GloriaFitsImage.h:43
 
Class for storing object (star images on CCD) lists. 
Definition: GloriaObjectList.h:35