ifw-odp 5.0.0
Loading...
Searching...
No Matches
imageExtensions.hpp
Go to the documentation of this file.
1
9#ifndef ODP_IMAGE_EXTENSIONS_HPP
10#define ODP_IMAGE_EXTENSIONS_HPP
11
12
13#ifndef __cplusplus
14#error This is a C++ include file and cannot be used from plain C
15#endif
16
17// System header files
18#include <iostream>
19#include <sstream>
20#include <string>
21
22// CPL header files
23#include "cpl.h"
24
25// Local header files
27
28namespace ifw::odp {
29
40 class ImageExtensions : virtual public odp::Error
41 {
42 public:
43
50 explicit ImageExtensions();
51
58 virtual ~ImageExtensions();
59
68 void GetNumExt(const std::string& filename, cpl_size *extnum);
69
77 cpl_size GetNumExt(const std::string& filename);
78
88 void FindExt(const std::string& filename, const std::string& extname, cpl_size *extnum);
89
98 cpl_size FindExt(const std::string& filename, const std::string& extname);
99
100 };
101
102}
103
104#endif
This class handle the errors produced by the calling of image processing routines.
Definition error.hpp:35
This class is interface for a CPL image extensions functions. It provides a simplified interface that...
Definition imageExtensions.hpp:41
virtual ~ImageExtensions()
Class destructor.
Definition imageExtensions.cpp:22
void GetNumExt(const std::string &filename, cpl_size *extnum)
Get the number of image extensions.
Definition imageExtensions.cpp:26
void FindExt(const std::string &filename, const std::string &extname, cpl_size *extnum)
Get the place of a give extension in a FITS file.
Definition imageExtensions.cpp:50
ImageExtensions()
Class constructor.
Definition imageExtensions.cpp:18
Error class header file.
Definition array.cpp:16