Iris SDK  1.0
Iris Recognition Software Development Kit
license.h
Go to the documentation of this file.
1 #pragma once
2 
6 #include <iris_base/export.h>
7 
8 #include <string>
9 #include <memory>
10 #include <vector>
11 
12 namespace iris_sdk
13 {
18 class IRIS_SDK_EXPORT license
19 {
20 public:
21  virtual ~license() = default;
22 
25  virtual std::string get_license_info() const = 0;
26 };
27 
31 std::unique_ptr<license> IRIS_SDK_EXPORT load_license_file();
32 
37 std::unique_ptr<license> IRIS_SDK_EXPORT load_license_file(const std::string &path);
38 
43 std::unique_ptr<license> IRIS_SDK_EXPORT load_license_from_data(const std::vector<uint8_t> &data);
44 
45 }
std::unique_ptr< license > IRIS_SDK_EXPORT load_license_file()
Load license from file in known paths. (see known_paths)
The license object. A license object provide information about your limits in iris_sdk. See Licensing Use iris_sdk::load_license_from_file() and iris_sdk::load_license_from_data() functions for instantiate a license object.
Definition: license.h:18
std::unique_ptr< license > IRIS_SDK_EXPORT load_license_from_data(const std::vector< uint8_t > &data)
Load license from data container.
Definition: codes.h:6