class
#include <eckit/runtime/Library.h>
Library
Base classes
- class Main
Public static functions
- static auto instance() -> Main&
-
static auto hostname() -> std::
string - Platform agnostic hostname.
- static void initialise(int argc, char** argv, const char* homeenv = nullptr)
- static auto ready() -> bool
Constructors, destructors, conversion operators
Public functions
- auto argc() const -> int
- auto argv() const -> char**
-
auto argv(int n) const -> std::
string -
auto home() const -> const std::
string& - void terminate() virtual
- auto taskID() const -> long
- void taskID(long)
-
auto name() const -> const std::
string& virtual - Name of the program as called from the command-line.
-
auto displayName() const -> const std::
string& virtual - auto debug() const -> bool virtual
- auto createInfoLogTarget() const -> LogTarget* virtual
- Channel handling.
- auto createWarningLogTarget() const -> LogTarget* virtual
- auto createErrorLogTarget() const -> LogTarget* virtual
- auto createDebugLogTarget() const -> LogTarget* virtual
- auto createMetricsLogTarget() const -> LogTarget* virtual
Private functions
- auto createChannel() const -> Channel* virtual
Function documentation
static Main& eckit:: Library:: instance()
#include <eckit/runtime/Main.h>
static std:: string eckit:: Library:: hostname()
#include <eckit/runtime/Main.h>
Platform agnostic hostname.
static void eckit:: Library:: initialise(int argc,
char** argv,
const char* homeenv = nullptr)
#include <eckit/runtime/Main.h>
Ensure that there exits a Main object. This is to be used For unit tests and fortran bindinds only
static bool eckit:: Library:: ready()
#include <eckit/runtime/Main.h>
int eckit:: Library:: argc() const
#include <eckit/runtime/Main.h>
char** eckit:: Library:: argv() const
#include <eckit/runtime/Main.h>
std:: string eckit:: Library:: argv(int n) const
#include <eckit/runtime/Main.h>
const std:: string& eckit:: Library:: home() const
#include <eckit/runtime/Main.h>
void eckit:: Library:: terminate() virtual
#include <eckit/runtime/Main.h>
long eckit:: Library:: taskID() const
#include <eckit/runtime/Main.h>
void eckit:: Library:: taskID(long)
#include <eckit/runtime/Main.h>
const std:: string& eckit:: Library:: name() const virtual
#include <eckit/runtime/Main.h>
Name of the program as called from the command-line.
const std:: string& eckit:: Library:: displayName() const virtual
#include <eckit/runtime/Main.h>
Name to display in logs. Default is name(), but can be configured differently.
bool eckit:: Library:: debug() const virtual
#include <eckit/runtime/Main.h>
LogTarget* eckit:: Library:: createInfoLogTarget() const virtual
#include <eckit/runtime/Main.h>
Channel handling.
LogTarget* eckit:: Library:: createWarningLogTarget() const virtual
#include <eckit/runtime/Main.h>
LogTarget* eckit:: Library:: createErrorLogTarget() const virtual
#include <eckit/runtime/Main.h>
LogTarget* eckit:: Library:: createDebugLogTarget() const virtual
#include <eckit/runtime/Main.h>
LogTarget* eckit:: Library:: createMetricsLogTarget() const virtual
#include <eckit/runtime/Main.h>