SourceXtractorPlusPlus  0.8
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
SourceXtractor::TemporaryFitsImageSource< T > Class Template Reference

FitsTemporaryImageSource wraps FitsImageSource, generating the filename and acquiring its ownership. More...

#include <TemporaryFitsImageSource.h>

Inheritance diagram for SourceXtractor::TemporaryFitsImageSource< T >:
[legend]
Collaboration diagram for SourceXtractor::TemporaryFitsImageSource< T >:
[legend]

Public Member Functions

 TemporaryFitsImageSource (const std::string &dir, const std::string &pattern, int width, int height, bool autoremove=true)
 
 TemporaryFitsImageSource (const std::string pattern, int width, int height, bool autoremove=true)
 
 TemporaryFitsImageSource (int width, int height, bool autoremove=true)
 
virtual ~TemporaryFitsImageSource ()=default
 
std::string getFullPath () const
 
virtual std::string getRepr () const override
 Human readable representation of this source. More...
 
virtual std::shared_ptr
< ImageTile< T > > 
getImageTile (int x, int y, int width, int height) const override
 
virtual void saveTile (ImageTile< T > &tile) override
 
virtual int getWidth () const override
 Returns the width of the image in pixels. More...
 
virtual int getHeight () const override
 Returns the height of the image in pixels. More...
 
- Public Member Functions inherited from SourceXtractor::ImageSource< T >
 ImageSource ()
 
virtual ~ImageSource ()=default
 
- Public Member Functions inherited from SourceXtractor::ImageSourceBase
virtual ~ImageSourceBase ()=default
 
- Public Member Functions inherited from std::enable_shared_from_this< ImageSource< T > >
enable_shared_from_this (T...args)
 
operator= (T...args)
 
shared_from_this (T...args)
 
~enable_shared_from_this (T...args)
 

Private Attributes

TemporaryFile m_temp_file
 
std::shared_ptr
< FitsImageSource< T > > 
m_image_source
 

Detailed Description

template<typename T>
class SourceXtractor::TemporaryFitsImageSource< T >

FitsTemporaryImageSource wraps FitsImageSource, generating the filename and acquiring its ownership.

Definition at line 36 of file TemporaryFitsImageSource.h.

Constructor & Destructor Documentation

template<typename T >
SourceXtractor::TemporaryFitsImageSource< T >::TemporaryFitsImageSource ( const std::string dir,
const std::string pattern,
int  width,
int  height,
bool  autoremove = true 
)
inline

Definition at line 38 of file TemporaryFitsImageSource.h.

template<typename T >
SourceXtractor::TemporaryFitsImageSource< T >::TemporaryFitsImageSource ( const std::string  pattern,
int  width,
int  height,
bool  autoremove = true 
)
inline

Definition at line 44 of file TemporaryFitsImageSource.h.

template<typename T >
SourceXtractor::TemporaryFitsImageSource< T >::TemporaryFitsImageSource ( int  width,
int  height,
bool  autoremove = true 
)
inline

Definition at line 48 of file TemporaryFitsImageSource.h.

template<typename T >
virtual SourceXtractor::TemporaryFitsImageSource< T >::~TemporaryFitsImageSource ( )
virtualdefault

Member Function Documentation

template<typename T >
std::string SourceXtractor::TemporaryFitsImageSource< T >::getFullPath ( ) const
inline

Definition at line 54 of file TemporaryFitsImageSource.h.

References SourceXtractor::TemporaryFile::getPath(), and SourceXtractor::TemporaryFitsImageSource< T >::m_temp_file.

Referenced by SourceXtractor::TemporaryFitsImageSource< T >::getRepr().

Here is the call graph for this function:

template<typename T >
virtual int SourceXtractor::TemporaryFitsImageSource< T >::getHeight ( ) const
inlineoverridevirtual

Returns the height of the image in pixels.

Implements SourceXtractor::ImageSource< T >.

Definition at line 74 of file TemporaryFitsImageSource.h.

References SourceXtractor::TemporaryFitsImageSource< T >::m_image_source.

template<typename T >
virtual std::shared_ptr<ImageTile<T> > SourceXtractor::TemporaryFitsImageSource< T >::getImageTile ( int  x,
int  y,
int  width,
int  height 
) const
inlineoverridevirtual
template<typename T >
virtual std::string SourceXtractor::TemporaryFitsImageSource< T >::getRepr ( ) const
inlineoverridevirtual

Human readable representation of this source.

Implements SourceXtractor::ImageSourceBase.

Definition at line 58 of file TemporaryFitsImageSource.h.

References SourceXtractor::TemporaryFitsImageSource< T >::getFullPath().

Here is the call graph for this function:

template<typename T >
virtual int SourceXtractor::TemporaryFitsImageSource< T >::getWidth ( ) const
inlineoverridevirtual

Returns the width of the image in pixels.

Implements SourceXtractor::ImageSource< T >.

Definition at line 70 of file TemporaryFitsImageSource.h.

References SourceXtractor::TemporaryFitsImageSource< T >::m_image_source.

template<typename T >
virtual void SourceXtractor::TemporaryFitsImageSource< T >::saveTile ( ImageTile< T > &  tile)
inlineoverridevirtual

Member Data Documentation

template<typename T >
std::shared_ptr<FitsImageSource<T> > SourceXtractor::TemporaryFitsImageSource< T >::m_image_source
private
template<typename T >
TemporaryFile SourceXtractor::TemporaryFitsImageSource< T >::m_temp_file
private

The documentation for this class was generated from the following file: