source: imaps-frontend/node_modules/@parcel/watcher/src/shared/BruteForceBackend.hh@ 0c6b92a

main
Last change on this file since 0c6b92a was 0c6b92a, checked in by stefan toskovski <stefantoska84@…>, 5 weeks ago

Pred finalna verzija

  • Property mode set to 100644
File size: 733 bytes
Line 
1#ifndef BRUTE_FORCE_H
2#define BRUTE_FORCE_H
3
4#include "../Backend.hh"
5#include "../DirTree.hh"
6#include "../Watcher.hh"
7
8class BruteForceBackend : public Backend {
9public:
10 void writeSnapshot(WatcherRef watcher, std::string *snapshotPath) override;
11 void getEventsSince(WatcherRef watcher, std::string *snapshotPath) override;
12 void subscribe(WatcherRef watcher) override {
13 throw "Brute force backend doesn't support subscriptions.";
14 }
15
16 void unsubscribe(WatcherRef watcher) override {
17 throw "Brute force backend doesn't support subscriptions.";
18 }
19
20 std::shared_ptr<DirTree> getTree(WatcherRef watcher, bool shouldRead = true);
21private:
22 void readTree(WatcherRef watcher, std::shared_ptr<DirTree> tree);
23};
24
25#endif
Note: See TracBrowser for help on using the repository browser.