Files
Jungfraujoch/broker/gen/model/Pcie_devices_inner.cpp
Filip Leonarski d1a4c19ef3
Some checks failed
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 8m23s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 7m2s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 8m3s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 7m49s
Build Packages / build:rpm (rocky8) (push) Successful in 7m43s
Build Packages / Generate python client (push) Successful in 14s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 7m51s
Build Packages / Create release (push) Has been skipped
Build Packages / Build documentation (push) Successful in 31s
Build Packages / build:rpm (rocky9) (push) Successful in 8m32s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 7m7s
Build Packages / Unit tests (push) Successful in 1h12m37s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Failing after 2m34s
v1.0.0-rc.117 (#24)
This is an UNSTABLE release and not recommended for production use (please use rc.111 instead).

* jfjoch_viewer: Add ROI results to the dataset info plots
* jfjoch_writer: Remove HTTP interface, as it is not needed/used at the moment

Reviewed-on: #24
Co-authored-by: Filip Leonarski <filip.leonarski@psi.ch>
Co-committed-by: Filip Leonarski <filip.leonarski@psi.ch>
2025-12-05 22:03:07 +01:00

136 lines
3.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. # 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.117
* 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 "Pcie_devices_inner.h"
#include "Helpers.h"
#include <sstream>
namespace org::openapitools::server::model
{
Pcie_devices_inner::Pcie_devices_inner()
{
m_Blk = "";
m_BlkIsSet = false;
m_Ipv4 = "";
m_Ipv4IsSet = false;
}
void Pcie_devices_inner::validate() const
{
std::stringstream msg;
if (!validate(msg))
{
throw org::openapitools::server::helpers::ValidationException(msg.str());
}
}
bool Pcie_devices_inner::validate(std::stringstream& msg) const
{
return validate(msg, "");
}
bool Pcie_devices_inner::validate(std::stringstream& msg, const std::string& pathPrefix) const
{
bool success = true;
const std::string _pathPrefix = pathPrefix.empty() ? "Pcie_devices_inner" : pathPrefix;
return success;
}
bool Pcie_devices_inner::operator==(const Pcie_devices_inner& rhs) const
{
return
((!blkIsSet() && !rhs.blkIsSet()) || (blkIsSet() && rhs.blkIsSet() && getBlk() == rhs.getBlk())) &&
((!ipv4IsSet() && !rhs.ipv4IsSet()) || (ipv4IsSet() && rhs.ipv4IsSet() && getIpv4() == rhs.getIpv4()))
;
}
bool Pcie_devices_inner::operator!=(const Pcie_devices_inner& rhs) const
{
return !(*this == rhs);
}
void to_json(nlohmann::json& j, const Pcie_devices_inner& o)
{
j = nlohmann::json::object();
if(o.blkIsSet())
j["blk"] = o.m_Blk;
if(o.ipv4IsSet())
j["ipv4"] = o.m_Ipv4;
}
void from_json(const nlohmann::json& j, Pcie_devices_inner& o)
{
if(j.find("blk") != j.end())
{
j.at("blk").get_to(o.m_Blk);
o.m_BlkIsSet = true;
}
if(j.find("ipv4") != j.end())
{
j.at("ipv4").get_to(o.m_Ipv4);
o.m_Ipv4IsSet = true;
}
}
std::string Pcie_devices_inner::getBlk() const
{
return m_Blk;
}
void Pcie_devices_inner::setBlk(std::string const& value)
{
m_Blk = value;
m_BlkIsSet = true;
}
bool Pcie_devices_inner::blkIsSet() const
{
return m_BlkIsSet;
}
void Pcie_devices_inner::unsetBlk()
{
m_BlkIsSet = false;
}
std::string Pcie_devices_inner::getIpv4() const
{
return m_Ipv4;
}
void Pcie_devices_inner::setIpv4(std::string const& value)
{
m_Ipv4 = value;
m_Ipv4IsSet = true;
}
bool Pcie_devices_inner::ipv4IsSet() const
{
return m_Ipv4IsSet;
}
void Pcie_devices_inner::unsetIpv4()
{
m_Ipv4IsSet = false;
}
} // namespace org::openapitools::server::model