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