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;
52 dll_handle_->TDVProcessingBlock_processContext(handle_, ctx.getHandle(), &eh_);
53 tdvCheckException(dll_handle_, eh_);
59 dll_handle_->TDVProcessingBlock_destroyBlock(handle_, &eh_);
60 if (eh_ && std::uncaught_exception())
61 std::cerr <<
Error(dll_handle_->TDVException_getErrorCode(eh_), dll_handle_->TDVException_getMessage(eh_)).what();
63 tdvCheckException(dll_handle_, eh_);
71 void* exception =
nullptr;
72 handle_ = dll_handle_->FacerecService_ProcessingBlock_createProcessingBlock(service, ctx.getHandle(), &exception);
73 checkException(exception, *dll_handle_);
78 const DHPtr dll_handle_;
79 mutable ContextEH* eh_;
86 #endif // WITHOUT_PROCESSING_BLOCK
87 #endif // PROCESSINGBLOCK_H
Interface object used to work with estimators from Processing Block API.
Definition: ProcessingBlock.h:29
Interface object for creating other interface objects.
Definition: FacerecService.h:64
Definition: SmartPtr.h:84
The class of exceptions thrown when errors occur.
Definition: Error.h:26