EHS/src/io/BaseFileMonitor.cpp

49 lines
816 B
C++
Raw Normal View History

2024-02-05 22:25:30 -08:00
#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();
}
}