JD2022-TU1/main/extern/gear4/gear_detection/detection/memory.h

51 lines
1.2 KiB
C++

////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) Ubisoft Entertainment. All rights reserved.
//
////////////////////////////////////////////////////////////////////////////////
#pragma once
#ifndef GEAR_SYSTEMDETECTIONMEMORY__INCLUDED
#define GEAR_SYSTEMDETECTIONMEMORY__INCLUDED
#include <gear_detection/detectionconfig.h>
namespace G4 {
namespace SystemDetection
{
/*! \addtogroup detection detection
@{
\addtogroup memory Memory
@{
*/
class G4_DETECTION_DLL_ENTRY Memory
{
public:
/// Memory type
enum Type
{
MEMORYTYPE_UNKNOWN = 0,
MEMORYTYPE_SDR = 1,
MEMORYTYPE_DDR = 2,
MEMORYTYPE_DDR2 = 3,
MEMORYTYPE_DDR3 = 4
};
/// Type of the currently installed memory
Type memoryType;
/// Total memory size
unsigned long long totalSize;
/// Memory frequency, in hertz (hz)
unsigned long long clockFrequencyHz;
};
/*! @} */
/*! @} */
}//namespace SystemDetection
} // namespace G4
#endif