9 #ifndef __PBIO_API__PBIO__TEMPLATE_H_
10 #define __PBIO_API__PBIO__TEMPLATE_H_
17 #include "ComplexObject.h"
19 #include "ExceptionCheck.h"
21 #include "stl_wraps_impls/WrapOStreamImpl.h"
89 void save(std::ostream &binary_stream)
const;
112 void save(pbio::stl_wraps::WrapOStream &binary_stream)
const;
117 const DHPtr &dll_handle,
124 friend class object_with_ref_counter<
Template>;
141 const DHPtr &dll_handle,
143 ComplexObject(dll_handle, impl)
152 std::ostringstream name_stream;
153 pbio::stl_wraps::WrapOStreamImpl name_stream_wrap(name_stream);
155 void* exception = NULL;
157 _dll_handle->Template_getMethodName(
160 pbio::stl_wraps::WrapOStream::write_func,
163 checkException(exception, *_dll_handle);
165 return name_stream.str();
171 pbio::stl_wraps::WrapOStreamImpl binary_stream_wrap(binary_stream);
173 save(binary_stream_wrap);
179 void* exception = NULL;
181 _dll_handle->Template_save(
184 pbio::stl_wraps::WrapOStream::write_func,
187 checkException(exception, *_dll_handle);
193 #endif // __PBIO_API__PBIO__TEMPLATE_H_
Interface object for saving the face template.
Definition: Template.h:37
Interface object for working with the template index.
Definition: TemplatesIndex.h:37
Definition: Recognizer.h:64
Interface object for creating and matching templates.
Definition: Recognizer.h:37
LightSmartPtr< Template >::tPtr Ptr
Alias for the type of a smart pointer to Template.
Definition: Template.h:46
Error - the class of exceptions thrown when errors occur.
VideoWorker is an interface object for tracking, processing and matching faces on multiple video stre...
Definition: VideoWorker.h:63
void save(std::ostream &binary_stream) const
Save the template to binary_stream. The format is platform-independent. Thread-safe.
Definition: Template.h:169
Definition: SmartPtr.h:84
std::string getMethodName() const
Get a method name. Thread-safe.
Definition: Template.h:150
VideoWorker is an interface object for tracking, processing and matching faces on multiple video stre...
Definition: VideoWorker.h:105
Interface object for working with the template index.
Definition: DynamicTemplateIndex.h:26