9 #ifndef PROCESSINGBLOCK_H
10 #define PROCESSINGBLOCK_H
12 #ifndef WITHOUT_PROCESSING_BLOCK
15 #include "DllHandle.h"
16 #include "ExceptionCheck.h"
37 handle_ = other.handle_;
38 other.handle_ =
nullptr;
44 handle_ = other.handle_;
45 other.handle_ =
nullptr;
62 dll_handle_->TDVProcessingBlock_processContext(handle_, ctx.getHandle(), &eh_);
63 tdvCheckException(dll_handle_, eh_);
69 dll_handle_->TDVProcessingBlock_destroyBlock(handle_, &eh_);
70 if (eh_ && std::uncaught_exception())
71 std::cerr <<
Error(dll_handle_->TDVException_getErrorCode(eh_), dll_handle_->TDVException_getMessage(eh_)).what();
73 tdvCheckException(dll_handle_, eh_);
81 void* exception =
nullptr;
82 handle_ = dll_handle_->FacerecService_ProcessingBlock_createProcessingBlock(service, ctx.getHandle(), &exception);
83 checkException(exception, *dll_handle_);
86 typedef LightSmartPtr<import::DllHandle>::tPtr DHPtr;
88 const DHPtr dll_handle_;
89 mutable ContextEH* eh_;
96 #endif // WITHOUT_PROCESSING_BLOCK
97 #endif // PROCESSINGBLOCK_H
Interface object used to work with estimators from Processing Block API.
Definition: ProcessingBlock.h:29
virtual void operator()(pbio::Context &ctx)
Calling the processing block function.
Definition: ProcessingBlock.h:60
Interface object used to work with estimators from Processing Block API.
Definition: ProcessingBlock.h:16
The class of exceptions thrown when errors occur.
Definition: Error.h:26
Context is an interface object for storing data and interacting with methods from the Processing Bloc...
Definition: Context.h:51
Definition: FacerecService.mm:79