#include <CannedInput.h>
Inheritance diagram for CannedInput:
Public Methods | |
virtual bool | execute_one_event (Drawing *)=0 |
Execute the next canned input from the stream. | |
Static Public Methods | |
CannedInput * | make_canned_input (const std::string &filename, std::istream &is) |
Create a canned input stream. | |
Protected Methods | |
CannedInput (const std::string &fn) | |
Create a canned input stream with the given string used for error messages. | |
virtual | ~CannedInput () |
Protected Attributes | |
std::string | filename |
Created in ApiMain() when the program starts, and used by the Drawing class.
|
Create a canned input stream with the given string used for error messages.
00038 : filename(fn) {} |
|
00040 {} |
|
Execute the next canned input from the stream. A simulated input event is read from the stream and executed on the given drawing.
Implemented in XMLCannedInput. |
|
Create a canned input stream.
00037 { 00038 try { 00039 return new XMLCannedInput(filename,is); 00040 } catch (exception& e) { 00041 cerr << "Canned input error: " << e.what() << endl; 00042 return 0; 00043 } 00044 } |
|
|