atlas::AtlasTool class

Base classes

class eckit::Tool

Public types

using Options = std::vector<eckit::option::Option*>
using Args = eckit::option::CmdArgs

Public static functions

static auto success() -> int constexpr
static auto failed() -> int constexpr
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

AtlasTool(int argc, char** argv)

Public functions

auto start() -> int
void run() virtual
auto execute(const Args&) -> int pure virtual
auto createWarningLogTarget() const -> LogTarget* override
auto createErrorLogTarget() const -> LogTarget* override
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 createDebugLogTarget() const -> LogTarget* virtual
auto createMetricsLogTarget() const -> LogTarget* virtual

Private functions

auto serial() -> bool virtual
auto indent() -> std::string virtual
auto briefDescription() -> std::string virtual
auto longDescription() -> std::string virtual
auto usage() -> std::string virtual
void help(std::ostream& out = Log::info()) virtual
auto numberOfPositionalArguments() -> int virtual
auto minimumPositionalArguments() -> int virtual

Function documentation

static Main& atlas::AtlasTool::instance()

static std::string atlas::AtlasTool::hostname()

Platform agnostic hostname.

static void atlas::AtlasTool::initialise(int argc, char** argv, const char* homeenv = nullptr)

Ensure that there exits a Main object. This is to be used For unit tests and fortran bindinds only

static bool atlas::AtlasTool::ready()

LogTarget* atlas::AtlasTool::createWarningLogTarget() const override

LogTarget* atlas::AtlasTool::createErrorLogTarget() const override

int atlas::AtlasTool::argc() const

char** atlas::AtlasTool::argv() const

std::string atlas::AtlasTool::argv(int n) const

const std::string& atlas::AtlasTool::home() const

void atlas::AtlasTool::terminate() virtual

long atlas::AtlasTool::taskID() const

void atlas::AtlasTool::taskID(long)

const std::string& atlas::AtlasTool::name() const virtual

Name of the program as called from the command-line.

const std::string& atlas::AtlasTool::displayName() const virtual

Name to display in logs. Default is name(), but can be configured differently.

bool atlas::AtlasTool::debug() const virtual

LogTarget* atlas::AtlasTool::createInfoLogTarget() const virtual

Channel handling.

LogTarget* atlas::AtlasTool::createDebugLogTarget() const virtual

LogTarget* atlas::AtlasTool::createMetricsLogTarget() const virtual