Hardware.h 517 B

12345678910111213141516171819202122232425262728
  1. #ifndef MANDEL_HARDWARE_H
  2. #define MANDEL_HARDWARE_H
  3. #include <string>
  4. namespace mnd
  5. {
  6. class CpuInfo;
  7. }
  8. class mnd::CpuInfo
  9. {
  10. std::string vendor;
  11. std::string brand;
  12. bool avx;
  13. bool sse2;
  14. public:
  15. CpuInfo(void);
  16. inline const std::string& getVendor(void) const { return vendor; };
  17. inline const std::string& getBrand(void) const { return brand; };
  18. inline bool hasAvx(void) const { return avx; };
  19. inline bool hasSse2(void) const { return sse2; };
  20. };
  21. #endif // MANDEL_HARDWARE_H