30 }
catch (...) {
throw;
35std::string commandReader::readLine()
39 while (line.empty()) {
43 if (!std::getline(m_inputfile, line)) {
52 || (line[0] ==
';')) line =
"";
61 std::string line = readLine();
64 if (line ==
"__END__") {
66 }
else if (!line.empty()) {
67 std::stringstream ss(line);
69 std::getline(ss, cmd.
m_args);
85 m_inputfile.open(m_filename.c_str(), std::ios_base::in);
91 if (m_filename ==
"")
return false;
92 if (!m_inputfile)
return false;
93 if (m_inputfile.eof())
detach();
94 return m_inputfile.is_open();
engineInterface * AppEI()
This is the main include file, needs to be included before any other include.
commandReader m_reader
searching output
bool isBatchMode()
no interactive input, mainly during start and '@' execute
bool attach(std::string const &ifile)
virtual void sendDebug(int const l, std::string const &info)
void execute(std::string const &command, std::string const ¶ms)
virtual void sendPrompt()