From 8d405b265285c368df2e9cf1c14acee7532e0ee7 Mon Sep 17 00:00:00 2001
From: nancy.liao <huihui.liao@greentest.com.cn>
Date: 摹曛, 29 5月 2025 18:14:38 +0800
Subject: [PATCH] Merge branch 'develop' of http://139.9.88.116:3000/r/module/open-license-manager into develop

---
 src/library/os/cpu_info.hpp |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/library/os/cpu_info.hpp b/src/library/os/cpu_info.hpp
index 716ca40..edbe3c6 100644
--- a/src/library/os/cpu_info.hpp
+++ b/src/library/os/cpu_info.hpp
@@ -7,13 +7,18 @@
 
 #ifndef SRC_LIBRARY_OS_CPU_INFO_H_
 #define SRC_LIBRARY_OS_CPU_INFO_H_
+#include <cstdint>
 #include <string>
 namespace license {
+namespace os {
 
 /**
  * Cpu informations
  */
 class CpuInfo {
+private:
+	const std::string m_vendor;
+	const std::string m_brand;
 public:
 	CpuInfo();
 	virtual ~CpuInfo();
@@ -21,11 +26,12 @@
 	 * Detect Virtual machine using hypervisor bit or the cpu vendor name.
 	 * @return true if the cpu is detected to be a virtual cpu
 	 */
-	bool cpu_virtual() const;
-	uint32_t model();
-	std::string vendor() const;
+	uint32_t model() const;
+	bool is_hypervisor_set() const;
+	const std::string& vendor() const { return m_vendor; }
+	const std::string& brand() const { return m_brand; }
 };
 
-} /* namespace license */
-
+}  // namespace os
+}  // namespace license
 #endif /* SRC_LIBRARY_OS_CPU_INFO_H_ */

--
Gitblit v1.9.1