46 LineReader(iStream, oStream), iStream_(iStream), oStream_(oStream),
47 promptPrinting_(true) {
98 std::string msg =
"LineReader not initialized.";
102 std::string origPrompt =
prompt_;
115 "End of file from input stream or input stream in bad state.";
133 std::string question, std::string allowedChars,
bool caseSensitive,
134 char defaultAnswer) {
136 std::string method =
"BaseLineReader::charQuestion()";
137 std::string msg =
"LineReader not initialized.";
141 std::string origPrompt =
prompt_;
147 if (defaultAnswer ==
'\0') {
152 allowedChars, answer, caseSensitive) &&
162 return defaultAnswer;