Reorganized project again.
This commit is contained in:
49
src/io/BaseFileMonitor.cpp
Normal file
49
src/io/BaseFileMonitor.cpp
Normal file
@@ -0,0 +1,49 @@
|
||||
#include "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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user