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,
123 friend class object_with_ref_counter<
Template>;
140 const DHPtr &dll_handle,
142 ComplexObject(dll_handle, impl)
151 std::ostringstream name_stream;
152 pbio::stl_wraps::WrapOStreamImpl name_stream_wrap(name_stream);
154 void* exception = NULL;
156 _dll_handle->Template_getMethodName(
159 pbio::stl_wraps::WrapOStream::write_func,
162 checkException(exception, *_dll_handle);
164 return name_stream.str();
170 pbio::stl_wraps::WrapOStreamImpl binary_stream_wrap(binary_stream);
172 save(binary_stream_wrap);
178 void* exception = NULL;
180 _dll_handle->Template_save(
183 pbio::stl_wraps::WrapOStream::write_func,
186 checkException(exception, *_dll_handle);
192 #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:35
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:168
Definition: SmartPtr.h:84
std::string getMethodName() const
Get a method name. Thread-safe.
Definition: Template.h:149
VideoWorker is an interface object for tracking, processing and matching faces on multiple video stre...
Definition: VideoWorker.h:105