Files
archived-ext-hwinfo/src/disk.cpp
Amin Yahyaabadi ef8fce2d91 feat: make hwinfo features modular (#98)
* feat: make hwinfo features modular

* fix: use the latest available C++ standard

* fix!: deprecate NO_OCL in favour of HWINFO_GPU_OPENCL

* doc: add docs for the modular targets/options

* fix: add preprocessor feature guards

* ci: test build of all features in ci

* fix: detect C++ standard after enabling C++ language
2024-07-24 08:41:46 +02:00

28 lines
1.1 KiB
C++

// Copyright Leon Freist
// Author Leon Freist <freist@informatik.uni-freiburg.de>
#ifdef HWINFO_DISK
#include <hwinfo/disk.h>
namespace hwinfo {
// _____________________________________________________________________________________________________________________
const std::string& Disk::vendor() const { return _vendor; }
// _____________________________________________________________________________________________________________________
const std::string& Disk::model() const { return _model; }
// _____________________________________________________________________________________________________________________
const std::string& Disk::serialNumber() const { return _serialNumber; }
// _____________________________________________________________________________________________________________________
int64_t Disk::size_Bytes() const { return _size_Bytes; }
// _____________________________________________________________________________________________________________________
int Disk::id() const { return _id; }
} // namespace hwinfo
#endif // HWINFO_DISK