Hardware.h 448 B

1234567891011121314151617181920212223242526
  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. public:
  14. CpuInfo(void);
  15. inline const std::string& getVendor(void) const { return vendor; };
  16. inline const std::string& getBrand(void) const { return brand; };
  17. inline bool hasAvx(void) const { return avx; };
  18. };
  19. #endif // MANDEL_HARDWARE_H