Files
Jungfraujoch/broker/gen/model/Dataset_settings_unit_cell.h
2024-11-22 21:25:20 +01:00

112 lines
2.9 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.25
* 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.
*/
/*
* Dataset_settings_unit_cell.h
*
* Unit cell parameters. Necessary to run indexing. Units of angstrom and degree
*/
#ifndef Dataset_settings_unit_cell_H_
#define Dataset_settings_unit_cell_H_
#include <nlohmann/json.hpp>
namespace org::openapitools::server::model
{
/// <summary>
/// Unit cell parameters. Necessary to run indexing. Units of angstrom and degree
/// </summary>
class Dataset_settings_unit_cell
{
public:
Dataset_settings_unit_cell();
virtual ~Dataset_settings_unit_cell() = 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 Dataset_settings_unit_cell& rhs) const;
bool operator!=(const Dataset_settings_unit_cell& rhs) const;
/////////////////////////////////////////////
/// Dataset_settings_unit_cell members
/// <summary>
///
/// </summary>
float getA() const;
void setA(float const value);
/// <summary>
///
/// </summary>
float getB() const;
void setB(float const value);
/// <summary>
///
/// </summary>
float getC() const;
void setC(float const value);
/// <summary>
///
/// </summary>
float getAlpha() const;
void setAlpha(float const value);
/// <summary>
///
/// </summary>
float getBeta() const;
void setBeta(float const value);
/// <summary>
///
/// </summary>
float getGamma() const;
void setGamma(float const value);
friend void to_json(nlohmann::json& j, const Dataset_settings_unit_cell& o);
friend void from_json(const nlohmann::json& j, Dataset_settings_unit_cell& o);
protected:
float m_a;
float m_b;
float m_c;
float m_Alpha;
float m_Beta;
float m_Gamma;
};
} // namespace org::openapitools::server::model
#endif /* Dataset_settings_unit_cell_H_ */