Files
Jungfraujoch/reader/JFJochHttpReader.h
2025-07-16 20:19:48 +02:00

26 lines
716 B
C++

// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
// SPDX-License-Identifier: GPL-3.0-only
#ifndef JFJOCH_JFJOCHHTTPREADER_H
#define JFJOCH_JFJOCHHTTPREADER_H
#include "JFJochReader.h"
class JFJochHttpReader : public JFJochReader {
std::string addr;
std::shared_ptr<JFJochReaderImage> LoadImageInternal(int64_t image_number);
void UpdateDataset();
std::vector<float> GetPlot(const std::string &plot_type, float fill_value = 0.0) const;
public:
~JFJochHttpReader() override = default;
void ReadURL(const std::string& url);
uint64_t GetNumberOfImages() const override;
void Close() override;
};
#endif //JFJOCH_JFJOCHHTTPREADER_H