Elements  6.0.1
A C++ base framework for the Euclid Software.
CfitsioExample.cpp
Go to the documentation of this file.
1 
21 #include <map> // for map
22 #include <string> // for string
23 
24 #include <fitsio.h>
25 
26 #include "ElementsKernel/ProgramHeaders.h" // for including all Program/related headers
27 #include "ElementsKernel/Unused.h" // for ELEMENTS_UNUSED
28 
29 using std::map;
30 using std::string;
31 
32 namespace Elements {
33 namespace Examples {
34 
35 class CfitsioExample : public Program {
36 
37 public:
39 
40  auto log = Logging::getLogger("CfitsioExample");
41 
42  int a = fits_is_reentrant();
43 
44  log.info() << "Cfitsio is reentrant: " << a;
45 
46  log.info() << "done with test program! ";
47 
48  return ExitCode::OK;
49  }
50 };
51 
52 } // namespace Examples
53 } // namespace Elements
54 
Macro to silence unused variables warnings from the compiler.
ExitCode mainMethod(ELEMENTS_UNUSED map< string, VariableValue > &args) override
static Logging getLogger(const std::string &name="")
Definition: Logging.cpp:63
Abstract class for all Elements programs.
Definition: Program.h:52
ExitCode
Strongly typed exit numbers.
Definition: Exit.h:97
#define MAIN_FOR(ELEMENTS_PROGRAM_NAME)
Definition: Main.h:113
#define ELEMENTS_UNUSED
Definition: Unused.h:39
@ OK
Everything is OK.