28 #if ! defined (octave_input_h)
29 #define octave_input_h 1
31 #include "octave-config.h"
37 #include <unordered_map>
71 std::string
PS1 (
const std::string& s)
73 std::string val =
m_PS1;
84 std::string
PS2 (
const std::string& s)
86 std::string val =
m_PS2;
238 virtual std::string
get_input (
const std::string& prompt,
bool& eof) = 0;
277 std::string
get_input (
const std::string& prompt,
bool& eof)
279 return m_rep->get_input (prompt, eof);
284 return m_rep->input_source ();
289 return m_rep->input_from_terminal ();
294 return m_rep->input_from_file ();
299 return m_rep->input_from_eval_string ();
base_reader(const base_reader &x)
virtual std::string input_source(void) const
virtual bool input_from_eval_string(void) const
virtual bool input_from_terminal(void) const
std::string octave_gets(const std::string &prompt, bool &eof)
virtual ~base_reader(void)=default
base_reader(interpreter &interp)
virtual bool input_from_file(void) const
virtual std::string get_input(const std::string &prompt, bool &eof)=0
static const std::string s_in_src
interpreter & m_interpreter
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
F77_RET_T const F77_DBLE * x