EHS/include/IO/BaseFileMonitor.h
2023-12-17 15:00:08 -08:00

46 lines
791 B
C++

#pragma once
#include "EHS.h"
#include "Str.h"
#define LWE_FE_NONE 0x00
#define LWE_FE_MODIFIED 0x01
#define LWE_FE_DELETED 0x02
#define LWE_FE_MOVED 0x04
#define LWE_FE_OPENED 0x08
namespace lwe
{
class BaseFileMonitor
{
protected:
Str_8 filePath;
public:
virtual ~BaseFileMonitor() = default;
BaseFileMonitor() = default;
BaseFileMonitor(Str_8 filePath);
BaseFileMonitor(BaseFileMonitor&& fm) noexcept;
BaseFileMonitor(const BaseFileMonitor& fm);
BaseFileMonitor& operator=(BaseFileMonitor&& fm) noexcept;
BaseFileMonitor& operator=(const BaseFileMonitor& fm);
virtual void Initialize() = 0;
virtual void Release() = 0;
virtual UInt_8 Poll() = 0;
Str_8 GetFilePath() const;
bool IsValid() const;
virtual bool IsInitialized() const = 0;
};
}