ifw-odp 5.0.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ifw::odp::ImageExtensions Class Reference

This class is interface for a CPL image extensions functions. It provides a simplified interface that allows to call CPL routines INS applications. More...

#include <imageExtensions.hpp>

Inheritance diagram for ifw::odp::ImageExtensions:
ifw::odp::Error

Public Member Functions

 ImageExtensions ()
 Class constructor.
 
virtual ~ImageExtensions ()
 Class destructor.
 
void GetNumExt (const std::string &filename, cpl_size *extnum)
 Get the number of image extensions.
 
cpl_size GetNumExt (const std::string &filename)
 Get the number of image extensions.
 
void FindExt (const std::string &filename, const std::string &extname, cpl_size *extnum)
 Get the place of a give extension in a FITS file.
 
cpl_size FindExt (const std::string &filename, const std::string &extname)
 Get the place of a give extension in a FITS file.
 
- Public Member Functions inherited from ifw::odp::Error
 Error ()
 Class constructor.
 
virtual ~Error ()
 Class destructor.
 
void ResetCplError ()
 Reset CPL error and internal error flag.
 
bool CheckCplError () const
 Check if there is an error in CPL.
 

Additional Inherited Members

- Protected Member Functions inherited from ifw::odp::Error
std::string GetErrorMsg () const
 Get CPL error message.
 

Detailed Description

This class is interface for a CPL image extensions functions. It provides a simplified interface that allows to call CPL routines INS applications.

ImageExtensions - CPL image extension interface class

See also
CPL Reference: http://www.eso.org/observing/cpl/reference_3.0/ or above

Constructor & Destructor Documentation

◆ ImageExtensions()

ifw::odp::ImageExtensions::ImageExtensions ( )
explicit

Class constructor.

Returns
none

◆ ~ImageExtensions()

ifw::odp::ImageExtensions::~ImageExtensions ( )
virtual

Class destructor.

Returns
none

Member Function Documentation

◆ FindExt() [1/2]

cpl_size ifw::odp::ImageExtensions::FindExt ( const std::string & filename,
const std::string & extname )

Get the place of a give extension in a FITS file.

Parameters
[in]filenameFIT file.
[in]extnameExtension name.
Returns
Extension number
See also
CPL function: cpl_fits_find_extension

◆ FindExt() [2/2]

void ifw::odp::ImageExtensions::FindExt ( const std::string & filename,
const std::string & extname,
cpl_size * extnum )

Get the place of a give extension in a FITS file.

Parameters
[in]filenameFIT file.
[in]extnameExtension name.
[out]extnumExtension number.
Returns
none
See also
CPL function: cpl_fits_find_extension

◆ GetNumExt() [1/2]

cpl_size ifw::odp::ImageExtensions::GetNumExt ( const std::string & filename)

Get the number of image extensions.

Parameters
[in]filenameFIT file.
Returns
Number of extensions
See also
CPL function: cpl_fits_count_extensions

◆ GetNumExt() [2/2]

void ifw::odp::ImageExtensions::GetNumExt ( const std::string & filename,
cpl_size * extnum )

Get the number of image extensions.

Parameters
[in]filenameFIT file.
[out]extnumNumber of extensions.
Returns
none
See also
CPL function: cpl_fits_count_extensions

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