162 lines
3.1 KiB
C++
162 lines
3.1 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_unit_cell.h"
|
|
#include "Helpers.h"
|
|
|
|
#include <sstream>
|
|
|
|
namespace org::openapitools::server::model
|
|
{
|
|
|
|
Dataset_settings_unit_cell::Dataset_settings_unit_cell()
|
|
{
|
|
m_a = 0.0f;
|
|
m_b = 0.0f;
|
|
m_c = 0.0f;
|
|
m_Alpha = 0.0f;
|
|
m_Beta = 0.0f;
|
|
m_Gamma = 0.0f;
|
|
|
|
}
|
|
|
|
void Dataset_settings_unit_cell::validate() const
|
|
{
|
|
std::stringstream msg;
|
|
if (!validate(msg))
|
|
{
|
|
throw org::openapitools::server::helpers::ValidationException(msg.str());
|
|
}
|
|
}
|
|
|
|
bool Dataset_settings_unit_cell::validate(std::stringstream& msg) const
|
|
{
|
|
return validate(msg, "");
|
|
}
|
|
|
|
bool Dataset_settings_unit_cell::validate(std::stringstream& msg, const std::string& pathPrefix) const
|
|
{
|
|
bool success = true;
|
|
const std::string _pathPrefix = pathPrefix.empty() ? "Dataset_settings_unit_cell" : pathPrefix;
|
|
|
|
|
|
return success;
|
|
}
|
|
|
|
bool Dataset_settings_unit_cell::operator==(const Dataset_settings_unit_cell& rhs) const
|
|
{
|
|
return
|
|
|
|
|
|
(getA() == rhs.getA())
|
|
&&
|
|
|
|
(getB() == rhs.getB())
|
|
&&
|
|
|
|
(getC() == rhs.getC())
|
|
&&
|
|
|
|
(getAlpha() == rhs.getAlpha())
|
|
&&
|
|
|
|
(getBeta() == rhs.getBeta())
|
|
&&
|
|
|
|
(getGamma() == rhs.getGamma())
|
|
|
|
|
|
;
|
|
}
|
|
|
|
bool Dataset_settings_unit_cell::operator!=(const Dataset_settings_unit_cell& rhs) const
|
|
{
|
|
return !(*this == rhs);
|
|
}
|
|
|
|
void to_json(nlohmann::json& j, const Dataset_settings_unit_cell& o)
|
|
{
|
|
j = nlohmann::json();
|
|
j["a"] = o.m_a;
|
|
j["b"] = o.m_b;
|
|
j["c"] = o.m_c;
|
|
j["alpha"] = o.m_Alpha;
|
|
j["beta"] = o.m_Beta;
|
|
j["gamma"] = o.m_Gamma;
|
|
|
|
}
|
|
|
|
void from_json(const nlohmann::json& j, Dataset_settings_unit_cell& o)
|
|
{
|
|
j.at("a").get_to(o.m_a);
|
|
j.at("b").get_to(o.m_b);
|
|
j.at("c").get_to(o.m_c);
|
|
j.at("alpha").get_to(o.m_Alpha);
|
|
j.at("beta").get_to(o.m_Beta);
|
|
j.at("gamma").get_to(o.m_Gamma);
|
|
|
|
}
|
|
|
|
float Dataset_settings_unit_cell::getA() const
|
|
{
|
|
return m_a;
|
|
}
|
|
void Dataset_settings_unit_cell::setA(float const value)
|
|
{
|
|
m_a = value;
|
|
}
|
|
float Dataset_settings_unit_cell::getB() const
|
|
{
|
|
return m_b;
|
|
}
|
|
void Dataset_settings_unit_cell::setB(float const value)
|
|
{
|
|
m_b = value;
|
|
}
|
|
float Dataset_settings_unit_cell::getC() const
|
|
{
|
|
return m_c;
|
|
}
|
|
void Dataset_settings_unit_cell::setC(float const value)
|
|
{
|
|
m_c = value;
|
|
}
|
|
float Dataset_settings_unit_cell::getAlpha() const
|
|
{
|
|
return m_Alpha;
|
|
}
|
|
void Dataset_settings_unit_cell::setAlpha(float const value)
|
|
{
|
|
m_Alpha = value;
|
|
}
|
|
float Dataset_settings_unit_cell::getBeta() const
|
|
{
|
|
return m_Beta;
|
|
}
|
|
void Dataset_settings_unit_cell::setBeta(float const value)
|
|
{
|
|
m_Beta = value;
|
|
}
|
|
float Dataset_settings_unit_cell::getGamma() const
|
|
{
|
|
return m_Gamma;
|
|
}
|
|
void Dataset_settings_unit_cell::setGamma(float const value)
|
|
{
|
|
m_Gamma = value;
|
|
}
|
|
|
|
|
|
} // namespace org::openapitools::server::model
|
|
|