QSafeLayoutFileReader Classclass SafeRenderer::QSafeLayoutFileReader
The QSafeLayoutFileReader class reads the layout data from a file. More...
|virtual void||readDataFromFile(const SafeRenderer::qchar *const fileName, SafeRenderer::LayoutDataBuffer &buffer) override|
Member Function Documentation
QSafeLayoutFileReader::QSafeLayoutFileReader(const SafeRenderer::qchar *const file)
Constructs a safe layout file reader that reads the layout data from the file.
The full path of the file can given to the file parameter. The bitmap data files must be located in the same path with the layout data file.
In case of a failure, one of the following exceptions are thrown:
|The number of bitmaps exceeds the MAXIMUM value.|
|Seek failed on opening the file. For example, the root cause for the error can be a filesystem error or a file that is a pipe.|
|Layout file's size is more than buffer's size.|
|The requested number of bytes can not be read from the opened file.|
|The width of the layout size too long.|
|The height of the layout size too long.|
|The layout file size is not multiple of the layout data size or layout data size is too small, or has too many layouts|
|Layout version is not supported.|
|Layout checksum value does not match with the data checksum.|
|Bitmap's filename was too long to fit in buffer.|
Constructs a safe layout file reader.
[override virtual] void QSafeLayoutFileReader::readDataFromFile(const SafeRenderer::qchar *const fileName, SafeRenderer::LayoutDataBuffer &buffer)
Reimplements: QSafeLayout::readDataFromFile(const SafeRenderer::qchar *const fileName, SafeRenderer::LayoutDataBuffer &buffer).
Read file with fileName to buffer.
This function was introduced in QtSafeRenderer 1.1.
Available under certain Qt licenses.
Find out more.