casa
5.7.0-16
|
#include <fits.h>
Public Member Functions | |
FitsKeyword (const FitsKeyword &) | |
A word about friends: FitsKeywordList accesses the next and prev pointers and the FitsKeyword constructors. More... | |
FitsKeyword & | operator= (const FitsKeyword &) |
~FitsKeyword () | |
const char * | name () const |
get info about the name More... | |
int | namelen () const |
Bool | isreserved () const |
Bool | isindexed () const |
const ReservedFitsKeyword & | kw () const |
int | index () const |
const char * | comm () const |
access the keyword comment More... | |
int | commlen () const |
int | err () const |
access the error status More... | |
FITS::ValueType | type () const |
the datatype of the keyword More... | |
Bool | asBool () const |
access the value of the keyword More... | |
const char * | asString () const |
int | valStrlen () const |
Int | asInt () const |
float | asFloat () const |
double | asDouble () const |
IComplex | asIComplex () const |
Complex | asComplex () const |
DComplex | asDComplex () const |
const void * | value () const |
FitsKeyword & | operator= (Bool) |
change the value of the keyword More... | |
FitsKeyword & | operator= (const char *) |
FitsKeyword & | operator= (Int) |
FitsKeyword & | operator= (float) |
FitsKeyword & | operator= (double) |
FitsKeyword & | operator= (IComplex) |
FitsKeyword & | operator= (Complex) |
FitsKeyword & | operator= (DComplex) |
void | comm (const char *) |
change the comment of the keyword More... | |
void | name (const char *) |
change the name of the keyword More... | |
Private Member Functions | |
void | del_val () |
void | init (const FitsKeyword &) |
void | setval (const FITS::ValueType &, const void *, int) |
void | setcomm (const char *, int) |
FitsKeyword (const char *, int, FITS::ValueType, const void *, int, const char *, int) | |
private constructors for use by friends More... | |
FitsKeyword (const ReservedFitsKeyword *, int, FITS::ValueType, const void *, int, const char *, int) | |
constructs reserved keywords parms: resword, index, val, vallen, comm, commlen More... | |
Static Private Member Functions | |
static void | err (const char *, const FITS::ValueType &, const void *, const char *) |
static void | memchk (void *) |
Private Attributes | |
FitsKeyword * | next_ |
FitsKeyword * | prev_ |
char * | name_ |
the keyword name if name_ is 0, keyword is not a user defined name if ndx is 0, there is no index More... | |
const ReservedFitsKeyword * | kw_ |
int | ndx |
short | namelen_ |
char * | comm_ |
the keyword comment if comm_ is 0, there is no comment More... | |
short | commlen_ |
FITS::ValueType | type_ |
the keyword value More... | |
union { | |
Bool bval | |
Int ival | |
float fval | |
double dval | |
}; | |
void * | val |
short | vallen |
Friends | |
class | FitsKeywordList |
class | FitsParse |
FITS keyword.
A FITS keyword contains a name, a value and a comment.
|
inline |
A word about friends: FitsKeywordList accesses the next and prev pointers and the FitsKeyword constructors.
FitsParse only accesses the FitsKeyword constructors.
Definition at line 647 of file fits.h.
References init().
|
inline |
|
private |
private constructors for use by friends
constructs user-defined keywords parms: name, namelen, type, val, vallen, comm, commlen
|
private |
constructs reserved keywords parms: resword, index, val, vallen, comm, commlen
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 697 of file fits.h.
References casacore::FITS::BYTE, casacore::FITS::DOUBLE, dval, casacore::FITS::FLOAT, fval, ival, casacore::FITS::LONG, casacore::FITS::SHORT, and type().
|
inline |
Definition at line 684 of file fits.h.
References casacore::FITS::BYTE, casacore::FITS::DOUBLE, dval, casacore::FITS::FLOAT, fval, ival, casacore::FITS::LONG, casacore::FITS::SHORT, and type().
|
inline |
|
inline |
Definition at line 677 of file fits.h.
References ival, casacore::FITS::LONG, and type().
|
inline |
|
inline |
void casacore::FitsKeyword::comm | ( | const char * | ) |
change the comment of the keyword
|
inline |
|
private |
Referenced by operator=(), and ~FitsKeyword().
|
inline |
access the error status
Definition at line 670 of file fits.h.
References casacore::FITS::ERRWORD, kw(), and name().
|
staticprivate |
|
inline |
|
private |
Referenced by FitsKeyword(), and operator=().
|
inline |
Definition at line 664 of file fits.h.
References casacore::False, ndx, and casacore::True.
|
inline |
Definition at line 658 of file fits.h.
References casacore::FITS::ERRWORD, casacore::False, kw(), name(), casacore::True, and casacore::FITS::USER_DEF.
Referenced by name().
|
inline |
|
staticprivate |
|
inline |
get info about the name
Definition at line 661 of file fits.h.
References casacore::ReservedFitsKeyword::aname(), isreserved(), kw(), name_, and namelen_.
Referenced by err(), and isreserved().
void casacore::FitsKeyword::name | ( | const char * | ) |
change the name of the keyword
|
inline |
|
inline |
|
inline |
change the value of the keyword
Definition at line 717 of file fits.h.
References bval, casacore::FITS::LOGICAL, and type_.
FitsKeyword& casacore::FitsKeyword::operator= | ( | const char * | ) |
|
inline |
Definition at line 719 of file fits.h.
References ival, casacore::FITS::LONG, and type_.
|
inline |
Definition at line 721 of file fits.h.
References casacore::FITS::FLOAT, fval, and type_.
|
inline |
Definition at line 723 of file fits.h.
References casacore::FITS::DOUBLE, dval, and type_.
|
inline |
Definition at line 725 of file fits.h.
References casacore::FITS::ICOMPLEX, type_, and val.
|
inline |
Definition at line 727 of file fits.h.
References casacore::FITS::COMPLEX, type_, and val.
|
inline |
Definition at line 729 of file fits.h.
References casacore::FITS::DCOMPLEX, type_, and val.
|
private |
|
private |
|
inline |
|
inline |
const void* casacore::FitsKeyword::value | ( | ) | const |
|
friend |
union { ... } |
Bool casacore::FitsKeyword::bval |
Definition at line 612 of file fits.h.
Referenced by asBool(), and operator=().
|
private |
the keyword comment if comm_ is 0, there is no comment
Definition at line 603 of file fits.h.
Referenced by comm(), operator=(), and ~FitsKeyword().
|
private |
double casacore::FitsKeyword::dval |
Definition at line 615 of file fits.h.
Referenced by asDouble(), asFloat(), and operator=().
float casacore::FitsKeyword::fval |
Definition at line 614 of file fits.h.
Referenced by asDouble(), asFloat(), and operator=().
Int casacore::FitsKeyword::ival |
Definition at line 613 of file fits.h.
Referenced by asDouble(), asFloat(), asInt(), and operator=().
|
private |
|
private |
the keyword name if name_ is 0, keyword is not a user defined name if ndx is 0, there is no index
Definition at line 594 of file fits.h.
Referenced by name(), operator=(), and ~FitsKeyword().
|
private |
|
private |
Definition at line 596 of file fits.h.
Referenced by index(), and isindexed().
|
private |
|
private |
|
private |
|
private |
Definition at line 617 of file fits.h.
Referenced by asComplex(), asDComplex(), asIComplex(), asString(), and operator=().
|
private |
Definition at line 618 of file fits.h.
Referenced by asString(), and valStrlen().