Files
Jungfraujoch/broker/gen/model/Detector_module.h
2024-11-26 16:04:38 +01:00

99 lines
2.8 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.26
* 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.
*/
/*
* Detector_module.h
*
*
*/
#ifndef Detector_module_H_
#define Detector_module_H_
#include "Detector_module_direction.h"
#include <nlohmann/json.hpp>
namespace org::openapitools::server::model
{
/// <summary>
///
/// </summary>
class Detector_module
{
public:
Detector_module();
virtual ~Detector_module() = 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 Detector_module& rhs) const;
bool operator!=(const Detector_module& rhs) const;
/////////////////////////////////////////////
/// Detector_module members
/// <summary>
///
/// </summary>
double getX0() const;
void setX0(double const value);
/// <summary>
///
/// </summary>
double getY0() const;
void setY0(double const value);
/// <summary>
///
/// </summary>
org::openapitools::server::model::Detector_module_direction getFastAxis() const;
void setFastAxis(org::openapitools::server::model::Detector_module_direction const& value);
/// <summary>
///
/// </summary>
org::openapitools::server::model::Detector_module_direction getSlowAxis() const;
void setSlowAxis(org::openapitools::server::model::Detector_module_direction const& value);
friend void to_json(nlohmann::json& j, const Detector_module& o);
friend void from_json(const nlohmann::json& j, Detector_module& o);
protected:
double m_X0;
double m_Y0;
org::openapitools::server::model::Detector_module_direction m_Fast_axis;
org::openapitools::server::model::Detector_module_direction m_Slow_axis;
};
} // namespace org::openapitools::server::model
#endif /* Detector_module_H_ */