9 #ifndef __PBIO_API__PBIO__CONTEXT_TEMPLATE_H_
10 #define __PBIO_API__PBIO__CONTEXT_TEMPLATE_H_
17 #include "ComplexObject.h"
19 #include "ExceptionCheck.h"
21 #include "stl_wraps_impls/WrapOStreamImpl.h"
47 typedef LightSmartPtr<ContextTemplate>::tPtr
Ptr;
90 void save(std::ostream &binary_stream)
const;
113 void save(pbio::stl_wraps::WrapOStream &binary_stream)
const;
115 int32_t size()
const;
122 const DHPtr _dll_handle;
124 int32_t refcounter4light_shared_ptr;
144 inline ContextTemplate::ContextTemplate(
const DHPtr &dll_handle,
void* impl) :
145 _dll_handle(dll_handle),
153 std::ostringstream name_stream;
154 pbio::stl_wraps::WrapOStreamImpl name_stream_wrap(name_stream);
156 void* exception = NULL;
158 _dll_handle->ContextTemplate_getMethodName(
161 pbio::stl_wraps::WrapOStream::write_func,
164 checkException(exception, *_dll_handle);
166 return name_stream.str();
171 pbio::stl_wraps::WrapOStreamImpl binary_stream_wrap(binary_stream);
173 save(binary_stream_wrap);
178 void* exception = NULL;
180 _dll_handle->ContextTemplate_save(
183 pbio::stl_wraps::WrapOStream::write_func,
186 checkException(exception, *_dll_handle);
189 inline int32_t ContextTemplate::size()
const
191 void* exception = NULL;
193 int32_t result = _dll_handle->ContextTemplate_size(
197 checkException(exception, *_dll_handle);
202 inline ContextTemplate::~ContextTemplate()
206 _dll_handle->ContextTemplate_destructor(_impl);
213 #endif // __PBIO_API__PBIO__TEMPLATE_H_
Интерфейсный объект для создания других интерфейсных объектов.
Definition: FacerecService.h:64
Definition: Recognizer.h:64
Error - класс исключений, выбрасываемых при возникновении ошибок.
Definition: SmartPtr.h:84
std::string getMethodName() const
Получить имя метода. Потокобезопасный.
Definition: ContextTemplate.h:151
VideoWorker - интерфейсный объект для трекинга, обработки и распознавания лиц на нескольких видеопото...
Definition: VideoWorker.h:105
Интерфейсный объект для сохранения шаблона лица.
Definition: ContextTemplate.h:37
Context - интерфейсный объект для хранения данных и взаимодействия с методами из Processing Block API...
Definition: Context.h:52
LightSmartPtr< ContextTemplate >::tPtr Ptr
Псевдоним для типа умного указателя на ContextTemplate.
Definition: ContextTemplate.h:47
void save(std::ostream &binary_stream) const
Сохранить шаблон. Формат платформонезависимый. Потокобезопасный.
Definition: ContextTemplate.h:169
Интерфейсный объект для работы с индексом шаблонов.
Definition: DynamicTemplateIndex.h:26