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

92 lines
1.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.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.
*/
#include "Detector_selection.h"
#include "Helpers.h"
#include <sstream>
namespace org::openapitools::server::model
{
Detector_selection::Detector_selection()
{
m_Id = 0L;
}
void Detector_selection::validate() const
{
std::stringstream msg;
if (!validate(msg))
{
throw org::openapitools::server::helpers::ValidationException(msg.str());
}
}
bool Detector_selection::validate(std::stringstream& msg) const
{
return validate(msg, "");
}
bool Detector_selection::validate(std::stringstream& msg, const std::string& pathPrefix) const
{
bool success = true;
const std::string _pathPrefix = pathPrefix.empty() ? "Detector_selection" : pathPrefix;
return success;
}
bool Detector_selection::operator==(const Detector_selection& rhs) const
{
return
(getId() == rhs.getId())
;
}
bool Detector_selection::operator!=(const Detector_selection& rhs) const
{
return !(*this == rhs);
}
void to_json(nlohmann::json& j, const Detector_selection& o)
{
j = nlohmann::json::object();
j["id"] = o.m_Id;
}
void from_json(const nlohmann::json& j, Detector_selection& o)
{
j.at("id").get_to(o.m_Id);
}
int64_t Detector_selection::getId() const
{
return m_Id;
}
void Detector_selection::setId(int64_t const value)
{
m_Id = value;
}
} // namespace org::openapitools::server::model