Files
hardwaremoniter/hardware_monitor_wrapper/native/include/Control.h
2025-06-08 17:40:21 +08:00

31 lines
632 B
C++

#pragma once
struct innerCsControl;
class Sensor;
#include "Identifier.h"
#include "dll_macro.h"
#include <memory>
enum CsControlMode
{
Undefined,
Software,
Default,
ObjectIsNull
};
class DLL_API CsControl
{
public:
CsControl(std::shared_ptr<innerCsControl> inner);
~CsControl();
bool isNull() const;
CsControlMode getCsControlMode();
Identifier getIdentifier();
float getMaxSoftwareValue();
float getMinSoftwareValue();
Sensor getSensor();
float getSoftwareValue();
void SetDefault();
void SetSoftware(float value);
private:
std::shared_ptr<innerCsControl> inner;
};