2026-07-18 18:48:23 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <map>
|
|
|
|
|
#include <filesystem>
|
|
|
|
|
#include "eval.h"
|
|
|
|
|
#include "machine.h"
|
|
|
|
|
|
|
|
|
|
#define VISIBLE __attribute__ ((visibility ("default")))
|
|
|
|
|
|
|
|
|
|
using argmap = std::map<std::string, std::string>;
|
|
|
|
|
|
|
|
|
|
class Klammer_base {
|
|
|
|
|
public:
|
|
|
|
|
Klammer_base(Machine& machine)
|
|
|
|
|
: m_machine(machine)
|
|
|
|
|
{};
|
|
|
|
|
virtual ~Klammer_base() {};
|
|
|
|
|
|
2026-07-30 23:50:07 +02:00
|
|
|
std::string get(const std::string& name);
|
2026-07-18 18:48:23 +02:00
|
|
|
std::string get(const char* name);
|
|
|
|
|
virtual std::string html();
|
|
|
|
|
virtual std::string tex();
|
|
|
|
|
virtual std::string txt();
|
|
|
|
|
|
|
|
|
|
std::string result();
|
2026-07-30 23:50:07 +02:00
|
|
|
void show(const std::string& klammer_name);
|
2026-07-18 18:48:23 +02:00
|
|
|
|
|
|
|
|
Machine m_machine;
|
|
|
|
|
};
|