mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-12 22:50:13 -06:00
Conflicts: modules/volume/CMakeLists.txt modules/volume/linearlrucache.h src/engine/openspaceengine.cpp
24 lines
569 B
C++
24 lines
569 B
C++
#ifndef __CONVERSIONTASK_H__
|
|
#define __CONVERSIONTASK_H__
|
|
|
|
#include <functional>
|
|
#include <ghoul/misc/dictionary.h>
|
|
#include <openspace/documentation/documentation.h>
|
|
|
|
namespace openspace {
|
|
|
|
class Task {
|
|
public:
|
|
using ProgressCallback = std::function<void(float)>;
|
|
|
|
virtual ~Task() = default;
|
|
virtual void perform(const ProgressCallback& onProgress) = 0;
|
|
virtual std::string description() = 0;
|
|
static std::unique_ptr<Task> createFromDictionary(const ghoul::Dictionary& dictionary);
|
|
static openspace::Documentation documentation();
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|