ifw-odp 5.1.1
 
Loading...
Searching...
No Matches
imageExtensions.hpp
Go to the documentation of this file.
1
7
8#ifndef ODP_IMAGE_EXTENSIONS_HPP
9#define ODP_IMAGE_EXTENSIONS_HPP
10
11
12#ifndef __cplusplus
13#error This is a C++ include file and cannot be used from plain C
14#endif
15
16// System header files
17#include <iostream>
18#include <sstream>
19#include <string>
20
21// CPL header files
22#include "cpl.h"
23
24// Local header files
26
27namespace ifw::odp {
28
39 class ImageExtensions : virtual public odp::Error
40 {
41 public:
42
49 explicit ImageExtensions();
50
57 virtual ~ImageExtensions();
58
67 void GetNumExt(const std::string& filename, cpl_size *extnum);
68
76 cpl_size GetNumExt(const std::string& filename);
77
87 void FindExt(const std::string& filename, const std::string& extname, cpl_size *extnum);
88
97 cpl_size FindExt(const std::string& filename, const std::string& extname);
98
99 };
100
101}
102
103#endif
104
105
106
107
108
109
110
111
This class handle the errors produced by the calling of image processing routines.
Definition error.hpp:34
virtual ~ImageExtensions()
Class destructor.
Definition imageExtensions.cpp:20
void GetNumExt(const std::string &filename, cpl_size *extnum)
Get the number of image extensions.
Definition imageExtensions.cpp:24
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:48
ImageExtensions()
Class constructor.
Definition imageExtensions.cpp:16
Array class source file.
Definition array.cpp:14