Brenta Engine 1.2
Loading...
Searching...
No Matches
brenta::FilesystemWatcher Class Reference

Public Types

enum  Event { Modify }
 

Public Member Functions

bool init ()
 
void destroy ()
 
bool add (const std::filesystem::path &path, tenno::vector< Event > events)
 
bool add (const tenno::vector< std::filesystem::path > &paths, tenno::vector< Event > events)
 
bool rm (const std::filesystem::path &path)
 
bool rm (const tenno::vector< std::filesystem::path > &path)
 
std::optional< std::filesystem::path > watch ()
 

Detailed Description

Definition at line 29 of file fswatcher.hpp.

Member Enumeration Documentation

◆ Event

enum brenta::FilesystemWatcher::Event

Definition at line 33 of file fswatcher.hpp.

Constructor & Destructor Documentation

◆ ~FilesystemWatcher()

FilesystemWatcher::~FilesystemWatcher ( )

Definition at line 34 of file fswatcher_unix.cpp.

Member Function Documentation

◆ add() [1/2]

bool FilesystemWatcher::add ( const std::filesystem::path &  path,
tenno::vector< Event >  events 
)

Definition at line 71 of file fswatcher_unix.cpp.

◆ add() [2/2]

bool FilesystemWatcher::add ( const tenno::vector< std::filesystem::path > &  paths,
tenno::vector< Event >  events 
)

Definition at line 110 of file fswatcher_unix.cpp.

◆ destroy()

void FilesystemWatcher::destroy ( )

Definition at line 50 of file fswatcher_unix.cpp.

◆ init()

bool FilesystemWatcher::init ( )

Definition at line 39 of file fswatcher_unix.cpp.

◆ rm() [1/2]

bool FilesystemWatcher::rm ( const std::filesystem::path &  path)

Definition at line 121 of file fswatcher_unix.cpp.

◆ rm() [2/2]

bool FilesystemWatcher::rm ( const tenno::vector< std::filesystem::path > &  path)

Definition at line 147 of file fswatcher_unix.cpp.

◆ watch()

std::optional< std::filesystem::path > FilesystemWatcher::watch ( )

Definition at line 157 of file fswatcher_unix.cpp.


The documentation for this class was generated from the following files: