![]() |
EleFits
4.0.0
A modern C++ API on top of CFitsIO
|
Header-related functions.
Functions | |
| std::string | readHeader (fitsfile *fptr, bool incNonValued=true) |
| Read the whole header as a string. More... | |
| std::vector< std::string > | listKeywords (fitsfile *fptr, Fits::KeywordCategory categories=Fits::KeywordCategory::All) |
| List the keywords of selected categories. | |
| std::map< std::string, std::string > | listKeywordsValues (fitsfile *fptr, Fits::KeywordCategory categories=Fits::KeywordCategory::All) |
| List the keywords of selected categories, as well as their values. | |
| bool | hasKeyword (fitsfile *fptr, const std::string &keyword) |
| Check whether the current HDU contains a given keyword. | |
| template<typename T > | |
| Fits::Record< T > | parseRecord (fitsfile *fptr, const std::string &keyword) |
| Parse a record. | |
| template<typename... Ts> | |
| std::tuple< Fits::Record< Ts >... > | parseRecords (fitsfile *fptr, const std::vector< std::string > &keywords) |
| Parse records. | |
| template<class TReturn , typename... Ts> | |
| TReturn | parseRecordsAs (fitsfile *fptr, const std::vector< std::string > &keywords) |
| Parse records and store them in a user-defined structure. More... | |
| template<typename T > | |
| Fits::RecordVec< T > | parseRecordVec (fitsfile *fptr, const std::vector< std::string > &keywords) |
| Parse homogeneous records and store them in a vector. | |
| template<typename T > | |
| void | writeRecord (fitsfile *fptr, const Fits::Record< T > &record) |
| Write a new record. | |
| template<typename... Ts> | |
| void | writeRecords (fitsfile *fptr, const Fits::Record< Ts > &... records) |
| Write new records. | |
| template<typename... Ts> | |
| void | writeRecords (fitsfile *fptr, const std::tuple< Fits::Record< Ts >... > &records) |
| Write new records. | |
| template<typename T > | |
| void | writeRecords (fitsfile *fptr, const std::vector< Fits::Record< T >> &records) |
| Write homogeneous records. | |
| template<typename T > | |
| void | updateRecord (fitsfile *fptr, const Fits::Record< T > &record) |
| Update an existing record or write a new one. | |
| template<typename... Ts> | |
| void | updateRecords (fitsfile *fptr, const Fits::Record< Ts > &... records) |
| Update existing records or write new ones. | |
| template<typename... Ts> | |
| void | updateRecords (fitsfile *fptr, const std::tuple< Fits::Record< Ts >... > &records) |
| Update existing records or write new ones. | |
| template<typename T > | |
| void | updateRecords (fitsfile *fptr, const std::vector< Fits::Record< T >> &records) |
| Update existing homogeneous records or write new ones. | |
| void | deleteRecord (fitsfile *fptr, const std::string &keyword) |
| Delete an existing record. | |
| const std::type_info & | recordTypeid (fitsfile *fptr, const std::string &keyword) |
| Get the typeid of a record value. | |
| void | writeComment (fitsfile *fptr, const std::string &comment) |
| Write COMMENT record. | |
| void | writeHistory (fitsfile *fptr, const std::string &history) |
| Write HISTORY record. | |