From ef7df8048d1067d3148287f27af9047743f1e2ae Mon Sep 17 00:00:00 2001 From: gcontini <1121667+gcontini@users.noreply.github.com> Date: 周日, 15 3月 2020 16:26:21 +0800 Subject: [PATCH] Merge branch 'feature/pc_identifiers' into develop issues #2 #3 #14 #49 --- src/library/hw_identifier/hw_identifier_facade.hpp | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/src/library/hw_identifier/hw_identifier_facade.hpp b/src/library/hw_identifier/hw_identifier_facade.hpp new file mode 100644 index 0000000..c587c53 --- /dev/null +++ b/src/library/hw_identifier/hw_identifier_facade.hpp @@ -0,0 +1,38 @@ +/* + * hw_identifier_facade.hpp + * + * Created on: Dec 26, 2019 + * Author: devel + */ + +#ifndef SRC_LIBRARY_PC_IDENTIFIER_HW_IDENTIFIER_FACADE_HPP_ +#define SRC_LIBRARY_PC_IDENTIFIER_HW_IDENTIFIER_FACADE_HPP_ +#include "hw_identifier_facade.hpp" + +#include <string> +#include <unordered_map> +#include <licensecc/datatypes.h> +#include "identification_strategy.hpp" + +namespace license { +namespace hw_identifier { + +class HwIdentifierFacade { +private: + HwIdentifierFacade(){}; + virtual ~HwIdentifierFacade(){}; +public: + static LCC_EVENT_TYPE validate_pc_signature(const std::string& str_code); + /** + * + * @throws logic_error if pc_identifier can't be generated. + * @param strategy + * @return + */ + static std::string generate_user_pc_signature(LCC_API_IDENTIFICATION_STRATEGY strategy); +}; + +} // namespace hw_identifier +} /* namespace license */ + +#endif /* SRC_LIBRARY_PC_IDENTIFIER_HW_IDENTIFIER_FACADE_HPP_ */ -- Gitblit v1.9.1