// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

/*!
 * @file final_annotation.hpp
 * This header file contains the declaration of the described types in the IDL file.
 *
 * This file was generated by the tool fastddsgen (version: 4.3.0).
 */

#ifndef FAST_DDS_GENERATED__FINAL_ANNOTATION_HPP
#define FAST_DDS_GENERATED__FINAL_ANNOTATION_HPP

#include <cstdint>
#include <utility>

#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#define eProsima_user_DllExport __declspec( dllexport )
#else
#define eProsima_user_DllExport
#endif  // EPROSIMA_USER_DLL_EXPORT
#else
#define eProsima_user_DllExport
#endif  // _WIN32

#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#if defined(FINAL_ANNOTATION_SOURCE)
#define FINAL_ANNOTATION_DllAPI __declspec( dllexport )
#else
#define FINAL_ANNOTATION_DllAPI __declspec( dllimport )
#endif // FINAL_ANNOTATION_SOURCE
#else
#define FINAL_ANNOTATION_DllAPI
#endif  // EPROSIMA_USER_DLL_EXPORT
#else
#define FINAL_ANNOTATION_DllAPI
#endif // _WIN32

/*!
 * @brief This class represents the structure final_ann_valid_struct defined by the user in the IDL file.
 * @ingroup final_annotation
 */
class final_ann_valid_struct
{
public:

    /*!
     * @brief Default constructor.
     */
    eProsima_user_DllExport final_ann_valid_struct()
    {
    }

    /*!
     * @brief Default destructor.
     */
    eProsima_user_DllExport ~final_ann_valid_struct()
    {
    }

    /*!
     * @brief Copy constructor.
     * @param x Reference to the object final_ann_valid_struct that will be copied.
     */
    eProsima_user_DllExport final_ann_valid_struct(
            const final_ann_valid_struct& x)
    {
                    m_first = x.m_first;

    }

    /*!
     * @brief Move constructor.
     * @param x Reference to the object final_ann_valid_struct that will be copied.
     */
    eProsima_user_DllExport final_ann_valid_struct(
            final_ann_valid_struct&& x) noexcept
    {
        m_first = x.m_first;
    }

    /*!
     * @brief Copy assignment.
     * @param x Reference to the object final_ann_valid_struct that will be copied.
     */
    eProsima_user_DllExport final_ann_valid_struct& operator =(
            const final_ann_valid_struct& x)
    {

                    m_first = x.m_first;

        return *this;
    }

    /*!
     * @brief Move assignment.
     * @param x Reference to the object final_ann_valid_struct that will be copied.
     */
    eProsima_user_DllExport final_ann_valid_struct& operator =(
            final_ann_valid_struct&& x) noexcept
    {

        m_first = x.m_first;
        return *this;
    }

    /*!
     * @brief Comparison operator.
     * @param x final_ann_valid_struct object to compare.
     */
    eProsima_user_DllExport bool operator ==(
            const final_ann_valid_struct& x) const
    {
        return (m_first == x.m_first);
    }

    /*!
     * @brief Comparison operator.
     * @param x final_ann_valid_struct object to compare.
     */
    eProsima_user_DllExport bool operator !=(
            const final_ann_valid_struct& x) const
    {
        return !(*this == x);
    }

    /*!
     * @brief This function sets a value in member first
     * @param _first New value for member first
     */
    eProsima_user_DllExport void first(
            int32_t _first)
    {
        m_first = _first;
    }

    /*!
     * @brief This function returns the value of member first
     * @return Value of member first
     */
    eProsima_user_DllExport int32_t first() const
    {
        return m_first;
    }

    /*!
     * @brief This function returns a reference to member first
     * @return Reference to member first
     */
    eProsima_user_DllExport int32_t& first()
    {
        return m_first;
    }



private:

    int32_t m_first{0};

};
/*!
 * @brief This class represents the structure final_ann_extra_parameter_struct defined by the user in the IDL file.
 * @ingroup final_annotation
 */
class final_ann_extra_parameter_struct
{
public:

    /*!
     * @brief Default constructor.
     */
    eProsima_user_DllExport final_ann_extra_parameter_struct()
    {
    }

    /*!
     * @brief Default destructor.
     */
    eProsima_user_DllExport ~final_ann_extra_parameter_struct()
    {
    }

    /*!
     * @brief Copy constructor.
     * @param x Reference to the object final_ann_extra_parameter_struct that will be copied.
     */
    eProsima_user_DllExport final_ann_extra_parameter_struct(
            const final_ann_extra_parameter_struct& x)
    {
                    m_first = x.m_first;

    }

