ifw-odp  2.0.0-alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
26 #include "cppcpl/error.hpp"
27 
28 namespace 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
virtual ~ImageExtensions()
Class destructor.
Definition: imageExtensions.cpp:23
ImageExtensions()
Class constructor.
Definition: imageExtensions.cpp:19
void GetNumExt(const std::string &filename, cpl_size *extnum)
Get the number of image extensions.
Definition: imageExtensions.cpp:27
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:53
This class handle the errors produced by the calling of image processing routines.
Definition: error.hpp:34
Error class header file.
This class is interface for a CPL image extensions functions. It provides a simplified interface that...
Definition: imageExtensions.hpp:40