PresageDemoCallback Class Reference

Inheritance diagram for PresageDemoCallback:
Inheritance graph
[legend]
Collaboration diagram for PresageDemoCallback:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

PresageDemoCallback::PresageDemoCallback ( std::stringstream &  buffer  )  [inline]

Definition at line 88 of file presageDemo.cpp.


Member Function Documentation

std::string PresageDemoCallback::get_future_stream (  )  const [inline, virtual]

Implements PresageCallback.

Definition at line 91 of file presageDemo.cpp.

References empty.

std::string PresageDemoCallback::get_past_stream (  )  const [inline, virtual]

Implements PresageCallback.

Definition at line 90 of file presageDemo.cpp.

References m_buffer.


Member Data Documentation

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().


The documentation for this class was generated from the following file:

Generated on 9 Feb 2015 for presage by  doxygen 1.6.1