directory watcher class for text to preset module to process data when there is changes in the rpesets root directory
More...
#include <TextToPreset.h>
|
| int | useTimeSlice () override |
| | timeslice thread checks for modufication dir date and handles it accordingly
|
| |
directory watcher class for text to preset module to process data when there is changes in the rpesets root directory
◆ DirectoryWatcher()
| krotos::DirectoryWatcher::DirectoryWatcher |
( |
const File & | dirToWatch | ) |
|
◆ ~DirectoryWatcher()
| krotos::DirectoryWatcher::~DirectoryWatcher |
( |
| ) |
|
|
override |
◆ getAllPresetFiles()
| void krotos::DirectoryWatcher::getAllPresetFiles |
( |
const File & | directory, |
|
|
Array< File > & | fileArray ) |
gets all presets under a directory recursivelly
- Parameters
-
| root | directory |
| array | that holds the presets |
◆ handleContentUpdate()
| bool krotos::DirectoryWatcher::handleContentUpdate |
( |
| ) |
|
handles content update and triggers ttp embeddings calculation accordingly
- Returns
- true if the operation was successful, false if it failed
◆ useTimeSlice()
| int krotos::DirectoryWatcher::useTimeSlice |
( |
| ) |
|
|
overrideprivate |
timeslice thread checks for modufication dir date and handles it accordingly
◆ m_directory
| File krotos::DirectoryWatcher::m_directory |
|
private |
◆ m_dirModificationDate
| String krotos::DirectoryWatcher::m_dirModificationDate |
|
private |
◆ m_presetFilesArray
| Array<File> krotos::DirectoryWatcher::m_presetFilesArray |
|
private |
◆ m_presetFilesToProcess
| Array<File> krotos::DirectoryWatcher::m_presetFilesToProcess |
|
private |
◆ m_presetsWithEmbeddings
| StringArray krotos::DirectoryWatcher::m_presetsWithEmbeddings |
|
private |
◆ m_textToPresetSharedInstance
◆ thread
| TimeSliceThread krotos::DirectoryWatcher::thread {" Directory Watcher Thread"} |
|
private |
The documentation for this class was generated from the following files: