#ifndef WAVELENGTHRANGETYPE_TYPE_HPP_INCLUDED
#define WAVELENGTHRANGETYPE_TYPE_HPP_INCLUDED

#include <iostream>
#include <memory>
#include <optional>
#include <set>
#include <string>
#include <vector>
#include <NBO/NBO/PositiveFloat_Type.h>
#include <NBO/NBO/UnitsLength_Type.h>
#include <NBO/NBO/WavelengthProfileFile.h>
#include <NBO/NBO/ENBOType.h>
#include <NBO/NBOGlobal.h>
#include <NBO/Shared/Base/NBOBaseClass.h>


namespace Inscoper::NBO {

/*!
* \brief Represents the XML complex type WavelengthRangeType.
*
* This field records the nominal Wavelength associated with the peak response rate of this device. 
*/
class NBO_EXPORT WavelengthRangeType_Type : public NBOBaseClass {

public:
	
	WavelengthRangeType_Type();
	~WavelengthRangeType_Type();

	/*!
	* \brief Cast a NBOBaseClass to a WavelengthRangeType_Type.
	*
	* \param base The base class to cast
	* \return The casted element, or nullptr if the cast fails
	*/
	static std::shared_ptr<WavelengthRangeType_Type> fromBase(NBOBaseClassPtr base);

	/*!
	* \brief Returns the class type name.
	*
	* \return The class type name
	*/
	std::string getTypeName() const override;

	/*!
	* \brief Returns the XML element name corresponding to this class.
	*
	* \return The XML element name
	*/
	std::string getXMLName() const override;

	/*!
	* \brief Returns the NBO Type corresponding to this class.
	*
	* \return The NBO Type value
	*/
	ENBOType getNBOType() const override;

	/*!
	* \brief Returns a list of all classes derived from this class.
	*
	* \return The list of derived classes
	*/
	std::vector<NBOBaseClassPtr> getChildren() const override;

	/*!
	* \brief Returns a list of all child elements contained in this class.
	*
	* \return The list of child classes
	*/
	std::vector<NBOBaseClassPtr> getSubElements() const override;

	/*!
	* \brief Populates this object from a JSON file.
	*
	* \param path The path to the JSON file
	* \param validate If true, validates constraints on value. Default is true.
	*/
	void fromJsonFile(const std::string& path, bool validate = true);

	/*!
	* \brief Populates this object from a JSON string.
	*
	* \param json_string The JSON content as a string
	* \param validate If true, validates constraints on value. Default is true.
	*/
	void fromJsonString(const std::string& json_string, bool validate = true);

	/*!
	* \brief Populates this object from a XML file.
	*
	* \param path The path to the XML file
	* \param validate If true, validates constraints on value. Default is true.
	*/
	void fromXmlFile(const std::string& path, bool validate = true);

	/*!
	* \brief Populates this object from a XML string.
	*
	* \param xml_string The XML content as a string
	* \param validate If true, validates constraints on value. Default is true.
	*/
	void fromXmlString(const std::string& xml_string, bool validate = true);

	/*!
	* \brief Serializes this object to an XML file.
	*
	* \param filename The path to the output XML file
	* \param validate If true, validates constraints on value. Default is true.
	*/
	void toXmlFile(const std::string& filename, bool validate = true) const;

	/*!
	* \brief Serializes this object to an XML string.
	*
	* \param validate If true, validates constraints on value. Default is true.
	* \return A string containing the XML representation of this object
	*/
	std::string toXmlString(bool validate = true) const;

	/*!
	* \brief Sets the value of the PeakWavelength attribute.
	*
	* This field records the nominal Wavelength associated with the peak response rate of this device. 
	*
	* \param value The value to set
	* \param validate If true, validates constraints on value. Default is true.
	*/
	void setPeakWavelength(const float& value, bool validate = true);

	/*!
	* \brief Returns the value of the PeakWavelength attribute.
	*
	* This field records the nominal Wavelength associated with the peak response rate of this device. 
	*
	* \return The value of the attribute
	*/
	float getPeakWavelength() const;

	/*!
	* \brief Resets the PeakWavelength attribute to an unset state.
	*
	* This field records the nominal Wavelength associated with the peak response rate of this device. 
	*/
	void resetPeakWavelength();

