7#ifndef VIEWSHED_PROGRESS_H_INCLUDED
8#define VIEWSHED_PROGRESS_H_INCLUDED
13#include "cpl_progress.h"
25 Progress(GDALProgressFunc pfnProgress,
void *pProgressArg,
26 size_t expectedLines);
29 bool emit(
double fraction);
32 using ProgressFunc = std::function<bool(
double frac,
const char *msg)>;
35 size_t m_expectedLines;
Support for progress reporting in viewshed construction.
Definition: progress.h:23
bool emit(double fraction)
Emit progress information saying that a fraction of work has been completed.
Definition: progress.cpp:51
bool lineComplete()
Emit progress information saying that a line has been written to output.
Definition: progress.cpp:35
Progress(GDALProgressFunc pfnProgress, void *pProgressArg, size_t expectedLines)
Constructor.
Definition: progress.cpp:22