134 lines
2.7 KiB
C++
134 lines
2.7 KiB
C++
/**
|
|
* Jungfraujoch
|
|
* Jungfraujoch Broker Web API
|
|
*
|
|
* The version of the OpenAPI document: 1.0.1
|
|
*
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
|
|
#include "Dataset_settings_roi_sum_area.h"
|
|
#include "Helpers.h"
|
|
|
|
#include <sstream>
|
|
|
|
namespace org::openapitools::server::model
|
|
{
|
|
|
|
Dataset_settings_roi_sum_area::Dataset_settings_roi_sum_area()
|
|
{
|
|
m_X_min = 0L;
|
|
m_X_max = 0L;
|
|
m_Y_min = 0L;
|
|
m_Y_max = 0L;
|
|
|
|
}
|
|
|
|
void Dataset_settings_roi_sum_area::validate() const
|
|
{
|
|
std::stringstream msg;
|
|
if (!validate(msg))
|
|
{
|
|
throw org::openapitools::server::helpers::ValidationException(msg.str());
|
|
}
|
|
}
|
|
|
|
bool Dataset_settings_roi_sum_area::validate(std::stringstream& msg) const
|
|
{
|
|
return validate(msg, "");
|
|
}
|
|
|
|
bool Dataset_settings_roi_sum_area::validate(std::stringstream& msg, const std::string& pathPrefix) const
|
|
{
|
|
bool success = true;
|
|
const std::string _pathPrefix = pathPrefix.empty() ? "Dataset_settings_roi_sum_area" : pathPrefix;
|
|
|
|
|
|
return success;
|
|
}
|
|
|
|
bool Dataset_settings_roi_sum_area::operator==(const Dataset_settings_roi_sum_area& rhs) const
|
|
{
|
|
return
|
|
|
|
|
|
(getXMin() == rhs.getXMin())
|
|
&&
|
|
|
|
(getXMax() == rhs.getXMax())
|
|
&&
|
|
|
|
(getYMin() == rhs.getYMin())
|
|
&&
|
|
|
|
(getYMax() == rhs.getYMax())
|
|
|
|
|
|
;
|
|
}
|
|
|
|
bool Dataset_settings_roi_sum_area::operator!=(const Dataset_settings_roi_sum_area& rhs) const
|
|
{
|
|
return !(*this == rhs);
|
|
}
|
|
|
|
void to_json(nlohmann::json& j, const Dataset_settings_roi_sum_area& o)
|
|
{
|
|
j = nlohmann::json();
|
|
j["x_min"] = o.m_X_min;
|
|
j["x_max"] = o.m_X_max;
|
|
j["y_min"] = o.m_Y_min;
|
|
j["y_max"] = o.m_Y_max;
|
|
|
|
}
|
|
|
|
void from_json(const nlohmann::json& j, Dataset_settings_roi_sum_area& o)
|
|
{
|
|
j.at("x_min").get_to(o.m_X_min);
|
|
j.at("x_max").get_to(o.m_X_max);
|
|
j.at("y_min").get_to(o.m_Y_min);
|
|
j.at("y_max").get_to(o.m_Y_max);
|
|
|
|
}
|
|
|
|
int64_t Dataset_settings_roi_sum_area::getXMin() const
|
|
{
|
|
return m_X_min;
|
|
}
|
|
void Dataset_settings_roi_sum_area::setXMin(int64_t const value)
|
|
{
|
|
m_X_min = value;
|
|
}
|
|
int64_t Dataset_settings_roi_sum_area::getXMax() const
|
|
{
|
|
return m_X_max;
|
|
}
|
|
void Dataset_settings_roi_sum_area::setXMax(int64_t const value)
|
|
{
|
|
m_X_max = value;
|
|
}
|
|
int64_t Dataset_settings_roi_sum_area::getYMin() const
|
|
{
|
|
return m_Y_min;
|
|
}
|
|
void Dataset_settings_roi_sum_area::setYMin(int64_t const value)
|
|
{
|
|
m_Y_min = value;
|
|
}
|
|
int64_t Dataset_settings_roi_sum_area::getYMax() const
|
|
{
|
|
return m_Y_max;
|
|
}
|
|
void Dataset_settings_roi_sum_area::setYMax(int64_t const value)
|
|
{
|
|
m_Y_max = value;
|
|
}
|
|
|
|
|
|
} // namespace org::openapitools::server::model
|
|
|