	/*!
	* \brief Checks whether the PeakWavelength attribute is present.
	*
	* This field records the nominal Wavelength associated with the peak response rate of this device. 
	*
	* \return true if the attribute has been set, false otherwise
	*/
	bool hasPeakWavelength() const;

	/*!
	* \brief Sets the value of the PeakWavelengthUnit attribute.
	*
	* No description available in the XSD standard.
	*
	* \param value The value to set
	* \param validate If true, validates constraints on value. Default is true.
	*/
	void setPeakWavelengthUnit(const Inscoper::NBO::UnitsLength_TypePtr& value, bool validate = true);

	/*!
	* \brief Returns the value of the PeakWavelengthUnit attribute.
	*
	* No description available in the XSD standard.
	*
	* \return The value of the attribute
	*/
	UnitsLength_TypePtr getPeakWavelengthUnit() const;

	/*!
	* \brief Resets the PeakWavelengthUnit attribute to an unset state.
	*
	* No description available in the XSD standard.
	*/
	void resetPeakWavelengthUnit();

	/*!
	* \brief Checks whether the optional PeakWavelengthUnit attribute is present.
	*
	* No description available in the XSD standard.
	*
	* \return true if the optional attribute has been set, false otherwise
	*/
	bool hasPeakWavelengthUnit() const;

	/*!
	* \brief Sets the value of the CutOn attribute.
	*
	* CutOn is the Wavelength below which the response rate is below 50%. In case a CutOn Wavelength is not available, such as in the case of a ShortPass or Notch configuration, please enter 000.
	*
	* \param value The value to set
	* \param validate If true, validates constraints on value. Default is true.
	*/
	void setCutOn(const Inscoper::NBO::PositiveFloat_TypePtr& value, bool validate = true);

	/*!
	* \brief Returns the value of the CutOn attribute.
	*
	* CutOn is the Wavelength below which the response rate is below 50%. In case a CutOn Wavelength is not available, such as in the case of a ShortPass or Notch configuration, please enter 000.
	*
	* \return The value of the attribute
	*/
	PositiveFloat_TypePtr getCutOn() const;

	/*!
	* \brief Resets the CutOn attribute to an unset state.
	*
	* CutOn is the Wavelength below which the response rate is below 50%. In case a CutOn Wavelength is not available, such as in the case of a ShortPass or Notch configuration, please enter 000.
	*/
	void resetCutOn();

	/*!
	* \brief Checks whether the optional CutOn attribute is present.
	*
	* CutOn is the Wavelength below which the response rate is below 50%. In case a CutOn Wavelength is not available, such as in the case of a ShortPass or Notch configuration, please enter 000.
	*
	* \return true if the optional attribute has been set, false otherwise
	*/
	bool hasCutOn() const;

	/*!
	* \brief Sets the value of the CutOnUnit attribute.
	*
	* No description available in the XSD standard.
	*
	* \param value The value to set
	* \param validate If true, validates constraints on value. Default is true.
	*/
	void setCutOnUnit(const Inscoper::NBO::UnitsLength_TypePtr& value, bool validate = true);

	/*!
	* \brief Returns the value of the CutOnUnit attribute.
	*
	* No description available in the XSD standard.
	*
	* \return The value of the attribute
	*/
	UnitsLength_TypePtr getCutOnUnit() const;

	/*!
	* \brief Resets the CutOnUnit attribute to an unset state.
	*
	* No description available in the XSD standard.
	*/
	void resetCutOnUnit();

	/*!
	* \brief Checks whether the optional CutOnUnit attribute is present.
	*
	* No description available in the XSD standard.
	*
	* \return true if the optional attribute has been set, false otherwise
	*/
	bool hasCutOnUnit() const;

	/*!
	* \brief Sets the value of the CutOff attribute.
	*
	* CutOff is the Wavelength above which the response rate is below 50%. In case a CutOff Wavelength is not available, such as in the case of a LongPass configuration, please enter 000.
	*
	* \param value The value to set
	* \param validate If true, validates constraints on value. Default is true.
	*/
	void setCutOff(const Inscoper::NBO::PositiveFloat_TypePtr& value, bool validate = true);

