ores.cpp.service-app.host_impl

Table of Contents

Process lifecycle: signals, shutdown, telemetry. component-service profile.

See the Template variable reference for the complete list of available variables and their semantics.

Template

The full template source. Edit here and re-tangle with compass build --direct tangle_codegen_templates to regenerate library/templates/cpp_service_app_host.cpp.mustache.

{{! GENERATED FILE — tangled from projects/ores.codegen/library/templates/cpp_service_app.org. Edit the org source. }}
{{{cpp_license}}}
{{#component}}
#include "{{full_name}}/app/host.hpp"
#include "{{full_name}}/app/application.hpp"
#include "{{full_name}}/config/parser.hpp"
#include "ores.service/service/host_runner.hpp"

namespace {{namespace}}::app {

using {{namespace}}::config::parser;

boost::asio::awaitable<int>
host::execute(const std::vector<std::string>& args, std::ostream& std_output,
    std::ostream& error_output, boost::asio::io_context& io_ctx) {
    return ores::service::service::run_host_async<parser, application>(
        args, std_output, error_output, io_ctx, lg());
}

}
{{/component}}

See also

Emacs 29.3 (Org mode 9.6.15)