EHS
BaseFileMonitor.h
Go to the documentation of this file.
1#pragma once
2
3#include "ehs/EHS.h"
4#include "ehs/Str.h"
5
6#define EHS_FE_NONE 0x00
7#define EHS_FE_MODIFIED 0x01
8#define EHS_FE_DELETED 0x02
9#define EHS_FE_MOVED 0x04
10#define EHS_FE_OPENED 0x08
11
12namespace ehs
13{
14 class EHS_LIB_IO BaseFileMonitor
15 {
16 protected:
18
19 public:
20 virtual ~BaseFileMonitor() = default;
21
22 BaseFileMonitor() = default;
23
24 BaseFileMonitor(Str_8 filePath);
25
26 BaseFileMonitor(BaseFileMonitor&& fm) noexcept;
27
29
30 BaseFileMonitor& operator=(BaseFileMonitor&& fm) noexcept;
31
32 BaseFileMonitor& operator=(const BaseFileMonitor& fm);
33
34 virtual void Initialize() = 0;
35
36 virtual void Release() = 0;
37
38 virtual UInt_8 Poll() = 0;
39
40 Str_8 GetFilePath() const;
41
42 bool IsValid() const;
43
44 virtual bool IsInitialized() const = 0;
45 };
46}
Definition: BaseFileMonitor.h:15
virtual void Release()=0
virtual void Initialize()=0
BaseFileMonitor()=default
Str_8 filePath
Definition: BaseFileMonitor.h:17
virtual ~BaseFileMonitor()=default
virtual bool IsInitialized() const =0
virtual UInt_8 Poll()=0
Definition: Anchor.h:6
unsigned char UInt_8
Definition: Types.h:43