Some checks failed
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 8m22s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 8m37s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 8m15s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 9m39s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 9m17s
Build Packages / Generate python client (push) Successful in 21s
Build Packages / Build documentation (push) Successful in 43s
Build Packages / Create release (push) Has been skipped
Build Packages / build:rpm (rocky8) (push) Successful in 7m51s
Build Packages / build:rpm (rocky9) (push) Successful in 8m45s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 7m55s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 8m22s
Build Packages / Unit tests (push) Failing after 1h5m51s
This is an UNSTABLE release and not recommended for production use (please use rc.111 instead). * jfjoch_viewer: Fix issue when HTTP sync silently disconnected when it was enabled when the broker was starting measurement. * jfjoch_broker: Add protections on time of geometry optimization and reduce rotation recalculations Reviewed-on: #25 Co-authored-by: Filip Leonarski <filip.leonarski@psi.ch> Co-committed-by: Filip Leonarski <filip.leonarski@psi.ch>
136 lines
3.9 KiB
C++
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.118
|
|
* 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
|
|
|