38 #define G_AT1 "GFitsHeaderCard& GFitsHeader::at(int&)"
39 #define G_AT2 "GFitsHeaderCard& GFitsHeader::at(std::string&)"
40 #define G_STRING1 "GFitsHeader::string(int&)"
41 #define G_STRING2 "GFitsHeader::string(std::string&)"
42 #define G_REAL1 "GFitsHeader::real(int&)"
43 #define G_REAL2 "GFitsHeader::real(std::string&)"
44 #define G_INTEGER1 "GFitsHeader::integer(int&)"
45 #define G_INTEGER2 "GFitsHeader::integer(std::string&)"
46 #define G_INSERT1 "GFitsHeader::insert(int&, GFitsHeaderCard&)"
47 #define G_INSERT2 "GFitsHeader::insert(std::string&, GFitsHeaderCard&)"
48 #define G_REMOVE1 "GFitsHeader::remove(int&)"
49 #define G_REMOVE2 "GFitsHeader::remove(std::string&)"
50 #define G_OPEN "GFitsHeader::open(void*)"
51 #define G_SAVE "GFitsHeader::save(void*)"
126 if (
this != &header) {
189 #if defined(G_RANGE_CHECK)
212 #if defined(G_RANGE_CHECK)
239 std::string msg =
"Keyword \""+keyname+
"\" not found in FITS header.";
264 std::string msg =
"Keyword \""+keyname+
"\" not found in FITS header.";
285 #if defined(G_RANGE_CHECK)
292 return (
m_cards[cardno].
string());
312 std::string msg =
"Keyword \""+keyname+
"\" not found in FITS header.";
317 return (
m_cards[cardno].
string());
333 #if defined(G_RANGE_CHECK)
360 std::string msg =
"Keyword \""+keyname+
"\" not found in FITS header.";
381 #if defined(G_RANGE_CHECK)
408 std::string msg =
"Keyword \""+keyname+
"\" not found in FITS header.";
469 #if defined(G_RANGE_CHECK)
477 if (cardno < 0 || cardno >=
size()) {
516 std::string msg =
"Keyword \""+keyname+
"\" not found in FITS header.";
544 #if defined(G_RANGE_CHECK)
578 std::string msg =
"Keyword \""+keyname+
"\" not found in FITS header.";
608 int num = header.
size();
614 for (
int i = 0; i < num; ++i) {
647 status =
__ffghsp(
FPTR(vptr), &num_cards, NULL, &status);
657 for (
int i = 0; i < num_cards; ++i) {
692 for (
int i = 0; i <
size(); ++i) {
693 if (
m_cards[i].keyname() !=
"SIMPLE" &&
694 m_cards[i].keyname() !=
"XTENSION" &&
695 m_cards[i].keyname() !=
"BITPIX" &&
696 m_cards[i].keyname() !=
"EXTEND" &&
697 m_cards[i].keyname() !=
"PCOUNT" &&
698 m_cards[i].keyname() !=
"GCOUNT" &&
699 m_cards[i].keyname().find(
"NAXIS") == std::string::npos) {
728 for (
int i = 0; i <
size(); ++i) {
803 std::map<std::string, GFitsHeaderCard*>::const_iterator iter =
811 index = iter->second - &
m_cards[0];
834 for (
int i = 0; i <
m_cards.size(); ++i) {
#define __ffghsp(A, B, C, D)
FITS file class interface definition.
CFITSIO interface header.
Exception handler interface definition.
int fits_move_to_hdu(const std::string &caller, void *vptr, const int &hdunum=0)
Move to FITS extension.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.