Flutter Engine
flutter::EventSink< T > Class Template Referenceabstract

#include <event_sink.h>

Public Member Functions

 EventSink ()=default
 
virtual ~EventSink ()=default
 
 EventSink (EventSink const &)=delete
 
EventSinkoperator= (EventSink const &)=delete
 
void Success (const T &event)
 
void Success ()
 
void Error (const std::string &error_code, const std::string &error_message, const T &error_details)
 
void Error (const std::string &error_code, const std::string &error_message="")
 
void EndOfStream ()
 

Protected Member Functions

virtual void SuccessInternal (const T *event=nullptr)=0
 
virtual void ErrorInternal (const std::string &error_code, const std::string &error_message, const T *error_details)=0
 
virtual void EndOfStreamInternal ()=0
 

Detailed Description

template<typename T = EncodableValue>
class flutter::EventSink< T >

Definition at line 15 of file event_sink.h.

Constructor & Destructor Documentation

◆ EventSink() [1/2]

template<typename T = EncodableValue>
flutter::EventSink< T >::EventSink ( )
default

◆ ~EventSink()

template<typename T = EncodableValue>
virtual flutter::EventSink< T >::~EventSink ( )
virtualdefault

◆ EventSink() [2/2]

template<typename T = EncodableValue>
flutter::EventSink< T >::EventSink ( EventSink< T > const &  )
delete

Member Function Documentation

◆ EndOfStream()

template<typename T = EncodableValue>
void flutter::EventSink< T >::EndOfStream ( )
inline

◆ EndOfStreamInternal()

template<typename T = EncodableValue>
virtual void flutter::EventSink< T >::EndOfStreamInternal ( )
protectedpure virtual

◆ Error() [1/2]

template<typename T = EncodableValue>
void flutter::EventSink< T >::Error ( const std::string &  error_code,
const std::string &  error_message,
const T &  error_details 
)
inline

Definition at line 31 of file event_sink.h.

References flutter::EventSink< T >::ErrorInternal().

33  {
34  ErrorInternal(error_code, error_message, &error_details);
35  }
virtual void ErrorInternal(const std::string &error_code, const std::string &error_message, const T *error_details)=0

◆ Error() [2/2]

template<typename T = EncodableValue>
void flutter::EventSink< T >::Error ( const std::string &  error_code,
const std::string &  error_message = "" 
)
inline

Definition at line 38 of file event_sink.h.

References flutter::EventSink< T >::ErrorInternal().

39  {
40  ErrorInternal(error_code, error_message, nullptr);
41  }
virtual void ErrorInternal(const std::string &error_code, const std::string &error_message, const T *error_details)=0

◆ ErrorInternal()

template<typename T = EncodableValue>
virtual void flutter::EventSink< T >::ErrorInternal ( const std::string &  error_code,
const std::string &  error_message,
const T *  error_details 
)
protectedpure virtual

◆ operator=()

template<typename T = EncodableValue>
EventSink& flutter::EventSink< T >::operator= ( EventSink< T > const &  )
delete

◆ Success() [1/2]

template<typename T = EncodableValue>
void flutter::EventSink< T >::Success ( const T &  event)
inline

Definition at line 25 of file event_sink.h.

References flutter::EventSink< T >::SuccessInternal().

virtual void SuccessInternal(const T *event=nullptr)=0
GdkEventButton * event
Definition: fl_view.cc:62

◆ Success() [2/2]

template<typename T = EncodableValue>
void flutter::EventSink< T >::Success ( )
inline

Definition at line 28 of file event_sink.h.

References flutter::EventSink< T >::SuccessInternal().

28 { SuccessInternal(nullptr); }
virtual void SuccessInternal(const T *event=nullptr)=0

◆ SuccessInternal()

template<typename T = EncodableValue>
virtual void flutter::EventSink< T >::SuccessInternal ( const T *  event = nullptr)
protectedpure virtual

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