Files
Jungfraujoch/broker/gen/model/Grid_plot.h
T
2025-05-28 18:49:27 +02:00

85 lines
2.1 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.40
* 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.
*/
/*
* Grid_plot.h
*
*
*/
#ifndef Grid_plot_H_
#define Grid_plot_H_
#include <vector>
#include <nlohmann/json.hpp>
namespace org::openapitools::server::model
{
/// <summary>
///
/// </summary>
class Grid_plot
{
public:
Grid_plot();
virtual ~Grid_plot() = 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 Grid_plot& rhs) const;
bool operator!=(const Grid_plot& rhs) const;
/////////////////////////////////////////////
/// Grid_plot members
/// <summary>
///
/// </summary>
std::vector<float> getData() const;
void setData(std::vector<float> const value);
/// <summary>
///
/// </summary>
int64_t getWidth() const;
void setWidth(int64_t const value);
friend void to_json(nlohmann::json& j, const Grid_plot& o);
friend void from_json(const nlohmann::json& j, Grid_plot& o);
protected:
std::vector<float> m_Data;
int64_t m_Width;
};
} // namespace org::openapitools::server::model
#endif /* Grid_plot_H_ */