Public Member Functions | |
PresageDemoCallback (std::stringstream &buffer) | |
std::string | get_past_stream () const |
std::string | get_future_stream () const |
Private Attributes | |
std::stringstream & | m_buffer |
const std::string | empty |
Callback object for presage demo application.
We need to provide a callback class to allow presage to query the application's text buffer. In a real world application, this would fetch the text from whatever object stores the text composition (i.e. a GUI widget in a graphical interface)
For the purpose of this demonstration program, the callback class will retrieve contextual data from a standard stringstream object.
Definition at line 86 of file presageDemo.cpp.
PresageDemoCallback::PresageDemoCallback | ( | std::stringstream & | buffer | ) | [inline] |
Definition at line 88 of file presageDemo.cpp.
std::string PresageDemoCallback::get_future_stream | ( | ) | const [inline, virtual] |
std::string PresageDemoCallback::get_past_stream | ( | ) | const [inline, virtual] |
const std::string PresageDemoCallback::empty [private] |
Definition at line 95 of file presageDemo.cpp.
Referenced by get_future_stream().
std::stringstream& PresageDemoCallback::m_buffer [private] |
Definition at line 94 of file presageDemo.cpp.
Referenced by get_past_stream().