EHS/src/io/BaseFileMonitor.cpp
Karutoh bcd71cf2b5
All checks were successful
Build & Release / Windows-AMD64-Build (push) Successful in 1m8s
Build & Release / Linux-AMD64-Build (push) Successful in 1m30s
Build & Release / Linux-AARCH64-Build (push) Successful in 3m21s
Adjusted workflow.
2024-02-05 22:25:30 -08:00

49 lines
816 B
C++

#include "ehs/io/BaseFileMonitor.h"
namespace ehs
{
BaseFileMonitor::BaseFileMonitor(Str_8 filePath)
: filePath((Str_8&&)filePath)
{
}
BaseFileMonitor::BaseFileMonitor(BaseFileMonitor&& fm) noexcept
: filePath((Str_8&&)fm.filePath)
{
}
BaseFileMonitor::BaseFileMonitor(const BaseFileMonitor& fm)
: filePath(fm.filePath)
{
}
BaseFileMonitor& BaseFileMonitor::operator=(BaseFileMonitor&& fm) noexcept
{
if (this == &fm)
return *this;
filePath = (Str_8&&)fm.filePath;
return *this;
}
BaseFileMonitor& BaseFileMonitor::operator=(const BaseFileMonitor& fm)
{
if (this == &fm)
return *this;
filePath = fm.filePath;
return *this;
}
Str_8 BaseFileMonitor::GetFilePath() const
{
return filePath;
}
bool BaseFileMonitor::IsValid() const
{
return filePath.Size();
}
}