Elements
6.2
A C++ base framework for the Euclid Software.
ElementsExamples
src
program
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
29
using
std::map
;
30
using
std::string
;
31
32
namespace
Elements
{
33
namespace
Examples {
34
35
class
Wcs
:
public
Program
{
36
37
public
:
38
ExitCode
mainMethod
(
ELEMENTS_UNUSED
map<string, VariableValue>
& args)
override
{
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
55
MAIN_FOR
(
Elements::Examples::Wcs
)
Elements::ExitCode::OK
@ OK
Everything is OK.
std::string
STL class.
Elements::Examples::Wcs
Definition:
Wcs.cpp:35
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::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::Wcs::mainMethod
ExitCode mainMethod(ELEMENTS_UNUSED map< string, VariableValue > &args) override
Definition:
Wcs.cpp:38
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
Generated by
1.8.17