|
PH Logo
Logo intepreter modeled after UCB Logo.
|
00001 /* 00002 * Console.cpp 00003 * 00004 * Author: Paul Hamilton 00005 * Date: 6 Jun 2011 00006 * 00007 */ 00008 00009 #include "Console.h" 00010 00011 using namespace std; 00012 00013 namespace phlogo { 00014 00015 void StringConsole::outputLine(const std::string &s) { 00016 if (_s != "") 00017 _s += "\n"; 00018 _s += s; 00019 } 00020 00021 void StringConsole::outputError(const std::string &s) { 00022 outputLine(s); 00023 _error = true; 00024 } 00025 00026 }
1.7.4