39 lines
987 B
C++
39 lines
987 B
C++
/** @file Interpreter2Appcx.hpp
|
|
*
|
|
* @author Roland Conybeare, Sep 2026
|
|
**/
|
|
|
|
#pragma once
|
|
|
|
#include "Interpreter2Config.hpp"
|
|
#include <xo/subsys/AppContext.hpp>
|
|
|
|
namespace xo {
|
|
/** @brief application context for the xo-interpreter2 subsystem **/
|
|
class Interpreter2Appcx {
|
|
public:
|
|
/** driver **/
|
|
Interpreter2Appcx(const Interpreter2Config & cfg);
|
|
|
|
template <typename Deps>
|
|
Interpreter2Appcx(Deps & /*deps*/,
|
|
const Interpreter2Config & cfg) : Interpreter2Appcx(cfg) {}
|
|
|
|
const InitEvidence & init_evidence() const { return init_evidence_; }
|
|
|
|
private:
|
|
/** ensures low-level subsystem init **/
|
|
InitEvidence init_evidence_;
|
|
|
|
/** xo-interpreter2/ configuration **/
|
|
Interpreter2Config config_;
|
|
};
|
|
|
|
template <>
|
|
class SubsystemContext<S_interpreter2_tag> {
|
|
public:
|
|
using Type = Interpreter2Appcx;
|
|
};
|
|
} /*namespace xo*/
|
|
|
|
/* end Interpreter2Appcx.hpp */
|