mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
* MDAL 0.5.90 : support for custom Logger and 1D meshes * [FEATURE] [MESH] Support rendering of 1D meshes, see https://github.com/qgis/QGIS-Enhancement-Proposals/issues/164 1D mesh consist of edges (edge is straight line segment with 2 vertices) and the data that is defined on either vertices or edges. Such data can be loaded by MDAL and rendered as mesh layer in QGIS.
42 lines
1.2 KiB
C++
42 lines
1.2 KiB
C++
/*
|
|
MDAL - Mesh Data Abstraction Library (MIT License)
|
|
Copyright (C) 2020 Tomas Mizera (tomas.mizera2 at gmail dot com)
|
|
*/
|
|
|
|
#ifndef MDAL_LOGGER_H
|
|
#define MDAL_LOGGER_H
|
|
|
|
#include <string>
|
|
|
|
#include "mdal_utils.hpp"
|
|
|
|
namespace MDAL
|
|
{
|
|
/**
|
|
* Namespace including functions responsible for handling logs.
|
|
*
|
|
* Use in code as: MDAL::Log::error/warning( MDAL_Status, logMessage ).
|
|
* By default, output from logger is set to standard stdout, but it is
|
|
* possible to set custom logger output with function setLoggerCallback.
|
|
*/
|
|
namespace Log
|
|
{
|
|
void error( MDAL::Error );
|
|
void error( MDAL::Error err, std::string driver );
|
|
void error( MDAL_Status status, std::string mssg );
|
|
void error( MDAL_Status status, std::string driverName, std::string mssg );
|
|
void warning( MDAL_Status status, std::string mssg );
|
|
void warning( MDAL_Status status, std::string driverName, std::string mssg );
|
|
void info( std::string mssg );
|
|
void debug( std::string mssg );
|
|
|
|
MDAL_Status getLastStatus();
|
|
void resetLastStatus();
|
|
|
|
void setLoggerCallback( MDAL_LoggerCallback callback );
|
|
void setLogVerbosity( MDAL_LogLevel verbosity );
|
|
}
|
|
}
|
|
|
|
#endif // MDAL_LOGGER_H
|