YobeSDK  0.2.0
yobe_biometric_template.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include "sdk_build_defs.hpp"
9 
10 #include <iostream>
11 #include <memory>
12 
13 namespace Yobe {
15 struct YOBE_SDK_API BiometricTemplate {
16  virtual ~BiometricTemplate() = default;
17 
18  BiometricTemplate() = default;
19  BiometricTemplate(const BiometricTemplate&) = default;
20  BiometricTemplate(BiometricTemplate&&) noexcept = default;
21 
22  BiometricTemplate& operator=(const BiometricTemplate&) = default;
23  BiometricTemplate& operator=(BiometricTemplate&&) 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<BiometricTemplate> 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_biometric_template.hpp:15
virtual void Serialize(std::ostream &out_stream) const =0
Serializes the BiometricTemplate object. This can be used to save the object for later.
static std::shared_ptr< BiometricTemplate > Deserialize(std::istream &in_stream)
Deserializes the BiometricTemplate object. This can be used to read a saved object from a stream.
virtual bool IsValid() const =0
Determines if the BiometricTemplate object is valid.