#include <FitsFileFixture.h>
MefFile with random name and create-only policy.
Public Member Functions | |
| NewMefFile () | |
| Constructor. | |
Public Member Functions inherited from MefFile | |
| template<typename... TActions> | |
| MefFile (const std::string &filename, FileMode mode, TActions &&... actions) | |
| Create a new FITS file handler with given filename and permission. More... | |
| virtual | ~MefFile () |
| Destroy the object and close the file. More... | |
| void | close () override |
| Close the file. More... | |
| long | hdu_count () const |
| Get the number of HDUs. More... | |
| std::vector< std::string > | read_hdu_names () |
| Read the name of each HDU. More... | |
| std::vector< std::pair< std::string, long > > | read_hdu_names_versions () |
| Read the name and version of each HDU. More... | |
| const Strategy & | strategy () const |
| Get the strategy. | |
| Strategy & | strategy () |
| Get the strategy. | |
| template<class T = Hdu> | |
| const T & | access (long index) |
| Access the HDU at given 0-based index. More... | |
| const Hdu & | operator[] (long index) |
Shortcut for access<Hdu>(long) | |
| template<class T = Hdu> | |
| const T & | find (const std::string &name, long version=0) |
| Access the first HDU with given name, type and version. More... | |
| template<class T = Hdu> | |
| const T & | access (const std::string &name, long version=0) |
| Access the only HDU with given name, type and version. More... | |
| const ImageHdu & | primary () |
| Access the Primary HDU. More... | |
| template<typename T = Hdu> | |
| HduSelector< T > | filter (const HduFilter &categories=HduCategory::Any) |
| Get an iterable object which represents a filtered set of HDUs. More... | |
| template<typename... TActions> | |
| void | strategy (TActions &&... actions) |
Shortcut for strategy().append(). | |
| template<typename T = Hdu> | |
| const T & | append (const T &hdu) |
| Append a copy of a given HDU. More... | |
| template<typename T = unsigned char> | |
| const ImageHdu & | append_image_header (const std::string &name="", const RecordSeq &records={}) |
Append a new image extension with empty data unit (NAXIS = 0). | |
| template<typename T , long N = 2> | |
| const ImageHdu & | append_null_image (const std::string &name, const RecordSeq &records, const Position< N > &shape) |
| Append a new image extension and fill the data unit with null values. More... | |
| template<typename TRaster > | |
| const ImageHdu & | append_image (const std::string &name, const RecordSeq &records, const TRaster &raster) |
| Append and write a new image extension. More... | |
| template<typename... TInfos> | |
| const BintableHdu & | append_bintable_header (const std::string &name="", const RecordSeq &records={}, const TInfos &... infos) |
| Append a binary table extension with empty data unit (0 rows, and possibly 0 columns). | |
| template<typename... TInfos> | |
| const BintableHdu & | append_null_bintable (const std::string &name, const RecordSeq &records, long row_count, const TInfos &... infos) |
| Append a binary table extension and fill it with null values. More... | |
| template<typename... TColumns> | |
| const BintableHdu & | append_bintable (const std::string &name, const RecordSeq &records, const TColumns &... columns) |
| Append and write a new binary table extension. | |
| template<typename TColumns , std::size_t Size = std::tuple_size<TColumns>::value> | |
| const BintableHdu & | append_bintable (const std::string &name, const RecordSeq &records, const TColumns &columns) |
| Append and write a new binary table extension. | |
| void | remove (long index) |
| Remove the HDU with given index. | |
| long | hduCount () const |
| std::vector< std::string > | readHduNames () |
| std::vector< std::pair< std::string, long > > | readHduNamesVersions () |
| template<typename T = unsigned char> | |
| const ImageHdu & | appendImageHeader (const std::string &name="", const RecordSeq &records={}) |
| template<typename T , long N = 2> | |
| const ImageHdu & | appendNullImage (const std::string &name, const RecordSeq &records, const Position< N > &shape) |
| template<typename TRaster > | |
| const ImageHdu & | appendImage (const std::string &name, const RecordSeq &records, const TRaster &raster) |
| template<typename... TInfos> | |
| const BintableHdu & | appendBintableHeader (const std::string &name="", const RecordSeq &records={}, const TInfos &... infos) |
| template<typename... TInfos> | |
| const BintableHdu & | appendNullBintable (const std::string &name, const RecordSeq &records, long row_count, const TInfos &... infos) |
| template<typename... TColumns> | |
| const BintableHdu & | appendBintable (const std::string &name, const RecordSeq &records, const TColumns &... columns) |
Public Member Functions inherited from FitsFile | |
| FitsFile (const std::string &filename, FileMode permission=FileMode::Read) | |
| Create a new FITS file handler with given filename and permission. | |
| virtual | ~FitsFile () |
| Destroy the object and close the file. More... | |
| std::string | filename () const |
| Get the file name. | |
| bool | is_open () const |
| Check whether the file is open. | |
| void | reopen () |
| Reopen the file. More... | |
| void | close_remove () |
| Close and delete the file. | |
| fitsfile * | handover_to_cfitsio () |
Get CFITSIO's fitsfile*. More... | |
| bool | isOpen () const |
| void | closeAndDelete () |
| fitsfile * | handoverToCfitsio () |