GamR
0.0.0
GammaROOT
Loading...
Searching...
No Matches
REPL.hh
Go to the documentation of this file.
1
#ifndef GAMR_UTILS_REPL_HH
2
#define GAMR_UTILS_REPL_HH
3
4
#include <atomic>
5
#include <functional>
6
#include <mutex>
7
#include <string>
8
#include <thread>
9
10
namespace
GamR
{
11
namespace
Utils
{
12
13
class
REPL
{
14
private
:
15
std::string fInput;
16
std::string fPrompt;
17
std::atomic<bool> fContinue;
18
std::atomic<bool> fNextLine;
19
std::mutex fInputLock;
20
std::thread fThread;
21
22
public
:
23
REPL
(std::string prompt);
24
~REPL
();
25
void
Prompt
();
26
bool
Loop
();
27
bool
Halt
();
28
void
ReadLine
(std::string &input);
29
};
30
31
}
// namespace Utils
32
}
// namespace GamR
33
34
#endif
GamR::Utils::REPL::ReadLine
void ReadLine(std::string &input)
Definition
REPL.cc:67
GamR::Utils::REPL::REPL
REPL(std::string prompt)
Definition
REPL.cc:9
GamR::Utils::REPL::Prompt
void Prompt()
Definition
REPL.cc:51
GamR::Utils::REPL::Halt
bool Halt()
Definition
REPL.cc:61
GamR::Utils::REPL::~REPL
~REPL()
Definition
REPL.cc:46
GamR::Utils::REPL::Loop
bool Loop()
Definition
REPL.cc:56
GamR::Utils
Definition
REPL.cc:7
GamR
Definition
Gain.cc:19
src
lib
utils
REPL.hh
Generated on Tue Feb 10 2026 23:03:42 for GamR by
1.13.2