Elements 6.1.2
A C++ base framework for the Euclid Software.
Loading...
Searching...
No Matches
Healpix.cpp
Go to the documentation of this file.
1
21#include <map> // for map
22#include <string> // for string
23
24#include <healpix_cxx/healpix_map.h> // for Healpix_Map
25
26#include "ElementsKernel/ProgramHeaders.h" // for including all Program/related headers
27#include "ElementsKernel/Unused.h" // for ELEMENTS_UNUSED
28
29using std::map;
30using std::string;
31
32namespace Elements {
33namespace Examples {
34
35class Healpix : public Program {
36
37public:
39
40 auto log = Logging::getLogger("HealpixExample");
41
42 Healpix_Map<double> map;
43
44 log.info() << "done with test program! ";
45
46 return ExitCode::OK;
47 }
48};
49
50} // namespace Examples
51} // namespace Elements
52
Macro to silence unused variables warnings from the compiler.
ExitCode mainMethod(ELEMENTS_UNUSED map< string, VariableValue > &args) override
Definition: Healpix.cpp:38
Simple example of an Elements program.
Definition: Program.cpp:79
static Logging getLogger(const std::string &name="")
Definition: Logging.cpp:63
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.