|
ImagingTools Core SDK
|
Utility class providing convenient methods for managing SDL QML code generation metadata. More...
#include <CQmlGenTools.h>
Static Public Member Functions | |
| static bool | ReadGenerationResultFile (CSdlQmlGenerationResult &result, const QString &filePath) |
| Reads generation result metadata from a JSON file. | |
| static bool | WriteGenerationResultFile (CSdlQmlGenerationResult &result, const QString &filePath) |
| Writes generation result metadata to a JSON file. | |
| static bool | UpdateGenerationResult (const QString &filePath, const CSdlQmlGenerationResult &updateData) |
| Appends additional directories to existing generation result file with file locking protection. | |
Utility class providing convenient methods for managing SDL QML code generation metadata.
Definition at line 19 of file CQmlGenTools.h.
|
static |
Reads generation result metadata from a JSON file.
This method reads and deserializes the CSdlQmlGenerationResult object from a JSON file using iser::CJsonMemReadArchive.
| result | The generation result object to populate with loaded data |
| filePath | Full path to the JSON file to read from |
|
static |
Appends additional directories to existing generation result file with file locking protection.
This method reads the existing generation result file, adds new directories from the provided update data to the existing set, updates the creation timestamp, and writes the updated result back to the file. The entire operation (read, modify, write) is protected by a file lock to prevent concurrent access issues.
If the file doesn't exist, it creates a new one with the data from updateData.
| filePath | Full path to the JSON file where the result should be updated |
| updateData | Generation result object containing folders to append and optionally a creation timestamp |
|
static |
Writes generation result metadata to a JSON file.
This is a helper method that writes the result to file using iser::CJsonMemWriteArchive.
| result | The generation result object containing metadata to save |
| filePath | Full path to the JSON file where the result should be saved |