ifw-odp  4.0.0-pre1
Public Member Functions | List of all members
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 odp::ImageExtensions:
odp::Error

Public Member Functions

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

Additional Inherited Members

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

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()

odp::ImageExtensions::ImageExtensions ( )
explicit

Class constructor.

Returns
none

◆ ~ImageExtensions()

odp::ImageExtensions::~ImageExtensions ( )
virtual

Class destructor.

Returns
none

Member Function Documentation

◆ FindExt() [1/2]

cpl_size 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 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 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 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: