Files
Jungfraujoch/broker/gen/model/Scan_result_images_inner.cpp
T
leonarski_f 05feb74602
Build Packages / build:windows:nocuda (push) Failing after 4m16s
Build Packages / build:windows:cuda (push) Failing after 4m16s
Build Packages / build:viewer-tgz:cpu (push) Successful in 6m19s
Build Packages / build:viewer-tgz:cuda (push) Successful in 6m17s
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 9m13s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 10m7s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 8m52s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 8m23s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 9m41s
Build Packages / build:rpm (rocky9_sls9) (push) Successful in 10m29s
Build Packages / build:rpm (rocky8) (push) Successful in 9m54s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 9m40s
Build Packages / build:rpm (rocky9) (push) Successful in 10m44s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 9m26s
Build Packages / Generate python client (push) Successful in 15s
Build Packages / Build documentation (push) Successful in 53s
Build Packages / Create release (push) Skipped
Build Packages / XDS test (durin plugin) (push) Successful in 7m10s
Build Packages / XDS test (neggia plugin) (push) Successful in 6m34s
Build Packages / XDS test (JFJoch plugin) (push) Successful in 7m7s
Build Packages / DIALS test (push) Successful in 11m6s
Build Packages / build:viewer-tgz:cpu (pull_request) Successful in 7m14s
Build Packages / build:viewer-tgz:cuda (pull_request) Successful in 8m26s
Build Packages / build:rpm (ubuntu2204_nocuda) (pull_request) Successful in 10m49s
Build Packages / build:rpm (rocky8_nocuda) (pull_request) Successful in 10m59s
Build Packages / build:rpm (rocky9_nocuda) (pull_request) Successful in 11m4s
Build Packages / build:rpm (ubuntu2404_nocuda) (pull_request) Successful in 9m34s
Build Packages / build:windows:nocuda (pull_request) Successful in 15m20s
Build Packages / build:windows:cuda (pull_request) Failing after 17m21s
Build Packages / build:rpm (rocky8_sls9) (pull_request) Successful in 10m25s
Build Packages / build:rpm (rocky9_sls9) (pull_request) Successful in 11m31s
Build Packages / build:rpm (rocky8) (pull_request) Successful in 11m11s
Build Packages / build:rpm (ubuntu2204) (pull_request) Successful in 11m5s
Build Packages / build:rpm (rocky9) (pull_request) Successful in 11m48s
Build Packages / Generate python client (pull_request) Successful in 26s
Build Packages / Build documentation (pull_request) Successful in 59s
Build Packages / Create release (pull_request) Skipped
Build Packages / build:rpm (ubuntu2404) (pull_request) Successful in 10m51s
Build Packages / XDS test (durin plugin) (pull_request) Successful in 6m55s
Build Packages / XDS test (neggia plugin) (pull_request) Successful in 6m38s
Build Packages / XDS test (JFJoch plugin) (pull_request) Successful in 7m20s
Build Packages / DIALS test (pull_request) Successful in 14m23s
Build Packages / Unit tests (push) Successful in 1h24m59s
Build Packages / Unit tests (pull_request) Successful in 1h39m35s
VERSION: 1.0.0-rc.158
2026-07-11 11:34:11 +02:00

