![]() |
Inviwo
0.9.10.1
Inviwo documentation
|
#include <fileobserver.h>
Inheritance diagram for inviwo::FileObserver:Public Member Functions | |
| FileObserver (InviwoApplication *app) | |
| FileObserver (const std::string &filePath="") | |
| Starts observing file if existing. More... | |
| FileObserver (const FileObserver &)=delete | |
| FileObserver & | operator= (const FileObserver &)=delete |
| FileObserver (FileObserver &&rhs) | |
| FileObserver & | operator= (FileObserver &&that) |
| virtual | ~FileObserver () |
| bool | startFileObservation (const std::string &filePath) |
| Starts observing file if it exists. More... | |
| bool | stopFileObservation (const std::string &filePath) |
| Stops observing the file if being observed. More... | |
| void | stopAllObservation () |
| const std::unordered_set< std::string > & | getFiles () const |
| bool | isObserved (const std::string &fileName) const |
| virtual void | fileChanged (const std::string &fileName)=0 |
Protected Attributes | |
| InviwoApplication * | app_ |
Calls fileChanged when an observed file/directory changes. One or multiple files/directories can be observed.
| inviwo::FileObserver::FileObserver | ( | InviwoApplication * | app | ) |
| inviwo::FileObserver::FileObserver | ( | const std::string & | filePath = "" | ) |
Starts observing file if existing.
| filePath | Full path to file to observe |
| inviwo::FileObserver::FileObserver | ( | FileObserver && | rhs | ) |
Moves observed files from other
|
virtual |
Unregisters file observer in InviwoApplication and stops observing all files.
| bool inviwo::FileObserver::startFileObservation | ( | const std::string & | 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::string & | filePath | ) |
Stops observing the file if being observed.
| filePath | Full path to file |