GrabBag/AppUtils/AppCommon/Inc/DebugDataSaveExtension.h
2026-11-04 10:49:40 +08:00

28 lines
795 B
C++

#ifndef DEBUG_DATA_SAVE_EXTENSION_H
#define DEBUG_DATA_SAVE_EXTENSION_H
#include <string>
struct AppCommonDebugDataSaveContext
{
std::string directory;
std::string filePrefix;
std::string timestamp;
std::string deviceName;
};
// Optional interface for presenters that save data in addition to the point cloud.
class DebugDataSaveExtension
{
public:
virtual ~DebugDataSaveExtension() = default;
// Called before algorithm processing so the presenter can retain this scan's paths.
virtual void OnDebugDataSaveStarted(const AppCommonDebugDataSaveContext&) {}
// Called by BasePresenter after algorithm processing to save generated data.
virtual void SaveAdditionalDebugData(const AppCommonDebugDataSaveContext&) {}
};
#endif // DEBUG_DATA_SAVE_EXTENSION_H