685 lines
17 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. # License Clarification While this API definition is licensed under GPL-3.0, **the GPL copyleft provisions do not apply** when this file is used solely to generate OpenAPI clients or when implementing applications that interact with the API. Generated client code and applications using this API definition are not subject to the GPL license requirements and may be distributed under terms of your choosing. This exception is similar in spirit to the Linux Kernel's approach to userspace API headers and the GCC Runtime Library Exception. The Linux Kernel developers have explicitly stated that user programs that merely use the kernel interfaces (syscalls, ioctl definitions, etc.) are not derivative works of the kernel and are not subject to the terms of the GPL. This exception is intended to allow wider use of this API specification without imposing GPL requirements on applications that merely interact with the API, regardless of whether they communicate through network calls or other mechanisms.
*
* The version of the OpenAPI document: 1.0.0-rc.158
* 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.
*/
#include "Scan_result_images_inner.h"
#include "Helpers.h"
#include <sstream>
namespace org::openapitools::server::model
{
Scan_result_images_inner::Scan_result_images_inner()
{
m_Efficiency = 0.0f;
m_number = 0L;
m_Nx = 0L;
m_NxIsSet = false;
m_Ny = 0L;
m_NyIsSet = false;
m_Angle = 0.0f;
m_AngleIsSet = false;
m_Bkg = 0.0f;
m_BkgIsSet = false;
m_Spots = 0L;
m_SpotsIsSet = false;
m_Spots_low_res = 0L;
m_Spots_low_resIsSet = false;
m_Spots_indexed = 0L;
m_Spots_indexedIsSet = false;
m_Spots_ice = 0L;
m_Spots_iceIsSet = false;
m_Ice = 0.0f;
m_IceIsSet = false;
m_Index = 0L;
m_IndexIsSet = false;
m_Latt_count = 0L;
m_Latt_countIsSet = false;
m_Pr = 0.0f;
m_PrIsSet = false;
m_b = 0.0f;
m_bIsSet = false;
m_UcIsSet = false;
m_Xfel_pulseid = 0L;
m_Xfel_pulseidIsSet = false;
m_Pixel_sum = 0L;
m_Pixel_sumIsSet = false;
m_Max = 0L;
m_MaxIsSet = false;
m_Sat = 0L;
m_SatIsSet = false;
m_Err = 0L;
m_ErrIsSet = false;
m_Res = 0.0f;
m_ResIsSet = false;
}
void Scan_result_images_inner::validate() const
{
std::stringstream msg;
if (!validate(msg))
{
throw org::openapitools::server::helpers::ValidationException(msg.str());
}
}
bool Scan_result_images_inner::validate(std::stringstream& msg) const
{
return validate(msg, "");
}
bool Scan_result_images_inner::validate(std::stringstream& msg, const std::string& pathPrefix) const
{
bool success = true;
const std::string _pathPrefix = pathPrefix.empty() ? "Scan_result_images_inner" : pathPrefix;
return success;
}
bool Scan_result_images_inner::operator==(const Scan_result_images_inner& rhs) const
{
return
(getEfficiency() == rhs.getEfficiency())
&&
(getNumber() == rhs.getNumber())
&&
((!nxIsSet() && !rhs.nxIsSet()) || (nxIsSet() && rhs.nxIsSet() && getNx() == rhs.getNx())) &&
((!nyIsSet() && !rhs.nyIsSet()) || (nyIsSet() && rhs.nyIsSet() && getNy() == rhs.getNy())) &&
((!angleIsSet() && !rhs.angleIsSet()) || (angleIsSet() && rhs.angleIsSet() && getAngle() == rhs.getAngle())) &&
((!bkgIsSet() && !rhs.bkgIsSet()) || (bkgIsSet() && rhs.bkgIsSet() && getBkg() == rhs.getBkg())) &&
((!spotsIsSet() && !rhs.spotsIsSet()) || (spotsIsSet() && rhs.spotsIsSet() && getSpots() == rhs.getSpots())) &&
((!spotsLowResIsSet() && !rhs.spotsLowResIsSet()) || (spotsLowResIsSet() && rhs.spotsLowResIsSet() && getSpotsLowRes() == rhs.getSpotsLowRes())) &&
((!spotsIndexedIsSet() && !rhs.spotsIndexedIsSet()) || (spotsIndexedIsSet() && rhs.spotsIndexedIsSet() && getSpotsIndexed() == rhs.getSpotsIndexed())) &&
((!spotsIceIsSet() && !rhs.spotsIceIsSet()) || (spotsIceIsSet() && rhs.spotsIceIsSet() && getSpotsIce() == rhs.getSpotsIce())) &&
((!iceIsSet() && !rhs.iceIsSet()) || (iceIsSet() && rhs.iceIsSet() && getIce() == rhs.getIce())) &&
((!indexIsSet() && !rhs.indexIsSet()) || (indexIsSet() && rhs.indexIsSet() && getIndex() == rhs.getIndex())) &&
((!lattCountIsSet() && !rhs.lattCountIsSet()) || (lattCountIsSet() && rhs.lattCountIsSet() && getLattCount() == rhs.getLattCount())) &&
((!prIsSet() && !rhs.prIsSet()) || (prIsSet() && rhs.prIsSet() && getPr() == rhs.getPr())) &&
((!BIsSet() && !rhs.BIsSet()) || (BIsSet() && rhs.BIsSet() && getB() == rhs.getB())) &&
((!ucIsSet() && !rhs.ucIsSet()) || (ucIsSet() && rhs.ucIsSet() && getUc() == rhs.getUc())) &&
((!xfelPulseidIsSet() && !rhs.xfelPulseidIsSet()) || (xfelPulseidIsSet() && rhs.xfelPulseidIsSet() && getXfelPulseid() == rhs.getXfelPulseid())) &&
((!pixelSumIsSet() && !rhs.pixelSumIsSet()) || (pixelSumIsSet() && rhs.pixelSumIsSet() && getPixelSum() == rhs.getPixelSum())) &&
((!maxIsSet() && !rhs.maxIsSet()) || (maxIsSet() && rhs.maxIsSet() && getMax() == rhs.getMax())) &&
((!satIsSet() && !rhs.satIsSet()) || (satIsSet() && rhs.satIsSet() && getSat() == rhs.getSat())) &&
((!errIsSet() && !rhs.errIsSet()) || (errIsSet() && rhs.errIsSet() && getErr() == rhs.getErr())) &&
((!resIsSet() && !rhs.resIsSet()) || (resIsSet() && rhs.resIsSet() && getRes() == rhs.getRes()))
;
}
bool Scan_result_images_inner::operator!=(const Scan_result_images_inner& rhs) const
{
return !(*this == rhs);
}
void to_json(nlohmann::json& j, const Scan_result_images_inner& o)
{
j = nlohmann::json::object();
j["efficiency"] = o.m_Efficiency;
j["number"] = o.m_number;
if(o.nxIsSet())
j["nx"] = o.m_Nx;
if(o.nyIsSet())
j["ny"] = o.m_Ny;
if(o.angleIsSet())
j["angle"] = o.m_Angle;
if(o.bkgIsSet())
j["bkg"] = o.m_Bkg;
if(o.spotsIsSet())
j["spots"] = o.m_Spots;
if(o.spotsLowResIsSet())
j["spots_low_res"] = o.m_Spots_low_res;
if(o.spotsIndexedIsSet())
j["spots_indexed"] = o.m_Spots_indexed;
if(o.spotsIceIsSet())
j["spots_ice"] = o.m_Spots_ice;
if(o.iceIsSet())
j["ice"] = o.m_Ice;
if(o.indexIsSet())
j["index"] = o.m_Index;
if(o.lattCountIsSet())
j["latt_count"] = o.m_Latt_count;
if(o.prIsSet())
j["pr"] = o.m_Pr;
if(o.BIsSet())
j["b"] = o.m_b;
if(o.ucIsSet())
j["uc"] = o.m_Uc;
if(o.xfelPulseidIsSet())
j["xfel_pulseid"] = o.m_Xfel_pulseid;
if(o.pixelSumIsSet())
j["pixel_sum"] = o.m_Pixel_sum;
if(o.maxIsSet())
j["max"] = o.m_Max;
if(o.satIsSet())
j["sat"] = o.m_Sat;
if(o.errIsSet())
j["err"] = o.m_Err;
if(o.resIsSet())
j["res"] = o.m_Res;
}
void from_json(const nlohmann::json& j, Scan_result_images_inner& o)
{
j.at("efficiency").get_to(o.m_Efficiency);
j.at("number").get_to(o.m_number);
if(j.find("nx") != j.end())
{
j.at("nx").get_to(o.m_Nx);
o.m_NxIsSet = true;
}
if(j.find("ny") != j.end())
{
j.at("ny").get_to(o.m_Ny);
o.m_NyIsSet = true;
}
if(j.find("angle") != j.end())
{
j.at("angle").get_to(o.m_Angle);
o.m_AngleIsSet = true;
}
if(j.find("bkg") != j.end())
{
j.at("bkg").get_to(o.m_Bkg);
o.m_BkgIsSet = true;
}
if(j.find("spots") != j.end())
{
j.at("spots").get_to(o.m_Spots);
o.m_SpotsIsSet = true;
}
if(j.find("spots_low_res") != j.end())
{
j.at("spots_low_res").get_to(o.m_Spots_low_res);
o.m_Spots_low_resIsSet = true;
}
if(j.find("spots_indexed") != j.end())
{
j.at("spots_indexed").get_to(o.m_Spots_indexed);
o.m_Spots_indexedIsSet = true;
}
if(j.find("spots_ice") != j.end())
{
j.at("spots_ice").get_to(o.m_Spots_ice);
o.m_Spots_iceIsSet = true;
}
if(j.find("ice") != j.end())
{
j.at("ice").get_to(o.m_Ice);
o.m_IceIsSet = true;
}
if(j.find("index") != j.end())
{
j.at("index").get_to(o.m_Index);
o.m_IndexIsSet = true;
}
if(j.find("latt_count") != j.end())
{
j.at("latt_count").get_to(o.m_Latt_count);
o.m_Latt_countIsSet = true;
}
if(j.find("pr") != j.end())
{
j.at("pr").get_to(o.m_Pr);
o.m_PrIsSet = true;
}
if(j.find("b") != j.end())
{
j.at("b").get_to(o.m_b);
o.m_bIsSet = true;
}
if(j.find("uc") != j.end())
{
j.at("uc").get_to(o.m_Uc);
o.m_UcIsSet = true;
}
if(j.find("xfel_pulseid") != j.end())
{
j.at("xfel_pulseid").get_to(o.m_Xfel_pulseid);
o.m_Xfel_pulseidIsSet = true;
}
if(j.find("pixel_sum") != j.end())
{
j.at("pixel_sum").get_to(o.m_Pixel_sum);
o.m_Pixel_sumIsSet = true;
}
if(j.find("max") != j.end())
{
j.at("max").get_to(o.m_Max);
o.m_MaxIsSet = true;
}
if(j.find("sat") != j.end())
{
j.at("sat").get_to(o.m_Sat);
o.m_SatIsSet = true;
}
if(j.find("err") != j.end())
{
j.at("err").get_to(o.m_Err);
o.m_ErrIsSet = true;
}
if(j.find("res") != j.end())
{
j.at("res").get_to(o.m_Res);
o.m_ResIsSet = true;
}
}
float Scan_result_images_inner::getEfficiency() const
{
return m_Efficiency;
}
void Scan_result_images_inner::setEfficiency(float const value)
{
m_Efficiency = value;
}
int64_t Scan_result_images_inner::getNumber() const
{
return m_number;
}
void Scan_result_images_inner::setNumber(int64_t const value)
{
m_number = value;
}
int64_t Scan_result_images_inner::getNx() const
{
return m_Nx;
}
void Scan_result_images_inner::setNx(int64_t const value)
{
m_Nx = value;
m_NxIsSet = true;
}
bool Scan_result_images_inner::nxIsSet() const
{
return m_NxIsSet;
}
void Scan_result_images_inner::unsetNx()
{
m_NxIsSet = false;
}
int64_t Scan_result_images_inner::getNy() const
{
return m_Ny;
}
void Scan_result_images_inner::setNy(int64_t const value)
{
m_Ny = value;
m_NyIsSet = true;
}
bool Scan_result_images_inner::nyIsSet() const
{
return m_NyIsSet;
}
void Scan_result_images_inner::unsetNy()
{
m_NyIsSet = false;
}
float Scan_result_images_inner::getAngle() const
{
return m_Angle;
}
void Scan_result_images_inner::setAngle(float const value)
{
m_Angle = value;
m_AngleIsSet = true;
}
bool Scan_result_images_inner::angleIsSet() const
{
return m_AngleIsSet;
}
void Scan_result_images_inner::unsetAngle()
{
m_AngleIsSet = false;
}
float Scan_result_images_inner::getBkg() const
{
return m_Bkg;
}
void Scan_result_images_inner::setBkg(float const value)
{
m_Bkg = value;
m_BkgIsSet = true;
}
bool Scan_result_images_inner::bkgIsSet() const
{
return m_BkgIsSet;
}
void Scan_result_images_inner::unsetBkg()
{
m_BkgIsSet = false;
}
int64_t Scan_result_images_inner::getSpots() const
{
return m_Spots;
}
void Scan_result_images_inner::setSpots(int64_t const value)
{
m_Spots = value;
m_SpotsIsSet = true;
}
bool Scan_result_images_inner::spotsIsSet() const
{
return m_SpotsIsSet;
}
void Scan_result_images_inner::unsetSpots()
{
m_SpotsIsSet = false;
}
int64_t Scan_result_images_inner::getSpotsLowRes() const
{
return m_Spots_low_res;
}
void Scan_result_images_inner::setSpotsLowRes(int64_t const value)
{
m_Spots_low_res = value;
m_Spots_low_resIsSet = true;
}
bool Scan_result_images_inner::spotsLowResIsSet() const
{
return m_Spots_low_resIsSet;
}
void Scan_result_images_inner::unsetSpots_low_res()
{
m_Spots_low_resIsSet = false;
}
int64_t Scan_result_images_inner::getSpotsIndexed() const
{
return m_Spots_indexed;
}
void Scan_result_images_inner::setSpotsIndexed(int64_t const value)
{
m_Spots_indexed = value;
m_Spots_indexedIsSet = true;
}
bool Scan_result_images_inner::spotsIndexedIsSet() const
{
return m_Spots_indexedIsSet;
}
void Scan_result_images_inner::unsetSpots_indexed()
{
m_Spots_indexedIsSet = false;
}
int64_t Scan_result_images_inner::getSpotsIce() const
{
return m_Spots_ice;
}
void Scan_result_images_inner::setSpotsIce(int64_t const value)
{
m_Spots_ice = value;
m_Spots_iceIsSet = true;
}
bool Scan_result_images_inner::spotsIceIsSet() const
{
return m_Spots_iceIsSet;
}
void Scan_result_images_inner::unsetSpots_ice()
{
m_Spots_iceIsSet = false;
}
float Scan_result_images_inner::getIce() const
{
return m_Ice;
}
void Scan_result_images_inner::setIce(float const value)
{
m_Ice = value;
m_IceIsSet = true;
}
bool Scan_result_images_inner::iceIsSet() const
{
return m_IceIsSet;
}
void Scan_result_images_inner::unsetIce()
{
m_IceIsSet = false;
}
int64_t Scan_result_images_inner::getIndex() const
{
return m_Index;
}
void Scan_result_images_inner::setIndex(int64_t const value)
{
m_Index = value;
m_IndexIsSet = true;
}
bool Scan_result_images_inner::indexIsSet() const
{
return m_IndexIsSet;
}
void Scan_result_images_inner::unsetIndex()
{
m_IndexIsSet = false;
}
int64_t Scan_result_images_inner::getLattCount() const
{
return m_Latt_count;
}
void Scan_result_images_inner::setLattCount(int64_t const value)
{
m_Latt_count = value;
m_Latt_countIsSet = true;
}
bool Scan_result_images_inner::lattCountIsSet() const
{
return m_Latt_countIsSet;
}
void Scan_result_images_inner::unsetLatt_count()
{
m_Latt_countIsSet = false;
}
float Scan_result_images_inner::getPr() const
{
return m_Pr;
}
void Scan_result_images_inner::setPr(float const value)
{
m_Pr = value;
m_PrIsSet = true;
}
bool Scan_result_images_inner::prIsSet() const
{
return m_PrIsSet;
}
void Scan_result_images_inner::unsetPr()
{
m_PrIsSet = false;
}
float Scan_result_images_inner::getB() const
{
return m_b;
}
void Scan_result_images_inner::setB(float const value)
{
m_b = value;
m_bIsSet = true;
}
bool Scan_result_images_inner::BIsSet() const
{
return m_bIsSet;
}
void Scan_result_images_inner::unsetb()
{
m_bIsSet = false;
}
org::openapitools::server::model::Unit_cell Scan_result_images_inner::getUc() const
{
return m_Uc;
}
void Scan_result_images_inner::setUc(org::openapitools::server::model::Unit_cell const& value)
{
m_Uc = value;
m_UcIsSet = true;
}
bool Scan_result_images_inner::ucIsSet() const
{
return m_UcIsSet;
}
void Scan_result_images_inner::unsetUc()
{
m_UcIsSet = false;
}
int64_t Scan_result_images_inner::getXfelPulseid() const
{
return m_Xfel_pulseid;
}
void Scan_result_images_inner::setXfelPulseid(int64_t const value)
{
m_Xfel_pulseid = value;
m_Xfel_pulseidIsSet = true;
}
bool Scan_result_images_inner::xfelPulseidIsSet() const
{
return m_Xfel_pulseidIsSet;
}
void Scan_result_images_inner::unsetXfel_pulseid()
{
m_Xfel_pulseidIsSet = false;
}
int64_t Scan_result_images_inner::getPixelSum() const
{
return m_Pixel_sum;
}
void Scan_result_images_inner::setPixelSum(int64_t const value)
{
m_Pixel_sum = value;
m_Pixel_sumIsSet = true;
}
bool Scan_result_images_inner::pixelSumIsSet() const
{
return m_Pixel_sumIsSet;
}
void Scan_result_images_inner::unsetPixel_sum()
{
m_Pixel_sumIsSet = false;
}
int64_t Scan_result_images_inner::getMax() const
{
return m_Max;
}
void Scan_result_images_inner::setMax(int64_t const value)
{
m_Max = value;
m_MaxIsSet = true;
}
bool Scan_result_images_inner::maxIsSet() const
{
return m_MaxIsSet;
}
void Scan_result_images_inner::unsetMax()
{
m_MaxIsSet = false;
}
int64_t Scan_result_images_inner::getSat() const
{
return m_Sat;
}
void Scan_result_images_inner::setSat(int64_t const value)
{
m_Sat = value;
m_SatIsSet = true;
}
bool Scan_result_images_inner::satIsSet() const
{
return m_SatIsSet;
}
void Scan_result_images_inner::unsetSat()
{
m_SatIsSet = false;
}
int64_t Scan_result_images_inner::getErr() const
{
return m_Err;
}
void Scan_result_images_inner::setErr(int64_t const value)
{
m_Err = value;
m_ErrIsSet = true;
}
bool Scan_result_images_inner::errIsSet() const
{
return m_ErrIsSet;
}
void Scan_result_images_inner::unsetErr()
{
m_ErrIsSet = false;
}
float Scan_result_images_inner::getRes() const
{
return m_Res;
}
void Scan_result_images_inner::setRes(float const value)
{
m_Res = value;
m_ResIsSet = true;
}
bool Scan_result_images_inner::resIsSet() const
{
return m_ResIsSet;
}
void Scan_result_images_inner::unsetRes()
{
m_ResIsSet = false;
}
} // namespace org::openapitools::server::model