From 430f771c7d5fccec471f9879659f13ef4a3c8ebd Mon Sep 17 00:00:00 2001 From: Gabriele Contini <contini.mailing@gmail.com> Date: 周日, 15 3月 2020 16:07:14 +0800 Subject: [PATCH] cpu brand --- src/library/os/cpu_info.hpp | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/library/os/cpu_info.hpp b/src/library/os/cpu_info.hpp index e0ec59f..a35de10 100644 --- a/src/library/os/cpu_info.hpp +++ b/src/library/os/cpu_info.hpp @@ -18,7 +18,8 @@ class CpuInfo { private: bool is_hypervisor_set() const; - + const std::string m_vendor; + const std::string m_brand; public: CpuInfo(); virtual ~CpuInfo(); @@ -28,9 +29,9 @@ */ bool cpu_virtual() const; uint32_t model() const; - std::string vendor() const; - // std::string brand() const; - VIRTUALIZATION_DETAIL getVirtualizationDetail() const; + const std::string& vendor() const { return m_vendor; } + const std::string& brand() const { return m_brand; } + VIRTUALIZATION_DETAIL virtualization_details() const; }; } // namespace os -- Gitblit v1.9.1