|
SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
|
represents access to a whole FITS file and handles loading and caching FITS headers More...
#include <FitsFile.h>

Public Member Functions | |
| FitsFile (const boost::filesystem::path &path, bool writeable) | |
| FitsFile (FitsFile &&)=default | |
| virtual | ~FitsFile () |
| fitsfile * | getFitsFilePtr () |
| const std::vector< int > & | getImageHdus () const |
| std::map< std::string, MetadataEntry > & | getHDUHeaders (int hdu) |
| std::vector< int > | getDimensions (int hdu) const |
| void | refresh () |
Private Member Functions | |
| void | open () |
| void | loadInfo () |
| void | loadFitsHeader () |
| void | loadHeadFile () |
Private Attributes | |
| boost::filesystem::path | m_path |
| bool | m_is_writeable |
| std::unique_ptr< fitsfile, void(*)(fitsfile *)> | m_fits_ptr |
| std::vector< int > | m_image_hdus |
| std::vector< std::map< std::string, MetadataEntry > > | m_headers |
represents access to a whole FITS file and handles loading and caching FITS headers
Definition at line 43 of file FitsFile.h.
| SourceXtractor::FitsFile::FitsFile | ( | const boost::filesystem::path & | path, |
| bool | writeable ) |
Definition at line 98 of file FitsFile.cpp.
References SourceXtractor::close_fits(), loadInfo(), m_fits_ptr, m_is_writeable, m_path, and open().
Referenced by FitsFile().

|
default |
|
virtual |
Definition at line 105 of file FitsFile.cpp.
| std::vector< int > SourceXtractor::FitsFile::getDimensions | ( | int | hdu | ) | const |
Definition at line 325 of file FitsFile.cpp.
References m_fits_ptr, m_path, and std::vector< T >::push_back().

| fitsfile * SourceXtractor::FitsFile::getFitsFilePtr | ( | ) |
Definition at line 107 of file FitsFile.cpp.
References m_fits_ptr.
Referenced by SourceXtractor::FitsImageSource::FitsImageSource(), SourceXtractor::FitsImageSource::FitsImageSource(), SourceXtractor::FitsImageSource::getImageTile(), SourceXtractor::FitsImageSource::saveTile(), and SourceXtractor::FitsImageSource::setMetadata().
| std::map< std::string, MetadataEntry > & SourceXtractor::FitsFile::getHDUHeaders | ( | int | hdu | ) |
Definition at line 115 of file FitsFile.cpp.
References m_headers.
Referenced by SourceXtractor::FitsImageSource::getMetadata().
| const std::vector< int > & SourceXtractor::FitsFile::getImageHdus | ( | ) | const |
Definition at line 111 of file FitsFile.cpp.
References m_image_hdus.
|
private |
Definition at line 245 of file FitsFile.cpp.
References SourceXtractor::loadHeadersFromFits(), m_fits_ptr, and m_headers.
Referenced by loadInfo().

|
private |
Definition at line 263 of file FitsFile.cpp.
References std::getline(), std::ifstream::good(), std::ifstream::is_open(), Euclid::Configuration::logger, m_headers, m_image_hdus, m_path, std::ifstream::open(), std::string::size(), and SourceXtractor::valueAutoCast().
Referenced by loadInfo().

|
private |
Definition at line 166 of file FitsFile.cpp.
References loadFitsHeader(), loadHeadFile(), m_fits_ptr, m_headers, m_image_hdus, and m_path.
Referenced by FitsFile(), and refresh().

|
private |
Definition at line 119 of file FitsFile.cpp.
References m_fits_ptr, m_is_writeable, and m_path.
Referenced by FitsFile().
| void SourceXtractor::FitsFile::refresh | ( | ) |
Definition at line 143 of file FitsFile.cpp.
References loadInfo(), m_fits_ptr, m_is_writeable, and m_path.

|
private |
Definition at line 63 of file FitsFile.h.
Referenced by FitsFile(), getDimensions(), getFitsFilePtr(), loadFitsHeader(), loadInfo(), open(), and refresh().
|
private |
Definition at line 65 of file FitsFile.h.
Referenced by getHDUHeaders(), loadFitsHeader(), loadHeadFile(), and loadInfo().
|
private |
Definition at line 64 of file FitsFile.h.
Referenced by getImageHdus(), loadHeadFile(), and loadInfo().
|
private |
Definition at line 62 of file FitsFile.h.
Referenced by FitsFile(), open(), and refresh().
|
private |
Definition at line 61 of file FitsFile.h.
Referenced by FitsFile(), getDimensions(), loadHeadFile(), loadInfo(), open(), and refresh().