|
Synergy Color Management Component - SDK -
2018.0.80
|
Monitor a path for transform directories and files. More...
Classes | |
| class | Callback |
| Callback class required for retrieving directory and file lists. More... | |
Public Member Functions | |
| TransformPathMonitor (const char *path) | |
| Constructor. More... | |
| ~TransformPathMonitor () | |
| Destructor. More... | |
| SynStatus | setPath (const char *path) |
| Set the base path to monitor. More... | |
| const char * | getPath () const |
| Monitored path. More... | |
| SynStatus | listDirectories (const char *relativePath, Callback &callback) |
| List of monitored directories. More... | |
| SynStatus | listFiles (const char *relativePath, Callback &callback) |
| List of monitored transforms files in a given directory. More... | |
| SynStatus | getFileFullPath (const char *relativePath, const char *fileName, char *fullPath, unsigned fullPathSize) |
| Full path for the specified transform directory and filename. More... | |
Private Attributes | |
| Impl * | _pImpl |
| Opaque implementation instance. More... | |
Monitor a path for transform directories and files.
This class observes a directory and provides the list of directories and supported color transform files in its hierarchy. If a directory or file is added within the hierarchy, subsequent calls to listDirectories() and listFiles() will contain the updated lists.
| SYNCOLOR::TransformPathMonitor::TransformPathMonitor | ( | const char * | path | ) |
Constructor.
| path | Base path to monitor. |
| SYNCOLOR::TransformPathMonitor::~TransformPathMonitor | ( | ) |
Destructor.
| SynStatus SYNCOLOR::TransformPathMonitor::setPath | ( | const char * | path | ) |
Set the base path to monitor.
| path | Base path to monitor. |
| const char* SYNCOLOR::TransformPathMonitor::getPath | ( | ) | const |
Monitored path.
| SynStatus SYNCOLOR::TransformPathMonitor::listDirectories | ( | const char * | relativePath, |
| Callback & | callback | ||
| ) |
List of monitored directories.
Directory names are provided to the Callback::processEntry() method one by one in a lexically sorted order.
| relativePath | Sub-path relative to the monitor base path. Use the empty string for the TransformPathMonitor base path. |
| callback | Callback implementation. |
| SynStatus SYNCOLOR::TransformPathMonitor::listFiles | ( | const char * | relativePath, |
| Callback & | callback | ||
| ) |
List of monitored transforms files in a given directory.
File names are provided to the Callback::processEntry() method one by one in a lexically sorted order.
| relativePath | Sub-path relative to the monitor base path. Use the empty string for TransformPathMonitor base path. |
| callback | Callback implementation. |
| SynStatus SYNCOLOR::TransformPathMonitor::getFileFullPath | ( | const char * | relativePath, |
| const char * | fileName, | ||
| char * | fullPath, | ||
| unsigned | fullPathSize | ||
| ) |
Full path for the specified transform directory and filename.
| relativePath | Sub-path relative to the monitor base path. Use the empty string for TransformPathMonitor base path. |
| fileName | File name provided by getList(). |
| fullPath | pointer Return full path buffer. |
| fullPathSize | Return buffer size. |
|
private |
Opaque implementation instance.