TwiceAsNice
2019-02-18
|
A representation of a single line in a FITS header unit. More...
#include <FitsCard.h>
Public Member Functions | |
VinoFitsCard () | |
define a void (empty) header card. More... | |
VinoFitsCard (const VinoFitsCardVar &_var) | |
VinoFitsCard (const std::string &_card) | |
ctor given a full card line More... | |
VinoFitsCard (const char *_card) | |
ctor given a full card line More... | |
VinoFitsCard (const std::string &_key, const char *_val, const std::string &_comment) | |
ctor for a string type More... | |
VinoFitsCard (const std::string &_key, const std::string &_val, const std::string &_comment) | |
ctor for a string type More... | |
VinoFitsCard (const std::string &_key, Nice::Int _val, const std::string &_comment) | |
ctor for an integer type More... | |
VinoFitsCard (const std::string &_key, const bool _val, const std::string &_comment) | |
ctor for a bool/logical type More... | |
VinoFitsCard (const std::string &_key, const double &_val, const std::string &_comment) | |
ctor for a floating point type More... | |
VinoFitsCard (const std::string &_key, const double &_val, size_t _precision, const std::string &_comment) | |
ctor for a floating point type More... | |
void | set (const std::string &_key, const char *_val, const std::string &_comment) |
overwrite values for a string type. More... | |
void | set (const std::string &_key, const std::string &_val, const std::string &_comment) |
overwrite values for a string type. More... | |
void | set (const std::string &_key, bool _bval, const std::string &_comment) |
overwrite values for a boolean type. More... | |
void | set (const std::string &_key, Nice::Int _val, const std::string &_comment) |
overwrite values for an integer type. More... | |
void | set (const std::string &_key, const double &_val, const std::string &_comment) |
overwrite values for a floating point type More... | |
void | set (const std::string &_key, const double &_val, size_t _precision, const std::string &_comment) |
overwrite values for a floating point type More... | |
void | setValue (const char *_val) |
overwrite the value with a new string More... | |
void | setValue (const std::string &_val) |
overwrite the value with a new string If this is a COMMENT card, this is a no-op. More... | |
void | setValue (int _val) |
Set the card value to a specific integer. If this is a COMMENT card, this is a no-op. More... | |
void | setValue (const bool _bval) |
void | setValue (const double &_val) |
Set the card value to a specific floating point value. If this is a COMMENT card, this is a no-op. More... | |
void | setValue (const double &_val, size_t _precision) |
Set the card value to a specific floating point value. If this is a COMMENT card, this is a no-op. More... | |
void | setComment (const std::string &_comment) |
overwrite the comment of the card by a new one. The comment to be changed is the entire card (if this is a COMMENT card) or the comment piece of the card. More... | |
void | setComment (const std::string &_unit, const Nice::Date &_date) |
add a unit and a date to the comment. The unit is preprended and the date is appended to the existing comment. The comment to be changed is the entire card (if this is a COMMENT card) or the comment piece of the card. More... | |
void | setComment (const std::string &_unit, const std::string &_date="(%Y-%m-%d:%H:%M:%S)") |
add a unit and a date to the comment. The unit is preprended and the current date is appended to the existing comment. The comment to be changed is the entire card (if this is a COMMENT card) or the comment piece of the card. More... | |
Nice::Byte | getType () const |
get the type More... | |
std::string | getCard () const |
Convert to a key = value / comment line. More... | |
std::string | getKey () const |
get the key More... | |
std::string | getStringVal () const |
convert the value into a string. More... | |
bool | getBoolVal () const |
parse the value deciding on <>0 or == 0 . More... | |
Nice::Int | getIntVal () const |
parse the value with integer precision. More... | |
double | getDoubleVal () const |
Convert the value into a floating point number. More... | |
Nice::Byte | getDoublePrecisionVal () const |
std::string | getComment () const |
retrieve the comment part. More... | |
int | write (fitsfile *) |
insert the card into a header-data unit. More... | |
VinoFitsCard & | operator= (const VinoFitsCard &oth) |
Assignment operator. More... | |
VinoFitsCard () | |
VinoFitsCard (const VinoFitsCardVar &_var) | |
VinoFitsCard (const std::string &_card) | |
VinoFitsCard (const char *_card) | |
VinoFitsCard (const std::string &_key, const char *_val, const std::string &_comment) | |
VinoFitsCard (const std::string &_key, const std::string &_val, const std::string &_comment) | |
VinoFitsCard (const std::string &_key, Nice::Int _val, const std::string &_comment) | |
VinoFitsCard (const std::string &_key, const bool _val, const std::string &_comment) | |
VinoFitsCard (const std::string &_key, const double &_val, const std::string &_comment) | |
VinoFitsCard (const std::string &_key, const double &_val, size_t _precision, const std::string &_comment) | |
void | set (const std::string &_key, const char *_val, const std::string &_comment) |
void | set (const std::string &_key, const std::string &_val, const std::string &_comment) |
void | set (const std::string &_key, bool _bval, const std::string &_comment) |
void | set (const std::string &_key, Nice::Int _val, const std::string &_comment) |
void | set (const std::string &_key, const double &_val, const std::string &_comment) |
void | set (const std::string &_key, const double &_val, size_t _precision, const std::string &_comment) |
void | setValue (const char *_val) |
void | setValue (const std::string &_val) |
void | setValue (int _val) |
void | setValue (const bool _bval) |
void | setValue (const double &_val) |
void | setValue (const double &_val, size_t _precision) |
void | setComment (const std::string &_comment) |
void | setComment (const std::string &_unit, const Nice::Date &_date) |
void | setComment (const std::string &_unit, const std::string &_date="(%Y-%m-%d:%H:%M:%S)") |
Nice::Byte | getType () const |
std::string | getCard () const |
std::string | getKey () const |
std::string | getStringVal () const |
bool | getBoolVal () const |
Nice::Int | getIntVal () const |
double | getDoubleVal () const |
Nice::Byte | getDoublePrecisionVal () const |
std::string | getComment () const |
int | write (fitsfile *) |
VinoFitsCard & | operator= (const VinoFitsCard &oth) |
VinoFitsCard () | |
VinoFitsCard (const VinoFitsCardVar &_var) | |
VinoFitsCard (const std::string &_card) | |
VinoFitsCard (const char *_card) | |
VinoFitsCard (const std::string &_key, const char *_val, const std::string &_comment) | |
VinoFitsCard (const std::string &_key, const std::string &_val, const std::string &_comment) | |
VinoFitsCard (const std::string &_key, Nice::Int _val, const std::string &_comment) | |
VinoFitsCard (const std::string &_key, const bool _val, const std::string &_comment) | |
VinoFitsCard (const std::string &_key, const double &_val, const std::string &_comment) | |
VinoFitsCard (const std::string &_key, const double &_val, size_t _precision, const std::string &_comment) | |
void | set (const std::string &_key, const char *_val, const std::string &_comment) |
void | set (const std::string &_key, const std::string &_val, const std::string &_comment) |
void | set (const std::string &_key, bool _bval, const std::string &_comment) |
void | set (const std::string &_key, Nice::Int _val, const std::string &_comment) |
void | set (const std::string &_key, const double &_val, const std::string &_comment) |
void | set (const std::string &_key, const double &_val, size_t _precision, const std::string &_comment) |
void | setValue (const char *_val) |
void | setValue (const std::string &_val) |
void | setValue (int _val) |
void | setValue (const bool _bval) |
void | setValue (const double &_val) |
void | setValue (const double &_val, size_t _precision) |
void | setComment (const std::string &_comment) |
void | setComment (const std::string &_unit, const Nice::Date &_date) |
void | setComment (const std::string &_unit, const std::string &_date="(%Y-%m-%d:%H:%M:%S)") |
Nice::Byte | getType () const |
std::string | getCard () const |
std::string | getKey () const |
std::string | getStringVal () const |
bool | getBoolVal () const |
Nice::Int | getIntVal () const |
double | getDoubleVal () const |
Nice::Byte | getDoublePrecisionVal () const |
std::string | getComment () const |
int | write (fitsfile *) |
VinoFitsCard & | operator= (const VinoFitsCard &oth) |
![]() | |
bool | operator== (const VinoFitsCardVar &__rhs) const |
bool | operator< (const VinoFitsCardVar &__rhs) const |
bool | operator!= (const VinoFitsCardVar &__rhs) const |
bool | operator<= (const VinoFitsCardVar &__rhs) const |
bool | operator> (const VinoFitsCardVar &__rhs) const |
bool | operator>= (const VinoFitsCardVar &__rhs) const |
bool | operator== (const VinoFitsCardVar &__rhs) const |
bool | operator< (const VinoFitsCardVar &__rhs) const |
bool | operator!= (const VinoFitsCardVar &__rhs) const |
bool | operator<= (const VinoFitsCardVar &__rhs) const |
bool | operator> (const VinoFitsCardVar &__rhs) const |
bool | operator>= (const VinoFitsCardVar &__rhs) const |
Static Protected Attributes | |
static std::map< std::string, size_t > | s_typeStringToFitsNum |
Private Member Functions | |
int | templateAnal (char *card, char keyname[], char keyval[], char cmt[], char dtyp[]) |
Analyse the contents and types in a template header line. More... | |
void | initTpl (const char *card) |
ctor given a full card line More... | |
int | templateAnal (char *card, char keyname[], char keyval[], char cmt[], char dtyp[]) |
void | initTpl (const char *card) |
int | templateAnal (char *card, char keyname[], char keyval[], char cmt[], char dtyp[]) |
void | initTpl (const char *card) |
Friends | |
std::istream & | operator>> (std::istream &, VinoFitsCardVar &) |
std::ostream & | operator<< (std::ostream &, const VinoFitsCardVar &) |
std::istream & | operator>> (std::istream &, VinoFitsCardVar &) |
std::ostream & | operator<< (std::ostream &, const VinoFitsCardVar &) |
std::istream & | operator>> (std::istream &, VinoFitsCardVar &) |
std::ostream & | operator<< (std::ostream &, const VinoFitsCardVar &) |
Additional Inherited Members | |
![]() | |
::std::string | mkey |
::std::string | mcomment |
::Ice::Byte | mtype |
::Ice::Byte | mtypeC |
::Nice::SeqByte | mdata |
A representation of a single line in a FITS header unit.
This basically contains a keyword, its value (and type) and a trailing human -readable comment.
Basda::VinoFitsCard::VinoFitsCard | ( | ) |
define a void (empty) header card.
|
inline |
Basda::VinoFitsCard::VinoFitsCard | ( | const std::string & | _card | ) |
ctor given a full card line
_card | The line with the fully qualified format key = val / comment or COMMENT. |
Support the complex valued cards with val = (..,...) in parentheses .
Support cards that start with HISTORY
_card | The line with the fully qualified format key = val / comment or COMMENT. |
Support the complex valued cards with val = (..,...) in parentheses .
Support cards that start with HISTORY
Basda::VinoFitsCard::VinoFitsCard | ( | const char * | _card | ) |
ctor given a full card line
_card | The line with the fully qualified format key = val / comment or COMMENT. |
Support the complex valued cards with val = (..,...) in parentheses .
Support cards that start with HISTORY
_card | The line with the fully qualified format key = val / comment or COMMENT. |
Support the complex valued cards with val = (..,...) in parentheses .
Support cards that start with HISTORY
Basda::VinoFitsCard::VinoFitsCard | ( | const std::string & | _key, |
const char * | _sval, | ||
const std::string & | _comment | ||
) |
ctor for a string type
_key | Key value left from the equal sign. If empty this becomes a COMMENT card. |
_sval | value right from the equal sign |
_comment | comment after the slash |
Basda::VinoFitsCard::VinoFitsCard | ( | const std::string & | _key, |
const std::string & | _sval, | ||
const std::string & | _comment | ||
) |
ctor for a string type
_key | Key value left from the equal sign. If empty this becomes a COMMENT card. |
_sval | value right from the equal sign |
_comment | comment after the slash |
Basda::VinoFitsCard::VinoFitsCard | ( | const std::string & | _key, |
Nice::Int | _ival, | ||
const std::string & | _comment | ||
) |
ctor for an integer type
_key | Keyword. If empty this becomes a COMMENT card. |
_ival | integer value of the key |
_comment | comment after the slash |
Basda::VinoFitsCard::VinoFitsCard | ( | const std::string & | _key, |
const bool | _bval, | ||
const std::string & | _comment | ||
) |
ctor for a bool/logical type
_key | Keyword. If empty this becomes a COMMENT card. |
_bval | truth value of the key |
_comment | comment after the slash |
Basda::VinoFitsCard::VinoFitsCard | ( | const std::string & | _key, |
const double & | _dval, | ||
const std::string & | _comment | ||
) |
ctor for a floating point type
_key | keyword. If empty this becomes a COMMENT card. |
_dval | value of the keyword |
_comment | comment after the slash |
Basda::VinoFitsCard::VinoFitsCard | ( | const std::string & | _key, |
const double & | _dval, | ||
size_t | _precision, | ||
const std::string & | _comment | ||
) |
ctor for a floating point type
_key | keyword of the card. If empty this becomes a COMMENT card. |
_dval | value of the keyword |
_precision | number of digits in the value |
_comment | comment after the slash |
_key | keyword of the card. If empty this becomes a COMMENT card. |
_dval | value of the keyword |
_precision | number of digits in the value |
_comment | comment after the slash |
Basda::VinoFitsCard::VinoFitsCard | ( | ) |
|
inline |
Basda::VinoFitsCard::VinoFitsCard | ( | const std::string & | _card | ) |
Basda::VinoFitsCard::VinoFitsCard | ( | const char * | _card | ) |
Basda::VinoFitsCard::VinoFitsCard | ( | const std::string & | _key, |
const char * | _val, | ||
const std::string & | _comment | ||
) |
Basda::VinoFitsCard::VinoFitsCard | ( | const std::string & | _key, |
const std::string & | _val, | ||
const std::string & | _comment | ||
) |
Basda::VinoFitsCard::VinoFitsCard | ( | const std::string & | _key, |
Nice::Int | _val, | ||
const std::string & | _comment | ||
) |
Basda::VinoFitsCard::VinoFitsCard | ( | const std::string & | _key, |
const bool | _val, | ||
const std::string & | _comment | ||
) |
Basda::VinoFitsCard::VinoFitsCard | ( | const std::string & | _key, |
const double & | _val, | ||
const std::string & | _comment | ||
) |
Basda::VinoFitsCard::VinoFitsCard | ( | const std::string & | _key, |
const double & | _val, | ||
size_t | _precision, | ||
const std::string & | _comment | ||
) |
Basda::VinoFitsCard::VinoFitsCard | ( | ) |
|
inline |
Basda::VinoFitsCard::VinoFitsCard | ( | const std::string & | _card | ) |
Basda::VinoFitsCard::VinoFitsCard | ( | const char * | _card | ) |
Basda::VinoFitsCard::VinoFitsCard | ( | const std::string & | _key, |
const char * | _val, | ||
const std::string & | _comment | ||
) |
Basda::VinoFitsCard::VinoFitsCard | ( | const std::string & | _key, |
const std::string & | _val, | ||
const std::string & | _comment | ||
) |
Basda::VinoFitsCard::VinoFitsCard | ( | const std::string & | _key, |
Nice::Int | _val, | ||
const std::string & | _comment | ||
) |
Basda::VinoFitsCard::VinoFitsCard | ( | const std::string & | _key, |
const bool | _val, | ||
const std::string & | _comment | ||
) |
Basda::VinoFitsCard::VinoFitsCard | ( | const std::string & | _key, |
const double & | _val, | ||
const std::string & | _comment | ||
) |
Basda::VinoFitsCard::VinoFitsCard | ( | const std::string & | _key, |
const double & | _val, | ||
size_t | _precision, | ||
const std::string & | _comment | ||
) |
bool Basda::VinoFitsCard::getBoolVal | ( | ) | const |
parse the value deciding on <>0 or == 0 .
bool Basda::VinoFitsCard::getBoolVal | ( | ) | const |
bool Basda::VinoFitsCard::getBoolVal | ( | ) | const |
std::string Basda::VinoFitsCard::getCard | ( | ) | const |
Convert to a key = value / comment line.
std::string Basda::VinoFitsCard::getCard | ( | ) | const |
std::string Basda::VinoFitsCard::getCard | ( | ) | const |
std::string Basda::VinoFitsCard::getComment | ( | ) | const |
std::string Basda::VinoFitsCard::getComment | ( | ) | const |
retrieve the comment part.
std::string Basda::VinoFitsCard::getComment | ( | ) | const |
Nice::Byte Basda::VinoFitsCard::getDoublePrecisionVal | ( | ) | const |
Nice::Byte Basda::VinoFitsCard::getDoublePrecisionVal | ( | ) | const |
Nice::Byte Basda::VinoFitsCard::getDoublePrecisionVal | ( | ) | const |
double Basda::VinoFitsCard::getDoubleVal | ( | ) | const |
double Basda::VinoFitsCard::getDoubleVal | ( | ) | const |
Convert the value into a floating point number.
double Basda::VinoFitsCard::getDoubleVal | ( | ) | const |
Nice::Int Basda::VinoFitsCard::getIntVal | ( | ) | const |
Nice::Int Basda::VinoFitsCard::getIntVal | ( | ) | const |
parse the value with integer precision.
Nice::Int Basda::VinoFitsCard::getIntVal | ( | ) | const |
std::string Basda::VinoFitsCard::getKey | ( | ) | const |
std::string Basda::VinoFitsCard::getKey | ( | ) | const |
get the key
std::string Basda::VinoFitsCard::getKey | ( | ) | const |
std::string Basda::VinoFitsCard::getStringVal | ( | ) | const |
convert the value into a string.
std::string Basda::VinoFitsCard::getStringVal | ( | ) | const |
std::string Basda::VinoFitsCard::getStringVal | ( | ) | const |
Nice::Byte Basda::VinoFitsCard::getType | ( | ) | const |
Nice::Byte Basda::VinoFitsCard::getType | ( | ) | const |
get the type
Nice::Byte Basda::VinoFitsCard::getType | ( | ) | const |
|
private |
|
private |
ctor given a full card line
_card | The line with the fully qualified format key = val / comment or COMMENT. |
Support the complex valued cards with val = (..,...) in parentheses .
Support cards that start with HISTORY
_card | The line with the fully qualified format key = val / comment or COMMENT. |
Support the complex valued cards with val = (..,...) in parentheses .
Support cards that start with HISTORY
|
private |
VinoFitsCard& Basda::VinoFitsCard::operator= | ( | const VinoFitsCard & | oth | ) |
Basda::VinoFitsCard & Basda::VinoFitsCard::operator= | ( | const VinoFitsCard & | oth | ) |
Assignment operator.
oth | The other card to be copied. |
VinoFitsCard& Basda::VinoFitsCard::operator= | ( | const VinoFitsCard & | oth | ) |
void Basda::VinoFitsCard::set | ( | const std::string & | _key, |
const char * | _sval, | ||
const std::string & | _comment | ||
) |
overwrite values for a string type.
_key | Keyword. If empty this becomes a COMMENT card. |
_sval | |
_comment |
void Basda::VinoFitsCard::set | ( | const std::string & | _key, |
const char * | _val, | ||
const std::string & | _comment | ||
) |
void Basda::VinoFitsCard::set | ( | const std::string & | _key, |
const char * | _val, | ||
const std::string & | _comment | ||
) |
void Basda::VinoFitsCard::set | ( | const std::string & | _key, |
const std::string & | _sval, | ||
const std::string & | _comment | ||
) |
overwrite values for a string type.
_keyKeyword. | If empty this becomes a COMMENT card. |
_sval | |
_comment |
void Basda::VinoFitsCard::set | ( | const std::string & | _key, |
const std::string & | _val, | ||
const std::string & | _comment | ||
) |
void Basda::VinoFitsCard::set | ( | const std::string & | _key, |
const std::string & | _val, | ||
const std::string & | _comment | ||
) |
void Basda::VinoFitsCard::set | ( | const std::string & | _key, |
bool | _bval, | ||
const std::string & | _comment | ||
) |
void Basda::VinoFitsCard::set | ( | const std::string & | _key, |
bool | _bval, | ||
const std::string & | _comment | ||
) |
overwrite values for a boolean type.
_key | Keyword. If empty this becomes a COMMENT card |
_bval | boolean value |
_comment | comment after the slash with units and others. |
void Basda::VinoFitsCard::set | ( | const std::string & | _key, |
bool | _bval, | ||
const std::string & | _comment | ||
) |
void Basda::VinoFitsCard::set | ( | const std::string & | _key, |
Nice::Int | _val, | ||
const std::string & | _comment | ||
) |
void Basda::VinoFitsCard::set | ( | const std::string & | _key, |
Nice::Int | _val, | ||
const std::string & | _comment | ||
) |
overwrite values for an integer type.
_key | Keyword. If empty this becomes a COMMENT card |
_ival | |
_comment |
void Basda::VinoFitsCard::set | ( | const std::string & | _key, |
Nice::Int | _val, | ||
const std::string & | _comment | ||
) |
void Basda::VinoFitsCard::set | ( | const std::string & | _key, |
const double & | _val, | ||
const std::string & | _comment | ||
) |
void Basda::VinoFitsCard::set | ( | const std::string & | _key, |
const double & | _val, | ||
const std::string & | _comment | ||
) |
void Basda::VinoFitsCard::set | ( | const std::string & | _key, |
const double & | _dval, | ||
const std::string & | _comment | ||
) |
overwrite values for a floating point type
_key. | Keyword. If empty this becomes a COMMENT card. |
_dval | |
_comment |
void Basda::VinoFitsCard::set | ( | const std::string & | _key, |
const double & | _val, | ||
size_t | _precision, | ||
const std::string & | _comment | ||
) |
void Basda::VinoFitsCard::set | ( | const std::string & | _key, |
const double & | _val, | ||
size_t | _precision, | ||
const std::string & | _comment | ||
) |
void Basda::VinoFitsCard::set | ( | const std::string & | _key, |
const double & | _dval, | ||
size_t | _precision, | ||
const std::string & | _comment | ||
) |
overwrite values for a floating point type
_key | Keyword. If empty this becomes a COMMENT card. |
_dval | |
_comment |
void Basda::VinoFitsCard::setComment | ( | const std::string & | _comment | ) |
void Basda::VinoFitsCard::setComment | ( | const std::string & | _comment | ) |
void Basda::VinoFitsCard::setComment | ( | const std::string & | _comment | ) |
overwrite the comment of the card by a new one. The comment to be changed is the entire card (if this is a COMMENT card) or the comment piece of the card.
_comment | The new comment. |
void Basda::VinoFitsCard::setComment | ( | const std::string & | _unit, |
const Nice::Date & | _date | ||
) |
void Basda::VinoFitsCard::setComment | ( | const std::string & | _unit, |
const Nice::Date & | _date | ||
) |
void Basda::VinoFitsCard::setComment | ( | const std::string & | _unit, |
const Nice::Date & | _date | ||
) |
add a unit and a date to the comment. The unit is preprended and the date is appended to the existing comment. The comment to be changed is the entire card (if this is a COMMENT card) or the comment piece of the card.
_unit | The IAU unit string without the two brackets. |
_date | A time specification. The time will be added in UTC ISO format. |
void Basda::VinoFitsCard::setComment | ( | const std::string & | _unit, |
const std::string & | _date = "(%Y-%m-%d:%H:%M:%S)" |
||
) |
void Basda::VinoFitsCard::setComment | ( | const std::string & | _unit, |
const std::string & | _fmt = "(%Y-%m-%d:%H:%M:%S)" |
||
) |
add a unit and a date to the comment. The unit is preprended and the current date is appended to the existing comment. The comment to be changed is the entire card (if this is a COMMENT card) or the comment piece of the card.
_unit | The IAU unit string without the two brackets. |
_fmt | A time/date string |
void Basda::VinoFitsCard::setComment | ( | const std::string & | _unit, |
const std::string & | _date = "(%Y-%m-%d:%H:%M:%S)" |
||
) |
void Basda::VinoFitsCard::setValue | ( | const char * | _val | ) |
void Basda::VinoFitsCard::setValue | ( | const char * | _val | ) |
void Basda::VinoFitsCard::setValue | ( | const char * | _sval | ) |
overwrite the value with a new string
_sval | the new string If this is a COMMENT card, this is a no-op. |
void Basda::VinoFitsCard::setValue | ( | const std::string & | _sval | ) |
overwrite the value with a new string If this is a COMMENT card, this is a no-op.
_sval | The new string |
void Basda::VinoFitsCard::setValue | ( | const std::string & | _val | ) |
void Basda::VinoFitsCard::setValue | ( | const std::string & | _val | ) |
void Basda::VinoFitsCard::setValue | ( | int | _val | ) |
void Basda::VinoFitsCard::setValue | ( | int | _val | ) |
Set the card value to a specific integer. If this is a COMMENT card, this is a no-op.
_ival | The new value of the card |
void Basda::VinoFitsCard::setValue | ( | int | _val | ) |
_bval | The boolean value to be stored. The value is stored as a zero (or nonzero) byte in mdata[0] If this is a COMMENT card, this is a no-op. |
void Basda::VinoFitsCard::setValue | ( | const double & | _val | ) |
void Basda::VinoFitsCard::setValue | ( | const double & | _val | ) |
void Basda::VinoFitsCard::setValue | ( | const double & | _dval | ) |
Set the card value to a specific floating point value. If this is a COMMENT card, this is a no-op.
_dval | The new value of the card |
void Basda::VinoFitsCard::setValue | ( | const double & | _val, |
size_t | _precision | ||
) |
void Basda::VinoFitsCard::setValue | ( | const double & | _dval, |
size_t | _precision | ||
) |
Set the card value to a specific floating point value. If this is a COMMENT card, this is a no-op.
_dval | The new value of the card |
_precision |
void Basda::VinoFitsCard::setValue | ( | const double & | _val, |
size_t | _precision | ||
) |
|
private |
|
private |
|
private |
Analyse the contents and types in a template header line.
[in] | card | The card to be analysed, typically up to 80 characters. |
[out] | keyname | Keyword name in the card. |
[out] | keyval | Keyword value in the card. |
[out] | cmt | Comment after the slash in the card. |
[out] | dtyp | Rough type (string, integer, float, boolean or complex) |
int Basda::VinoFitsCard::write | ( | fitsfile * | ) |
int Basda::VinoFitsCard::write | ( | fitsfile * | _fitsptr | ) |
insert the card into a header-data unit.
_fitsptr | The cfitsio represeentation fo the current FITS header. |
int Basda::VinoFitsCard::write | ( | fitsfile * | ) |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
staticprotected |