19 #ifndef UNITY_SCOPES_LISTENERBASE_H
20 #define UNITY_SCOPES_LISTENERBASE_H
22 #include <unity/util/DefinesPtrs.h>
23 #include <unity/util/NonCopyable.h>
58 enum Reason { Finished, Cancelled, Error };
70 virtual void finished(
Reason r, std::string
const& error_message) = 0;
Reason
Indicates the cause of a call to finished().
Definition: ListenerBase.h:58
char const * to_string(ListenerBase::Reason reason)
Convenience function to convert a ListenerBase::Reason enumerator to a string.
virtual void finished(Reason r, std::string const &error_message)=0
Called once by the scopes run time after the final result for a query() was sent. ...
Abstract base class to be notified of query completion.
Definition: ListenerBase.h:42