Face Engine SDK
5.25.0
A face detection, recognition and tracking engine.
|
Serializable object interface. More...
#include <IObject.h>
Public Types | |
enum | Error { Ok, Size, Signature, ArchiveRead, InputArchive, ArchiveWrite } |
Serialization nerror codes. More... | |
enum | Flags { Default = 0, NoSignature = 1 } |
Serialization flags. More... | |
Public Member Functions | |
virtual void | getSize (Sizer &sizer, uint32_t flags=Default) const noexcept=0 |
Estimate size of this object binary data. | |
virtual Result< Error > | load (IArchive *archive, uint32_t flags=Default)=0 |
Load object from archive. | |
virtual Result< Error > | save (IArchive *archive, uint32_t flags=Default) const =0 |
Save object to archive. |
Serializable object interface.
Provides common functions for all serializable objects.
Serialization nerror codes.
Ok |
Ok. |
Size |
Not enough space. |
Signature |
Invalid signature. |
ArchiveRead |
Error during archive reading,. |
InputArchive |
Input archive is nullptr. |
ArchiveWrite |
Error during archive writing,. |
Reimplemented in fsdk::IDescriptorBatch.
Serialization flags.
These flags control advanced options and should not be set to anything else from Default in normal conditions.
virtual void fsdk::ISerializableObject::getSize | ( | Sizer & | sizer, |
uint32_t | flags = Default |
||
) | const [pure virtual] |
Estimate size of this object binary data.
[inout] | sizer sizer object to append result to. | |
[in] | flags | [optional] serialization flags |
virtual Result<Error> fsdk::ISerializableObject::load | ( | IArchive * | archive, |
uint32_t | flags = Default |
||
) | [pure virtual] |
Load object from archive.
[in] | archive | archive to read from. |
[in] | flags | [optional] serialization flags |
virtual Result<Error> fsdk::ISerializableObject::save | ( | IArchive * | archive, |
uint32_t | flags = Default |
||
) | const [pure virtual] |
Save object to archive.
[in] | archive | archive to write to. |
[in] | flags | [optional] serialization flags |