    /*!
     * @brief Move constructor.
     * @param x Reference to the object final_ann_extra_parameter_struct that will be copied.
     */
    eProsima_user_DllExport final_ann_extra_parameter_struct(
            final_ann_extra_parameter_struct&& x) noexcept
    {
        m_first = x.m_first;
    }

    /*!
     * @brief Copy assignment.
     * @param x Reference to the object final_ann_extra_parameter_struct that will be copied.
     */
    eProsima_user_DllExport final_ann_extra_parameter_struct& operator =(
            const final_ann_extra_parameter_struct& x)
    {

                    m_first = x.m_first;

        return *this;
    }

    /*!
     * @brief Move assignment.
     * @param x Reference to the object final_ann_extra_parameter_struct that will be copied.
     */
    eProsima_user_DllExport final_ann_extra_parameter_struct& operator =(
            final_ann_extra_parameter_struct&& x) noexcept
    {

        m_first = x.m_first;
        return *this;
    }

    /*!
     * @brief Comparison operator.
     * @param x final_ann_extra_parameter_struct object to compare.
     */
    eProsima_user_DllExport bool operator ==(
            const final_ann_extra_parameter_struct& x) const
    {
        return (m_first == x.m_first);
    }

    /*!
     * @brief Comparison operator.
     * @param x final_ann_extra_parameter_struct object to compare.
     */
    eProsima_user_DllExport bool operator !=(
            const final_ann_extra_parameter_struct& x) const
    {
        return !(*this == x);
    }

    /*!
     * @brief This function sets a value in member first
     * @param _first New value for member first
     */
    eProsima_user_DllExport void first(
            int32_t _first)
    {
        m_first = _first;
    }

    /*!
     * @brief This function returns the value of member first
     * @return Value of member first
     */
    eProsima_user_DllExport int32_t first() const
    {
        return m_first;
    }

    /*!
     * @brief This function returns a reference to member first
     * @return Reference to member first
     */
    eProsima_user_DllExport int32_t& first()
    {
        return m_first;
    }



private:

    int32_t m_first{0};

};
/*!
 * @brief This class represents the structure final_ann_on_struct_member defined by the user in the IDL file.
 * @ingroup final_annotation
 */
class final_ann_on_struct_member
{
public:

    /*!
     * @brief Default constructor.
     */
    eProsima_user_DllExport final_ann_on_struct_member()
    {
    }

    /*!
     * @brief Default destructor.
     */
    eProsima_user_DllExport ~final_ann_on_struct_member()
    {
    }

    /*!
     * @brief Copy constructor.
     * @param x Reference to the object final_ann_on_struct_member that will be copied.
     */
    eProsima_user_DllExport final_ann_on_struct_member(
            const final_ann_on_struct_member& x)
    {
                    m_first = x.m_first;

    }

    /*!
     * @brief Move constructor.
     * @param x Reference to the object final_ann_on_struct_member that will be copied.
     */
    eProsima_user_DllExport final_ann_on_struct_member(
            final_ann_on_struct_member&& x) noexcept
    {
        m_first = x.m_first;
    }

    /*!
     * @brief Copy assignment.
     * @param x Reference to the object final_ann_on_struct_member that will be copied.
     */
    eProsima_user_DllExport final_ann_on_struct_member& operator =(
            const final_ann_on_struct_member& x)
    {

                    m_first = x.m_first;

        return *this;
    }

    /*!
     * @brief Move assignment.
     * @param x Reference to the object final_ann_on_struct_member that will be copied.
     */
    eProsima_user_DllExport final_ann_on_struct_member& operator =(
            final_ann_on_struct_member&& x) noexcept
    {

        m_first = x.m_first;
        return *this;
    }

    /*!
     * @brief Comparison operator.
     * @param x final_ann_on_struct_member object to compare.
     */
    eProsima_user_DllExport bool operator ==(
            const final_ann_on_struct_member& x) const
    {
        return (m_first == x.m_first);
    }

    /*!
     * @brief Comparison operator.
     * @param x final_ann_on_struct_member object to compare.
     */
    eProsima_user_DllExport bool operator !=(
            const final_ann_on_struct_member& x) const
    {
        return !(*this == x);
    }

    /*!
     * @brief This function sets a value in member first
     * @param _first New value for member first
     */
    eProsima_user_DllExport void first(
            int32_t _first)
    {
        m_first = _first;
    }

    /*!
     * @brief This function returns the value of member first
     * @return Value of member first
     */
    eProsima_user_DllExport int32_t first() const
    {
        return m_first;
    }

    /*!
     * @brief This function returns a reference to member first
     * @return Reference to member first
     */
    eProsima_user_DllExport int32_t& first()
    {
        return m_first;
    }



private:

    int32_t m_first{0};

};

#endif // _FAST_DDS_GENERATED_FINAL_ANNOTATION_HPP_


