QGIS API Documentation
3.2.0-Bonn (bc43194)
|
The class is used as a container of context for various read/write operations on other objects. More...
#include <qgsreadwritecontext.h>
Classes | |
struct | ReadWriteMessage |
Struct for QgsReadWriteContext error or warning messages. More... | |
Public Member Functions | |
QgsReadWriteContext ()=default | |
Constructor for QgsReadWriteContext. More... | |
~QgsReadWriteContext () | |
MAYBE_UNUSED NODISCARD QgsReadWriteContextCategoryPopper | enterCategory (const QString &category, const QString &details=QString()) |
Push a category to the stack. More... | |
const QgsPathResolver & | pathResolver () const |
Returns path resolver for conversion between relative and absolute paths. More... | |
void | pushMessage (const QString &message, Qgis::MessageLevel level=Qgis::Warning) |
Append a message to the context. More... | |
void | setPathResolver (const QgsPathResolver &resolver) |
Sets up path resolver for conversion between relative and absolute paths. More... | |
QList< QgsReadWriteContext::ReadWriteMessage > | takeMessages () |
Returns the stored messages and remove them. More... | |
Friends | |
class | QgsReadWriteContextCategoryPopper |
The class is used as a container of context for various read/write operations on other objects.
Definition at line 32 of file qgsreadwritecontext.h.
|
default |
Constructor for QgsReadWriteContext.
QgsReadWriteContext::~QgsReadWriteContext | ( | ) |
Definition at line 17 of file qgsreadwritecontext.cpp.
QgsReadWriteContextCategoryPopper QgsReadWriteContext::enterCategory | ( | const QString & | category, |
const QString & | details = QString() |
||
) |
Push a category to the stack.
Definition at line 38 of file qgsreadwritecontext.cpp.
const QgsPathResolver & QgsReadWriteContext::pathResolver | ( | ) | const |
Returns path resolver for conversion between relative and absolute paths.
Definition at line 23 of file qgsreadwritecontext.cpp.
void QgsReadWriteContext::pushMessage | ( | const QString & | message, |
Qgis::MessageLevel | level = Qgis::Warning |
||
) |
Append a message to the context.
Definition at line 33 of file qgsreadwritecontext.cpp.
void QgsReadWriteContext::setPathResolver | ( | const QgsPathResolver & | resolver | ) |
Sets up path resolver for conversion between relative and absolute paths.
Definition at line 28 of file qgsreadwritecontext.cpp.
QList< QgsReadWriteContext::ReadWriteMessage > QgsReadWriteContext::takeMessages | ( | ) |
Returns the stored messages and remove them.
Definition at line 53 of file qgsreadwritecontext.cpp.
|
friend |
Definition at line 111 of file qgsreadwritecontext.h.