QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
Public Member Functions | List of all members
QgsServiceNativeLoader Class Reference

Class defining the native service module loader for QGIS server services. More...

#include <qgsservicenativeloader.h>

Public Member Functions

 QgsServiceNativeLoader ()=default
 Constructor. More...
 
void loadModules (const QString &modulePath, QgsServiceRegistry &registrar, QgsServerInterface *serverIface=nullptr)
 Load all modules from path. More...
 
QgsServiceModuleloadNativeModule (const QString &location)
 Load the native module from path. More...
 
void unloadModules ()
 Unload all modules. More...
 

Detailed Description

Class defining the native service module loader for QGIS server services.

This class provides methods for loading and managing hook for native (C++) modules

Since
QGIS 3.0

Definition at line 44 of file qgsservicenativeloader.h.

Constructor & Destructor Documentation

◆ QgsServiceNativeLoader()

QgsServiceNativeLoader::QgsServiceNativeLoader ( )
default

Constructor.

Member Function Documentation

◆ loadModules()

void QgsServiceNativeLoader::loadModules ( const QString &  modulePath,
QgsServiceRegistry registrar,
QgsServerInterface serverIface = nullptr 
)

Load all modules from path.

Parameters
modulePaththe path to look for module
registrarQgsServiceRegistry instance for registering services
serverIfaceQgsServerInterface instarce

Definition at line 55 of file qgsservicenativeloader.cpp.

◆ loadNativeModule()

QgsServiceModule * QgsServiceNativeLoader::loadNativeModule ( const QString &  location)

Load the native module from path.

Parameters
locationQString location holding the module relalive path
Returns
a qgsservicemodule instance

Definition at line 85 of file qgsservicenativeloader.cpp.

◆ unloadModules()

void QgsServiceNativeLoader::unloadModules ( )

Unload all modules.

Definition at line 133 of file qgsservicenativeloader.cpp.


The documentation for this class was generated from the following files: