presage
0.8.7
|
#include <presageCallback.h>
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 |
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.
LegacyPresageCallback::LegacyPresageCallback | ( | ) | [inline] |
Definition at line 96 of file presageCallback.h.
LegacyPresageCallback::~LegacyPresageCallback | ( | ) | [inline] |
Definition at line 97 of file presageCallback.h.
std::string LegacyPresageCallback::get_future_stream | ( | ) | const [inline, virtual] |
std::string LegacyPresageCallback::get_past_stream | ( | ) | const [inline, virtual] |
void LegacyPresageCallback::update | ( | std::string | str | ) | [inline] |
Definition at line 102 of file presageCallback.h.
References update().
Referenced by main(), and update().
void LegacyPresageCallback::update | ( | int | character | ) | [inline, private] |
Definition at line 105 of file presageCallback.h.
References m_stream.
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().