85 lines
2.2 KiB
C++
85 lines
2.2 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.
|
|
*/
|
|
/*
|
|
* Error_message.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef Error_message_H_
|
|
#define Error_message_H_
|
|
|
|
|
|
#include <string>
|
|
#include <nlohmann/json.hpp>
|
|
|
|
namespace org::openapitools::server::model
|
|
{
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
class Error_message
|
|
{
|
|
public:
|
|
Error_message();
|
|
virtual ~Error_message() = default;
|
|
|
|
|
|
/// <summary>
|
|
/// Validate the current data in the model. Throws a ValidationException on failure.
|
|
/// </summary>
|
|
void validate() const;
|
|
|
|
/// <summary>
|
|
/// Validate the current data in the model. Returns false on error and writes an error
|
|
/// message into the given stringstream.
|
|
/// </summary>
|
|
bool validate(std::stringstream& msg) const;
|
|
|
|
/// <summary>
|
|
/// Helper overload for validate. Used when one model stores another model and calls it's validate.
|
|
/// Not meant to be called outside that case.
|
|
/// </summary>
|
|
bool validate(std::stringstream& msg, const std::string& pathPrefix) const;
|
|
|
|
bool operator==(const Error_message& rhs) const;
|
|
bool operator!=(const Error_message& rhs) const;
|
|
|
|
/////////////////////////////////////////////
|
|
/// Error_message members
|
|
|
|
/// <summary>
|
|
/// Human readable message
|
|
/// </summary>
|
|
std::string getMsg() const;
|
|
void setMsg(std::string const& value);
|
|
/// <summary>
|
|
/// Enumerate field for automated analysis
|
|
/// </summary>
|
|
std::string getReason() const;
|
|
void setReason(std::string const& value);
|
|
|
|
friend void to_json(nlohmann::json& j, const Error_message& o);
|
|
friend void from_json(const nlohmann::json& j, Error_message& o);
|
|
protected:
|
|
std::string m_Msg;
|
|
|
|
std::string m_Reason;
|
|
|
|
|
|
};
|
|
|
|
} // namespace org::openapitools::server::model
|
|
|
|
#endif /* Error_message_H_ */
|