Elements 6.1.2
A C++ base framework for the Euclid Software.
Loading...
Searching...
No Matches
Wcs.cpp
Go to the documentation of this file.
1
21#include <map> // for map
22#include <string> // for string
23
24#include <wcslib/wcs.h>
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 Wcs : public Program {
36
37public:
39
40 auto log = Logging::getLogger("WcsExample");
41
42 log.info() << "done with test program! ";
43
44 return ExitCode::OK;
45 }
46};
47
48} // namespace Examples
49} // namespace Elements
50
Macro to silence unused variables warnings from the compiler.
Simple example of an Elements program.
Definition: Program.cpp:79
ExitCode mainMethod(ELEMENTS_UNUSED map< string, VariableValue > &args) override
Definition: Wcs.cpp:38
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.