presage  0.8.7
Public Member Functions | Private Member Functions | Private Attributes
LegacyPresageCallback Class Reference

#include <presageCallback.h>

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

List of all members.

Public Member Functions

 LegacyPresageCallback ()
 ~LegacyPresageCallback ()
std::string get_past_stream () const
std::string get_future_stream () const
void update (std::string str)

Private Member Functions

void update (int character)

Private Attributes

std::string m_stream
const std::string m_empty

Detailed Description

DEPRECATED: simple context callback implementation to ease transition into presage callback refactor.

This concrete callback object provides an update() method signature that matches legacy Presage::update(std::string) method and is designed to provide a simple upgrade path from previous presage releases.

Simply create a LegacyPresageCallback object, pass it as argument to the new Presage object, and then replace all calls to Presage::update(std::string) with a LegacyPresageCallback::update(std::string) calls.

WARNING: This class is deprecated and might be removed in future releases.

Definition at line 94 of file presageCallback.h.


Constructor & Destructor Documentation

Definition at line 96 of file presageCallback.h.

Definition at line 97 of file presageCallback.h.


Member Function Documentation

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

Implements PresageCallback.

Definition at line 100 of file presageCallback.h.

References m_empty.

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

Implements PresageCallback.

Definition at line 99 of file presageCallback.h.

References m_stream.

void LegacyPresageCallback::update ( std::string  str) [inline]

Definition at line 102 of file presageCallback.h.

References update().

Referenced by main(), and update().

Here is the call graph for this function:

Here is the caller graph for this function:

void LegacyPresageCallback::update ( int  character) [inline, private]

Definition at line 105 of file presageCallback.h.

References m_stream.


Member Data Documentation

const std::string LegacyPresageCallback::m_empty [private]

Definition at line 115 of file presageCallback.h.

Referenced by get_future_stream().

std::string LegacyPresageCallback::m_stream [private]

Definition at line 114 of file presageCallback.h.

Referenced by get_past_stream(), and update().


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