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

26 lines
500 B
C++

#include "pch.h"
#include "Group.h"
#include <msclr/marshal_cppstd.h>
#include "internals.h"
bool Group::isNull() const
{
if (inner == nullptr)
return true;
return ((inner->getInner()->Equals(nullptr))) ? false : true;
}
std::string Group::GetReport()
{
if (isNull()) {
return "";
}
return msclr::interop::marshal_as<std::string>(inner->getInner()->GetReport());
}
void Group::Close()
{
if (isNull()) {
return;
}
inner->getInner()->Close();
}