Main Page | Modules | Class Hierarchy | Class List | File List | Class Members

ltl::FitsHeader Class Reference

Representation of a complete FITS header. Holds also header I/O methods. More...

#include <fits_header.h>

Inheritance diagram for ltl::FitsHeader:

ltl::FitsIn ltl::FitsOut ltl::FitsExtensionIn List of all members.

Card Lists

Lists representing the FITS header structure.

Public Member Functions

Protected Member Functions

Protected Attributes

Static Protected Attributes


Detailed Description

Representation of a complete FITS header. Holds also header I/O methods.


Member Function Documentation

void ltl::FitsHeader::addValueCard FitsCard *  cardptr  )  throw (FitsException) [protected]
 

Add a value holding card to its proper list.

If the card has a bad syntax it's put on the ltl::FitsHeader::junk_ list.

Exceptions:
ltl::FitsException on error.

string ltl::FitsHeader::adjustKeyword string  keyword  )  const
 

Return keyword trimmed (or expanded) to a width of 8 chars.

Trailing blanks are significant for FITS keywords. If you want to add missing trailing blanks or simply trim too long keywords you may want to use this method.

int ltl::FitsHeader::eraseCard const string &  keyword  )  throw (FitsException)
 

Erase FITS card keyword.

Returns 0 on success, -1 on keyword not found.

Exceptions:
ltl::FitsException on forbidden erasures.

int ltl::FitsHeader::eraseCardFromList const string &  keyword,
list< FitsCard * > &  the_list
[protected]
 

Erase first ltl::FitsCard mathcing keyword from the_list.

Return -1 if keyword not found, otherwise 0.

int ltl::FitsHeader::eraseCardsFromJunkList const string &  keyword  )  [protected]
 

Erase all cards matching keyword from the ltl::FitsHeader::junk_ list.

Return the number of erased cards.

FitsCard * ltl::FitsHeader::findCardInList const string &  keyword,
const list< FitsCard * > &  the_list
const [protected]
 

Return pointer to card matching keyword in the_list.

Return NULL if no card is found.

FitsCard * ltl::FitsHeader::getValueCard const string &  keyword  )  const throw (FitsException) [protected]
 

Return pointer to first card matching keyword on any non commentary list.

Exceptions:
ltl::FitsException on error, i.e. no matching card found.

void ltl::FitsHeader::parseCommentToCardList const string &  keyword,
const string &  comment
[protected]
 

Parse and add a commentstring to its list.

Can be long, will be broken into lines)

string::size_type ltl::FitsHeader::parseMandatory const string &  record  )  throw (FitsException) [protected]
 

Parse the mandatory keys of record.

Return offset to next non-mandatory card within record.

Exceptions:
ltl::FitsException on error.

string::size_type ltl::FitsHeader::parseRecord const string &  record,
const bool  alljunk = false
throw (FitsException) [protected]
 

Parse a FITS record and assign the cards to their proper lists.

Returns the length of the record or 0 if "END" was found.

Exceptions:
ltl::FitsException on error.


Member Data Documentation

ltl::FitsHeader::ArrayList ltl::FitsHeader::array_ [protected]
 

List holding array keywords cards.

These are BSCALE, BZERO, BUNIT, BLANK, CTYPEn, CRPIXn, CRVALn, CRDELTn, CROTAn, DATAMIN and DATAMAX.

ltl::FitsHeader::ObserveList ltl::FitsHeader::observe_ [protected]
 

List holding reserved keywords cards which are not on other lists.

These are AUTHOR, BLOCKED, DATE, DATE-OBS, DATExxxx, EQUINOX, EPOCH, INSTRUME, OBJECT, OBSERVER, ORIGIN, REFERENC and TELESCOP. EPOCH will be copied to EQUINOX if EQUINOX not present.


The documentation for this class was generated from the following file:
Generated on Fri Dec 24 13:32:04 2004 for LTL by doxygen 1.3.4