|
SourceXtractorPlusPlus
0.19
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 93 of file FitsFile.cpp.
References loadInfo(), and open().

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

| fitsfile * SourceXtractor::FitsFile::getFitsFilePtr | ( | ) |
Definition at line 102 of file FitsFile.cpp.
References std::unique_ptr< T >::get(), and m_fits_ptr.
Referenced by 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 110 of file FitsFile.cpp.
References m_headers.
Referenced by SourceXtractor::FitsImageSource::getMetadata().
| const std::vector< int > & SourceXtractor::FitsFile::getImageHdus | ( | ) | const |
Definition at line 106 of file FitsFile.cpp.
References m_image_hdus.
|
private |
Definition at line 228 of file FitsFile.cpp.
References std::unique_ptr< T >::get(), SourceXtractor::loadHeadersFromFits(), m_fits_ptr, and m_headers.
Referenced by loadInfo().

|
private |
Definition at line 246 of file FitsFile.cpp.
References std::vector< T >::begin(), std::vector< T >::end(), std::getline(), std::ifstream::good(), std::ifstream::is_open(), m_headers, m_image_hdus, m_path, std::ifstream::open(), std::string::size(), and SourceXtractor::valueAutoCast().
Referenced by loadInfo().

|
private |
Definition at line 155 of file FitsFile.cpp.
References std::vector< T >::clear(), std::vector< T >::emplace_back(), std::unique_ptr< T >::get(), loadFitsHeader(), loadHeadFile(), m_fits_ptr, m_headers, m_image_hdus, and m_path.
Referenced by FitsFile(), and refresh().

|
private |
Definition at line 114 of file FitsFile.cpp.
References m_fits_ptr, m_is_writeable, m_path, and std::unique_ptr< T >::reset().
Referenced by FitsFile().

| void SourceXtractor::FitsFile::refresh | ( | ) |
Definition at line 135 of file FitsFile.cpp.
References loadInfo(), m_fits_ptr, m_is_writeable, m_path, and std::unique_ptr< T >::reset().

|
private |
Definition at line 63 of file FitsFile.h.
Referenced by 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.
|
private |
Definition at line 61 of file FitsFile.h.
Referenced by getDimensions(), loadHeadFile(), loadInfo(), open(), and refresh().
1.8.5