|  | Inviwo 0.9.12-pre
    Inviwo documentation | 
#include <fileobserver.h>
| Public Member Functions | |
| FileObserver (InviwoApplication *app) | |
| FileObserver (FileSystemObserver *app) | |
| FileObserver (const FileObserver &)=delete | |
| FileObserver & | operator= (const FileObserver &)=delete | 
| FileObserver (FileObserver &&rhs) | |
| FileObserver & | operator= (FileObserver &&that) | 
| virtual | ~FileObserver () | 
| bool | startFileObservation (const std::filesystem::path &filePath) | 
| Starts observing file if it exists. | |
| bool | stopFileObservation (const std::filesystem::path &filePath) | 
| Stops observing the file if being observed. | |
| void | stopAllObservation () | 
| const std::unordered_set< std::filesystem::path, PathHash > & | getFiles () const | 
| bool | isObserved (const std::filesystem::path &fileName) const | 
| virtual void | fileChanged (const std::filesystem::path &fileName)=0 | 
| Protected Attributes | |
| FileSystemObserver * | fileSystemObserver_ | 
Calls fileChanged when an observed file/directory changes. One or multiple files/directories can be observed.
| inviwo::FileObserver::FileObserver | ( | InviwoApplication * | app | ) | 
| inviwo::FileObserver::FileObserver | ( | FileSystemObserver * | app | ) | 
| 
 | virtual | 
Unregisters file observer in InviwoApplication and stops observing all files.
| bool inviwo::FileObserver::startFileObservation | ( | const std::filesystem::path & | filePath | ) | 
Starts observing file if it exists.
| filePath | Full path to file | 
| void inviwo::FileObserver::stopAllObservation | ( | ) | 
Stop observation of all observed files
| bool inviwo::FileObserver::stopFileObservation | ( | const std::filesystem::path & | filePath | ) | 
Stops observing the file if being observed.
| filePath | Full path to file |