5#include "exception.hpp"
13 inline HandleGuard<HandleOnly>::HandleGuard(
void* handle) noexcept
14 : HandleGuard<HandleOnly>(handle, [](
void* handle) { CVB_CALL_CAPI(ReleaseObject(handle)); })
34 return handle_.Handle();
56 explicit HandleOnly(HandleGuard<HandleOnly>&& guard) noexcept
57 : handle_(std::move(guard))
61 HandleGuard<HandleOnly> handle_;
HandleOnly class is as it says a handle only.
Definition: handle_only.hpp:21
static std::shared_ptr< HandleOnly > FromHandle(HandleGuard< HandleOnly > &&guard)
Creates a handle only from a classic API handle.
Definition: handle_only.hpp:45
void * Handle() const noexcept
Classic API node handle.
Definition: handle_only.hpp:32
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24