	/*!
	* \brief Returns the value of the CutOff attribute.
	*
	* CutOff is the Wavelength above which the response rate is below 50%. In case a CutOff Wavelength is not available, such as in the case of a LongPass configuration, please enter 000.
	*
	* \return The value of the attribute
	*/
	PositiveFloat_TypePtr getCutOff() const;

	/*!
	* \brief Resets the CutOff attribute to an unset state.
	*
	* CutOff is the Wavelength above which the response rate is below 50%. In case a CutOff Wavelength is not available, such as in the case of a LongPass configuration, please enter 000.
	*/
	void resetCutOff();

	/*!
	* \brief Checks whether the optional CutOff attribute is present.
	*
	* CutOff is the Wavelength above which the response rate is below 50%. In case a CutOff Wavelength is not available, such as in the case of a LongPass configuration, please enter 000.
	*
	* \return true if the optional attribute has been set, false otherwise
	*/
	bool hasCutOff() const;

	/*!
	* \brief Sets the value of the CutOffUnit attribute.
	*
	* No description available in the XSD standard.
	*
	* \param value The value to set
	* \param validate If true, validates constraints on value. Default is true.
	*/
	void setCutOffUnit(const Inscoper::NBO::UnitsLength_TypePtr& value, bool validate = true);

	/*!
	* \brief Returns the value of the CutOffUnit attribute.
	*
	* No description available in the XSD standard.
	*
	* \return The value of the attribute
	*/
	UnitsLength_TypePtr getCutOffUnit() const;

	/*!
	* \brief Resets the CutOffUnit attribute to an unset state.
	*
	* No description available in the XSD standard.
	*/
	void resetCutOffUnit();

	/*!
	* \brief Checks whether the optional CutOffUnit attribute is present.
	*
	* No description available in the XSD standard.
	*
	* \return true if the optional attribute has been set, false otherwise
	*/
	bool hasCutOffUnit() const;

	/*!
	* \brief Sets the list of WavelengthProfileFile elements.
	*
	* No description available in the XSD standard.
	*
	* \param value The new list of WavelengthProfileFile elements
	* \param validate If true, validates constraints on value. Default is true.
	*/
	void setWavelengthProfileFile_List(const std::vector<Inscoper::NBO::WavelengthProfileFilePtr>& value, bool validate = true);

	/*!
	* \brief Returns the list of WavelengthProfileFile elements.
	*
	* No description available in the XSD standard.
	*
	* \return The list of WavelengthProfileFile elements
	*/
	std::vector<Inscoper::NBO::WavelengthProfileFilePtr> getWavelengthProfileFile_List() const;

	/*!
	* \brief Adds a new WavelengthProfileFile element to this object.
	*
	* No description available in the XSD standard.
	*
	* \param value The element to add
	* \param validate If true, validates constraints on value. Default is true.
	*/
	void addToWavelengthProfileFile_List(const Inscoper::NBO::WavelengthProfileFilePtr& value, bool validate = true);

	/*!
	* \brief Clear the list of WavelengthProfileFile.
	*
	* No description available in the XSD standard.
	*/
	void clearWavelengthProfileFile_List();


private:
	class Impl;
	std::unique_ptr<Impl> pImpl;

    std::optional<float> PeakWavelength; // Required attribute
	UnitsLength_TypePtr PeakWavelengthUnit = nullptr; // Optional attribute
	PositiveFloat_TypePtr CutOn = nullptr; // Optional attribute
	UnitsLength_TypePtr CutOnUnit = nullptr; // Optional attribute
	PositiveFloat_TypePtr CutOff = nullptr; // Optional attribute
	UnitsLength_TypePtr CutOffUnit = nullptr; // Optional attribute
    std::vector<Inscoper::NBO::WavelengthProfileFilePtr> WavelengthProfileFile_List;
};

/*! Shared pointer for WavelengthRangeType_Type*/
typedef std::shared_ptr<WavelengthRangeType_Type> WavelengthRangeType_TypePtr;

} // namespace Inscoper::NBO

#endif // WAVELENGTHRANGETYPE_TYPE_HPP_INCLUDED