Elements  5.10
A C++ base framework for the Euclid Software.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CfitsioExample.cpp
Go to the documentation of this file.
1 
21 #include <map> // for map
22 #include <string> // for string
23 #include <boost/program_options.hpp> // for program options from configuration file of command line arguments
24 
25 #include <fitsio.h>
26 
27 #include "ElementsKernel/ProgramHeaders.h" // for including all Program/related headers
28 #include "ElementsKernel/Unused.h" // for ELEMENTS_UNUSED
29 
30 using std::map;
31 using std::string;
32 using boost::program_options::variable_value;
33 
34 namespace Elements {
35 namespace Examples {
36 
37 
38 class CfitsioExample: public Program {
39 
40 public:
41 
43 
44  auto log = Logging::getLogger("CfitsioExample");
45 
46  int a = fits_is_reentrant();
47 
48  log.info() << "Cfitsio is reentrant: " << a;
49 
50  log.info() << "done with test program! ";
51 
52  return ExitCode::OK;
53 
54  }
55 
56 };
57 
58 } // namespace Examples
59 } // namespace Elements
60 
ExitCode
Strongly typed exit numbers.
Definition: Exit.h:98
Macro to silence unused variables warnings from the compiler.
Everything is OK.
Abstract class for all Elements programs.
Definition: Program.h:51
STL class.
STL class.
#define MAIN_FOR(ELEMENTS_PROGRAM_NAME)
Definition: Main.h:117
ExitCode mainMethod(ELEMENTS_UNUSED map< string, variable_value > &args) override
#define ELEMENTS_UNUSED
Definition: Unused.h:39
static Logging getLogger(const std::string &name="")
Definition: Logging.cpp:63