GEOS 3.15.0beta1
Progress.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2025 Even Rouault <even.rouault@spatialys.com>
7 *
8 * This is free software; you can redistribute and/or modify it under
9 * the terms of the GNU Lesser General Public Licence as published
10 * by the Free Software Foundation.
11 * See the COPYING file for more information.
12 *
13 **********************************************************************/
14
15#pragma once
16
17#include <functional>
18
19#include <geos/export.h>
20
21namespace geos {
22namespace util { // geos::util
23
29typedef std::function<void(double, const char*)> ProgressFunction;
30
58void ProgressFunctionIteration(ProgressFunction& progressFunction, size_t i, size_t iterCount, size_t& iNotify, size_t notificationInterval);
59
78ProgressFunction CreateScaledProgressFunction(double ratioMin, double ratioMax,
79 ProgressFunction& progressFunction);
80
81
82} // namespace geos::util
83} // namespace geos
84
Utility classes for GEOS.
Definition namespaces.h:314
void ProgressFunctionIteration(ProgressFunction &progressFunction, size_t i, size_t iterCount, size_t &iNotify, size_t notificationInterval)
std::function< void(double, const char *)> ProgressFunction
Definition Progress.h:29
ProgressFunction CreateScaledProgressFunction(double ratioMin, double ratioMax, ProgressFunction &progressFunction)
Basic namespace for all GEOS functionalities.
Definition geos.h:38