Trigger processing of data when there is changes in the factory assets root directory.
More...
#include <FactoryAssetsWatcher.h>
Trigger processing of data when there is changes in the factory assets root directory.
◆ FactoryAssetsWatcher()
| krotos::FactoryAssetsWatcher::FactoryAssetsWatcher |
( |
const File & | dirToWatch | ) |
|
◆ ~FactoryAssetsWatcher()
| krotos::FactoryAssetsWatcher::~FactoryAssetsWatcher |
( |
| ) |
|
|
override |
◆ addFileToEmbeddings()
| bool krotos::FactoryAssetsWatcher::addFileToEmbeddings |
( |
const File & | file | ) |
|
|
private |
adds file(s) to embeddigs
- Parameters
-
- Returns
- true on success
◆ checkAddFileInEmbeddings()
| void krotos::FactoryAssetsWatcher::checkAddFileInEmbeddings |
( |
| ) |
|
|
private |
check if there is available embeddings if not add it to an array that will be processed by TTP module
◆ getAllFiles()
| void krotos::FactoryAssetsWatcher::getAllFiles |
( |
const File & | directory, |
|
|
Array< File > & | fileArray ) |
gets all files under a directory recursivelly
- Parameters
-
| root | directory |
| array | that holds the files |
◆ getTotalFolderSize()
| int64 krotos::FactoryAssetsWatcher::getTotalFolderSize |
( |
const juce::File & | folder | ) |
|
|
private |
caclulates the folder size recursivelly
- Parameters
-
- Returns
- the folder size in bytes
◆ handleContentUpdate()
| bool krotos::FactoryAssetsWatcher::handleContentUpdate |
( |
| ) |
|
handles content update and triggers ttp embeddings calculation accordingly
- Returns
- Returns true if the operation was successful, false if it failed
◆ initEmbeddings()
| bool krotos::FactoryAssetsWatcher::initEmbeddings |
( |
const File & | file | ) |
|
|
private |
inits embeddigs
- Parameters
-
- Returns
- true on success
◆ removeFileFromEmbeddings()
| bool krotos::FactoryAssetsWatcher::removeFileFromEmbeddings |
( |
const File & | file | ) |
|
|
private |
removes file(s) from embeddigs
- Parameters
-
- Returns
- true on success
◆ useTimeSlice()
| int krotos::FactoryAssetsWatcher::useTimeSlice |
( |
| ) |
|
|
overrideprivate |
timeslice thread checks for modufication dir date and handles it accordingly
◆ m_assetsHaveBeenRemoved
| bool krotos::FactoryAssetsWatcher::m_assetsHaveBeenRemoved {false} |
|
private |
◆ m_assetsStatus
◆ m_cs
| CriticalSection krotos::FactoryAssetsWatcher::m_cs |
|
private |
◆ m_directory
| File krotos::FactoryAssetsWatcher::m_directory |
|
private |
◆ m_dirModificationDate
| String krotos::FactoryAssetsWatcher::m_dirModificationDate |
|
private |
◆ m_dirSize
| int64 krotos::FactoryAssetsWatcher::m_dirSize {0} |
|
private |
◆ m_filesArray
| Array<File> krotos::FactoryAssetsWatcher::m_filesArray |
|
private |
◆ m_filesToProcess
| Array<File> krotos::FactoryAssetsWatcher::m_filesToProcess |
|
private |
◆ m_filesWithEmbeddings
| StringArray krotos::FactoryAssetsWatcher::m_filesWithEmbeddings |
|
private |
◆ m_textToAssetsSharedInstance
◆ thread
| TimeSliceThread krotos::FactoryAssetsWatcher::thread {" Factory Assets Watcher Thread"} |
|
private |
The documentation for this class was generated from the following files: