Elements
5.10
A C++ base framework for the Euclid Software.
ElementsExamples
src
program
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
42
ExitCode
mainMethod
(
ELEMENTS_UNUSED
map<string, variable_value>
& args)
override
{
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
64
MAIN_FOR
(
Elements::Examples::HealpixExample
)
Elements::ExitCode::OK
@ OK
Everything is OK.
std::string
STL class.
Elements::Examples::HealpixExample
Definition:
HealpixExample.cpp:38
Elements::ExitCode
ExitCode
Strongly typed exit numbers.
Definition:
Exit.h:98
std::map
STL class.
ProgramHeaders.h
Elements::Examples::log
auto log
Definition:
BackTraceExample.cpp:38
Elements::Examples::HealpixExample::mainMethod
ExitCode mainMethod(ELEMENTS_UNUSED map< string, variable_value > &args) override
Definition:
HealpixExample.cpp:42
Elements::Logging::getLogger
static Logging getLogger(const std::string &name="")
Definition:
Logging.cpp:63
Elements::Program
Abstract class for all Elements programs.
Definition:
Program.h:51
MAIN_FOR
#define MAIN_FOR(ELEMENTS_PROGRAM_NAME)
Definition:
Main.h:117
Unused.h
Macro to silence unused variables warnings from the compiler.
ELEMENTS_UNUSED
#define ELEMENTS_UNUSED
Definition:
Unused.h:39
Elements
Definition:
ClassExample.h:38
Generated by
1.8.18