|
C++ Server-Side SDK
LaunchDarkly SDK
|
Wrapper that adapts C hook callbacks to C++ Hook interface. More...
#include <hook_wrapper.hpp>


Public Member Functions | |
| CHookWrapper (struct LDServerSDKHook const &c_hook) | |
| Construct a hook wrapper from C hook struct. More... | |
| hooks::HookMetadata const & | Metadata () const override |
| Get hook metadata. | |
| hooks::EvaluationSeriesData | BeforeEvaluation (hooks::EvaluationSeriesContext const &series_context, hooks::EvaluationSeriesData data) override |
| Forward beforeEvaluation to C callback if set. | |
| hooks::EvaluationSeriesData | AfterEvaluation (hooks::EvaluationSeriesContext const &series_context, hooks::EvaluationSeriesData data, EvaluationDetail< Value > const &detail) override |
| Forward afterEvaluation to C callback if set. | |
| void | AfterTrack (hooks::TrackSeriesContext const &series_context) override |
| Forward afterTrack to C callback if set. | |
Wrapper that adapts C hook callbacks to C++ Hook interface.
This class implements the C++ Hook interface and forwards all calls to the C callback functions provided by the application.
|
explicit |
Construct a hook wrapper from C hook struct.
| c_hook | C hook structure containing callbacks and metadata. The Name string is copied. UserData pointer and function pointers are copied but the pointed-to data lifetime is managed by the caller. |