Akumuli
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
internal_cursor.h
1 
20 #pragma once
21 
22 #define BOOST_COROUTINES_BIDIRECT
23 #include <boost/coroutine/all.hpp>
24 
25 #include "akumuli.h"
26 
27 namespace Akumuli {
28 
29 
30 struct InternalCursor;
31 
32 
33 // NOTE: obsolete
34 typedef boost::coroutines::coroutine<void(InternalCursor*)> Coroutine;
35 // NOTE: obsolete
36 typedef typename Coroutine::caller_type Caller;
37 
43  virtual bool put(Caller&, aku_Sample const& offset) = 0;
44  virtual void complete(Caller&) = 0;
46  virtual void set_error(Caller&, aku_Status error_code) = 0;
47 };
48 }
virtual void set_error(Caller &, aku_Status error_code)=0
Set error and stop execution.
virtual bool put(Caller &, aku_Sample const &offset)=0
Send offset to caller.
Definition: internal_cursor.h:41