λ61
Loading...
Searching...
No Matches
FileBackedScriptEnvironment.hpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2025 Tetex7
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18//
19// Created by tete on 10/04/2025.
20//
21#pragma once
22
23#ifndef L61_FILEBACKEDSCRIPTENVIRONMENT_HPP
24#define L61_FILEBACKEDSCRIPTENVIRONMENT_HPP
26
27namespace l61::ScriptEngine
28{
30 {
31 private:
32 const std::string scriptFilePath;
33 public:
34 const std::string& getScriptFilePath() const;
35
36 std::string toString() const override;
37
38 explicit FileBackedScriptEnvironment(const std::string& scriptFilePath, l61_stat& scriptCtx);
39
40 ~FileBackedScriptEnvironment() override = default;
41 };
42}
43
44
45#endif //FILEBACKEDSCRIPTENVIRONMENT_HPP
const std::string & getScriptFilePath() const
Definition FileBackedScriptEnvironment.cpp:26
const std::string scriptFilePath
Definition FileBackedScriptEnvironment.hpp:32
FileBackedScriptEnvironment(const std::string &scriptFilePath, l61_stat &scriptCtx)
Definition FileBackedScriptEnvironment.cpp:36
std::string toString() const override
Returns a human-readable string representation of the object.
Definition FileBackedScriptEnvironment.cpp:31
ScriptEnvironment(l61_stat &scriptCtx)
Definition ScriptEnvironment.cpp:77
l61_stat & scriptCtx
Definition ScriptEnvironment.hpp:41
Definition defs.hpp:171
Definition defs.hpp:159