Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.atnf.csiro.au/computing/software/casacore/casacore-1.2.0/doc/html/classcasa_1_1FitsInput.html
Дата изменения: Unknown
Дата индексирования: Mon Feb 14 21:20:04 2011
Кодировка:

Поисковые слова: южная атлантическая аномалия
casacore: casa::FitsInput Class Reference
Public Member Functions | Private Member Functions | Private Attributes | Friends

casa::FitsInput Class Reference
[FITS_module]

fixed-length sequential blocked FITS input More...

#include <fitsio.h>

Inheritance diagram for casa::FitsInput:
casa::FitsIO

List of all members.

Public Member Functions

 FitsInput (const char *, const FITS::FitsDevice &, int=10, FITSErrorHandler errhandler=FITSError::defaultHandler)
 FitsInput (FITSErrorHandler errhandler=FITSError::defaultHandler)
 ~FitsInput ()
int skip_hdu ()
char * read_sp ()
 int skip_hdu2(); read special or unrecognizable records
Vector< Stringkwlist_str (Bool length80=False)
 get hdu header image cards as strings.
int blockno () const
 number of physical blocks read/written
int recno () const
 number of logical records read/written
BlockInputgetfin ()

Private Member Functions

BlockInputmake_input (const char *, const FITS::FitsDevice &, int, FITSErrorHandler errhandler=FITSError::defaultHandler)
virtual void errmsg (FitsErrs, const char *)
 set error message that belongs to one of the enumerated types
void init ()
void read_header_rec ()
bool current_hdu_type (FITS::HDUType &)
bool get_data_type (FITS::ValueType &)
int process_header (FITS::HDUType, FitsKeywordList &)
 Special interface to class HeaderDataUnit.
OFF_T read_all (FITS::HDUType, char *)
 read all data into a given address - all responsibility is given to the user
int read (FITS::HDUType, char *, int)
 read N bytes into address
int skip (FITS::HDUType, OFF_T)
 skip N bytes
void skip_all (FITS::HDUType)
 skip all remaining data

Private Attributes

BlockInputm_fin
Bool m_got_rec
 flag used for read control in errors
int m_thdunum
 total number of hdu in this fits file

Friends

int HeaderDataUnit::get_hdr (FITS::HDUType, FitsKeywordList &)
OFF_T HeaderDataUnit::read_all_data (char *)
int HeaderDataUnit::read_data (char *, Int)
int HeaderDataUnit::skip (uInt)
int HeaderDataUnit::skip ()

Detailed Description

fixed-length sequential blocked FITS input

Definition at line 148 of file fitsio.h.


Constructor & Destructor Documentation

casa::FitsInput::FitsInput ( const char *  ,
const FITS::FitsDevice ,
int  = 10,
FITSErrorHandler  errhandler = FITSError::defaultHandler 
)
casa::FitsInput::FitsInput ( FITSErrorHandler  errhandler = FITSError::defaultHandler  ) 
casa::FitsInput::~FitsInput (  ) 

Member Function Documentation

int casa::FitsInput::blockno (  )  const [inline]

number of physical blocks read/written

Definition at line 174 of file fitsio.h.

References casa::BlockIO::blockno(), and m_fin.

bool casa::FitsInput::current_hdu_type ( FITS::HDUType  )  [private]
virtual void casa::FitsInput::errmsg ( FitsErrs  ,
const char *   
) [private, virtual]

set error message that belongs to one of the enumerated types

Implements casa::FitsIO.

bool casa::FitsInput::get_data_type ( FITS::ValueType  )  [private]
BlockInput& casa::FitsInput::getfin (  )  [inline]

Definition at line 178 of file fitsio.h.

References m_fin.

void casa::FitsInput::init (  )  [private]
Vector<String> casa::FitsInput::kwlist_str ( Bool  length80 = False  ) 

get hdu header image cards as strings.

By default the strings will be of variable length. You can optionally ask for them to be length 80 (padded with spaces).

BlockInput& casa::FitsInput::make_input ( const char *  ,
const FITS::FitsDevice ,
int  ,
FITSErrorHandler  errhandler = FITSError::defaultHandler 
) [private]
int casa::FitsInput::process_header ( FITS::HDUType  ,
FitsKeywordList  
) [private]

Special interface to class HeaderDataUnit.

special way to process header

int casa::FitsInput::read ( FITS::HDUType  ,
char *  ,
int   
) [private]

read N bytes into address

OFF_T casa::FitsInput::read_all ( FITS::HDUType  ,
char *   
) [private]

read all data into a given address - all responsibility is given to the user

void casa::FitsInput::read_header_rec (  )  [private]
char* casa::FitsInput::read_sp (  ) 

int skip_hdu2(); read special or unrecognizable records

int casa::FitsInput::recno (  )  const [inline]

number of logical records read/written

Definition at line 177 of file fitsio.h.

References m_fin, and casa::BlockIO::recno().

int casa::FitsInput::skip ( FITS::HDUType  ,
OFF_T   
) [private]

skip N bytes

void casa::FitsInput::skip_all ( FITS::HDUType   )  [private]

skip all remaining data

int casa::FitsInput::skip_hdu (  ) 

Friends And Related Function Documentation

int HeaderDataUnit::get_hdr ( FITS::HDUType  ,
FitsKeywordList  
) [friend]
OFF_T HeaderDataUnit::read_all_data ( char *   )  [friend]
int HeaderDataUnit::read_data ( char *  ,
Int   
) [friend]
int HeaderDataUnit::skip ( uInt   )  [friend]
int HeaderDataUnit::skip (  )  [friend]

Member Data Documentation

Definition at line 181 of file fitsio.h.

Referenced by blockno(), getfin(), and recno().

flag used for read control in errors

Definition at line 186 of file fitsio.h.

total number of hdu in this fits file

Definition at line 188 of file fitsio.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines