Elements  6.2
A C++ base framework for the Euclid Software.
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 
29 using std::map;
30 using std::string;
31 
32 namespace Elements {
33 namespace Examples {
34 
35 class Healpix : public Program {
36 
37 public:
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 
Elements::ExitCode::OK
@ OK
Everything is OK.
std::string
STL class.
Elements::ExitCode
ExitCode
Strongly typed exit numbers.
Definition: Exit.h:97
Elements::Examples::Program
Simple example of an Elements program.
Definition: Program.cpp:79
std::map
STL class.
ProgramHeaders.h
Elements::Examples::Healpix::mainMethod
ExitCode mainMethod(ELEMENTS_UNUSED map< string, VariableValue > &args) override
Definition: Healpix.cpp:38
Elements::Examples::log
auto log
Definition: BackTrace.cpp:36
Elements::Logging::getLogger
static Logging getLogger(const std::string &name="")
Definition: Logging.cpp:63
MAIN_FOR
#define MAIN_FOR(ELEMENTS_PROGRAM_NAME)
Definition: Main.h:113
Elements::Examples::Healpix
Definition: Healpix.cpp:35
Unused.h
Macro to silence unused variables warnings from the compiler.
ELEMENTS_UNUSED
#define ELEMENTS_UNUSED
Definition: Unused.h:39
Elements
Definition: callBackExample.h:35