YobeSDK 0.3.2
 
Loading...
Searching...
No Matches
yobe_id_template.hpp
Go to the documentation of this file.
1
6#pragma once
7
8#include "sdk_build_defs.h"
9
10#include <iostream>
11#include <memory>
12
13namespace Yobe {
15struct YOBE_SDK_API IDTemplate {
16 virtual ~IDTemplate() = default;
17
18 IDTemplate() = default;
19 IDTemplate(const IDTemplate&) = default;
20 IDTemplate(IDTemplate&&) noexcept = default;
21
22 IDTemplate& operator=(const IDTemplate&) = default;
23 IDTemplate& operator=(IDTemplate&&) noexcept = default;
24
29 virtual bool IsValid() const = 0;
30
36 virtual void Serialize(std::ostream& out_stream) const = 0;
37
44 static std::shared_ptr<IDTemplate> Deserialize(std::istream& in_stream);
45};
46} // namespace Yobe
Contains all Yobe-related functions and structures.
Definition yobe_bio_listener.hpp:12
This struct is used to store biometric data of a user.
Definition yobe_id_template.hpp:15
virtual bool IsValid() const =0
Determines if the IDTemplate object is valid.
virtual void Serialize(std::ostream &out_stream) const =0
Serializes the IDTemplate object. This can be used to save the object for later.
static std::shared_ptr< IDTemplate > Deserialize(std::istream &in_stream)
Deserializes the IDTemplate object. This can be used to read a saved object from a stream.