Files
Jungfraujoch/broker/gen/model/Scan_result.h
2025-07-15 09:55:19 +02:00

89 lines
2.5 KiB
C++

/**
* Jungfraujoch
* API to control Jungfraujoch developed by the Paul Scherrer Institute (Switzerland). Jungfraujoch is a data acquisition and analysis system for pixel array detectors, primarly PSI JUNGFRAU. Jungfraujoch uses FPGA boards to acquire data at high data rates.
*
* The version of the OpenAPI document: 1.0.0-rc.64
* Contact: filip.leonarski@psi.ch
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/*
* Scan_result.h
*
* Results of a grid scan
*/
#ifndef Scan_result_H_
#define Scan_result_H_
#include "Scan_result_images_inner.h"
#include <string>
#include <vector>
#include <nlohmann/json.hpp>
namespace org::openapitools::server::model
{
/// <summary>
/// Results of a grid scan
/// </summary>
class Scan_result
{
public:
Scan_result();
virtual ~Scan_result() = default;
/// <summary>
/// Validate the current data in the model. Throws a ValidationException on failure.
/// </summary>
void validate() const;
/// <summary>
/// Validate the current data in the model. Returns false on error and writes an error
/// message into the given stringstream.
/// </summary>
bool validate(std::stringstream& msg) const;
/// <summary>
/// Helper overload for validate. Used when one model stores another model and calls it's validate.
/// Not meant to be called outside that case.
/// </summary>
bool validate(std::stringstream& msg, const std::string& pathPrefix) const;
bool operator==(const Scan_result& rhs) const;
bool operator!=(const Scan_result& rhs) const;
/////////////////////////////////////////////
/// Scan_result members
/// <summary>
///
/// </summary>
std::string getFilePrefix() const;
void setFilePrefix(std::string const& value);
bool filePrefixIsSet() const;
void unsetFile_prefix();
/// <summary>
///
/// </summary>
std::vector<org::openapitools::server::model::Scan_result_images_inner> getImages() const;
void setImages(std::vector<org::openapitools::server::model::Scan_result_images_inner> const& value);
friend void to_json(nlohmann::json& j, const Scan_result& o);
friend void from_json(const nlohmann::json& j, Scan_result& o);
protected:
std::string m_File_prefix;
bool m_File_prefixIsSet;
std::vector<org::openapitools::server::model::Scan_result_images_inner> m_Images;
};
} // namespace org::openapitools::server::model
#endif /* Scan_result_H_ */