You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1446 lines
32 KiB
C++

// 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 System.hpp
* This header file contains the declaration of the described types in the IDL file.
*
* This file was generated by the tool fastddsgen.
*/
#ifndef FAST_DDS_GENERATED__SYSTEM_HPP
#define FAST_DDS_GENERATED__SYSTEM_HPP
#include <cstdint>
#include <map>
#include <string>
#include <utility>
#include <fastcdr/cdr/fixed_size_string.hpp>
#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(SYSTEM_SOURCE)
#define SYSTEM_DllAPI __declspec( dllexport )
#else
#define SYSTEM_DllAPI __declspec( dllimport )
#endif // SYSTEM_SOURCE
#else
#define SYSTEM_DllAPI
#endif // EPROSIMA_USER_DLL_EXPORT
#else
#define SYSTEM_DllAPI
#endif // _WIN32
/*!
* @brief This class represents the structure LicencePlateReq defined by the user in the IDL file.
* @ingroup System
*/
class LicencePlateReq
{
public:
/*!
* @brief Default constructor.
*/
eProsima_user_DllExport LicencePlateReq()
{
}
/*!
* @brief Default destructor.
*/
eProsima_user_DllExport ~LicencePlateReq()
{
}
/*!
* @brief Copy constructor.
* @param x Reference to the object LicencePlateReq that will be copied.
*/
eProsima_user_DllExport LicencePlateReq(
const LicencePlateReq& x)
{
m_index = x.m_index;
m_msg = x.m_msg;
}
/*!
* @brief Move constructor.
* @param x Reference to the object LicencePlateReq that will be copied.
*/
eProsima_user_DllExport LicencePlateReq(
LicencePlateReq&& x) noexcept
{
m_index = x.m_index;
m_msg = std::move(x.m_msg);
}
/*!
* @brief Copy assignment.
* @param x Reference to the object LicencePlateReq that will be copied.
*/
eProsima_user_DllExport LicencePlateReq& operator =(
const LicencePlateReq& x)
{
m_index = x.m_index;
m_msg = x.m_msg;
return *this;
}
/*!
* @brief Move assignment.
* @param x Reference to the object LicencePlateReq that will be copied.
*/
eProsima_user_DllExport LicencePlateReq& operator =(
LicencePlateReq&& x) noexcept
{
m_index = x.m_index;
m_msg = std::move(x.m_msg);
return *this;
}
/*!
* @brief Comparison operator.
* @param x LicencePlateReq object to compare.
*/
eProsima_user_DllExport bool operator ==(
const LicencePlateReq& x) const
{
return (m_index == x.m_index &&
m_msg == x.m_msg);
}
/*!
* @brief Comparison operator.
* @param x LicencePlateReq object to compare.
*/
eProsima_user_DllExport bool operator !=(
const LicencePlateReq& x) const
{
return !(*this == x);
}
/*!
* @brief This function sets a value in member index
* @param _index New value for member index
*/
eProsima_user_DllExport void index(
uint32_t _index)
{
m_index = _index;
}
/*!
* @brief This function returns the value of member index
* @return Value of member index
*/
eProsima_user_DllExport uint32_t index() const
{
return m_index;
}
/*!
* @brief This function returns a reference to member index
* @return Reference to member index
*/
eProsima_user_DllExport uint32_t& index()
{
return m_index;
}
/*!
* @brief This function copies the value in member msg
* @param _msg New value to be copied in member msg
*/
eProsima_user_DllExport void msg(
const std::map<std::string, std::string>& _msg)
{
m_msg = _msg;
}
/*!
* @brief This function moves the value in member msg
* @param _msg New value to be moved in member msg
*/
eProsima_user_DllExport void msg(
std::map<std::string, std::string>&& _msg)
{
m_msg = std::move(_msg);
}
/*!
* @brief This function returns a constant reference to member msg
* @return Constant reference to member msg
*/
eProsima_user_DllExport const std::map<std::string, std::string>& msg() const
{
return m_msg;
}
/*!
* @brief This function returns a reference to member msg
* @return Reference to member msg
*/
eProsima_user_DllExport std::map<std::string, std::string>& msg()
{
return m_msg;
}
private:
uint32_t m_index{0};
std::map<std::string, std::string> m_msg;
};
/*!
* @brief This class represents the structure LicencePlateRsp defined by the user in the IDL file.
* @ingroup System
*/
class LicencePlateRsp
{
public:
/*!
* @brief Default constructor.
*/
eProsima_user_DllExport LicencePlateRsp()
{
}
/*!
* @brief Default destructor.
*/
eProsima_user_DllExport ~LicencePlateRsp()
{
}
/*!
* @brief Copy constructor.
* @param x Reference to the object LicencePlateRsp that will be copied.
*/
eProsima_user_DllExport LicencePlateRsp(
const LicencePlateRsp& x)
{
m_index = x.m_index;
m_licence = x.m_licence;
}
/*!
* @brief Move constructor.
* @param x Reference to the object LicencePlateRsp that will be copied.
*/
eProsima_user_DllExport LicencePlateRsp(
LicencePlateRsp&& x) noexcept
{
m_index = x.m_index;
m_licence = std::move(x.m_licence);
}
/*!
* @brief Copy assignment.
* @param x Reference to the object LicencePlateRsp that will be copied.
*/
eProsima_user_DllExport LicencePlateRsp& operator =(
const LicencePlateRsp& x)
{
m_index = x.m_index;
m_licence = x.m_licence;
return *this;
}
/*!
* @brief Move assignment.
* @param x Reference to the object LicencePlateRsp that will be copied.
*/
eProsima_user_DllExport LicencePlateRsp& operator =(
LicencePlateRsp&& x) noexcept
{
m_index = x.m_index;
m_licence = std::move(x.m_licence);
return *this;
}
/*!
* @brief Comparison operator.
* @param x LicencePlateRsp object to compare.
*/
eProsima_user_DllExport bool operator ==(
const LicencePlateRsp& x) const
{
return (m_index == x.m_index &&
m_licence == x.m_licence);
}
/*!
* @brief Comparison operator.
* @param x LicencePlateRsp object to compare.
*/
eProsima_user_DllExport bool operator !=(
const LicencePlateRsp& x) const
{
return !(*this == x);
}
/*!
* @brief This function sets a value in member index
* @param _index New value for member index
*/
eProsima_user_DllExport void index(
uint32_t _index)
{
m_index = _index;
}
/*!
* @brief This function returns the value of member index
* @return Value of member index
*/
eProsima_user_DllExport uint32_t index() const
{
return m_index;
}
/*!
* @brief This function returns a reference to member index
* @return Reference to member index
*/
eProsima_user_DllExport uint32_t& index()
{
return m_index;
}
/*!
* @brief This function copies the value in member licence
* @param _licence New value to be copied in member licence
*/
eProsima_user_DllExport void licence(
const std::string& _licence)
{
m_licence = _licence;
}
/*!
* @brief This function moves the value in member licence
* @param _licence New value to be moved in member licence
*/
eProsima_user_DllExport void licence(
std::string&& _licence)
{
m_licence = std::move(_licence);
}
/*!
* @brief This function returns a constant reference to member licence
* @return Constant reference to member licence
*/
eProsima_user_DllExport const std::string& licence() const
{
return m_licence;
}
/*!
* @brief This function returns a reference to member licence
* @return Reference to member licence
*/
eProsima_user_DllExport std::string& licence()
{
return m_licence;
}
private:
uint32_t m_index{0};
std::string m_licence;
};
/*!
* @brief This class represents the structure PrintReq defined by the user in the IDL file.
* @ingroup System
*/
class PrintReq
{
public:
/*!
* @brief Default constructor.
*/
eProsima_user_DllExport PrintReq()
{
}
/*!
* @brief Default destructor.
*/
eProsima_user_DllExport ~PrintReq()
{
}
/*!
* @brief Copy constructor.
* @param x Reference to the object PrintReq that will be copied.
*/
eProsima_user_DllExport PrintReq(
const PrintReq& x)
{
m_index = x.m_index;
m_msg = x.m_msg;
}
/*!
* @brief Move constructor.
* @param x Reference to the object PrintReq that will be copied.
*/
eProsima_user_DllExport PrintReq(
PrintReq&& x) noexcept
{
m_index = x.m_index;
m_msg = std::move(x.m_msg);
}
/*!
* @brief Copy assignment.
* @param x Reference to the object PrintReq that will be copied.
*/
eProsima_user_DllExport PrintReq& operator =(
const PrintReq& x)
{
m_index = x.m_index;
m_msg = x.m_msg;
return *this;
}
/*!
* @brief Move assignment.
* @param x Reference to the object PrintReq that will be copied.
*/
eProsima_user_DllExport PrintReq& operator =(
PrintReq&& x) noexcept
{
m_index = x.m_index;
m_msg = std::move(x.m_msg);
return *this;
}
/*!
* @brief Comparison operator.
* @param x PrintReq object to compare.
*/
eProsima_user_DllExport bool operator ==(
const PrintReq& x) const
{
return (m_index == x.m_index &&
m_msg == x.m_msg);
}
/*!
* @brief Comparison operator.
* @param x PrintReq object to compare.
*/
eProsima_user_DllExport bool operator !=(
const PrintReq& x) const
{
return !(*this == x);
}
/*!
* @brief This function sets a value in member index
* @param _index New value for member index
*/
eProsima_user_DllExport void index(
uint32_t _index)
{
m_index = _index;
}
/*!
* @brief This function returns the value of member index
* @return Value of member index
*/
eProsima_user_DllExport uint32_t index() const
{
return m_index;
}
/*!
* @brief This function returns a reference to member index
* @return Reference to member index
*/
eProsima_user_DllExport uint32_t& index()
{
return m_index;
}
/*!
* @brief This function copies the value in member msg
* @param _msg New value to be copied in member msg
*/
eProsima_user_DllExport void msg(
const std::map<std::string, std::string>& _msg)
{
m_msg = _msg;
}
/*!
* @brief This function moves the value in member msg
* @param _msg New value to be moved in member msg
*/
eProsima_user_DllExport void msg(
std::map<std::string, std::string>&& _msg)
{
m_msg = std::move(_msg);
}
/*!
* @brief This function returns a constant reference to member msg
* @return Constant reference to member msg
*/
eProsima_user_DllExport const std::map<std::string, std::string>& msg() const
{
return m_msg;
}
/*!
* @brief This function returns a reference to member msg
* @return Reference to member msg
*/
eProsima_user_DllExport std::map<std::string, std::string>& msg()
{
return m_msg;
}
private:
uint32_t m_index{0};
std::map<std::string, std::string> m_msg;
};
/*!
* @brief This class represents the structure PrintRsp defined by the user in the IDL file.
* @ingroup System
*/
class PrintRsp
{
public:
/*!
* @brief Default constructor.
*/
eProsima_user_DllExport PrintRsp()
{
}
/*!
* @brief Default destructor.
*/
eProsima_user_DllExport ~PrintRsp()
{
}
/*!
* @brief Copy constructor.
* @param x Reference to the object PrintRsp that will be copied.
*/
eProsima_user_DllExport PrintRsp(
const PrintRsp& x)
{
m_index = x.m_index;
m_msg = x.m_msg;
}
/*!
* @brief Move constructor.
* @param x Reference to the object PrintRsp that will be copied.
*/
eProsima_user_DllExport PrintRsp(
PrintRsp&& x) noexcept
{
m_index = x.m_index;
m_msg = std::move(x.m_msg);
}
/*!
* @brief Copy assignment.
* @param x Reference to the object PrintRsp that will be copied.
*/
eProsima_user_DllExport PrintRsp& operator =(
const PrintRsp& x)
{
m_index = x.m_index;
m_msg = x.m_msg;
return *this;
}
/*!
* @brief Move assignment.
* @param x Reference to the object PrintRsp that will be copied.
*/
eProsima_user_DllExport PrintRsp& operator =(
PrintRsp&& x) noexcept
{
m_index = x.m_index;
m_msg = std::move(x.m_msg);
return *this;
}
/*!
* @brief Comparison operator.
* @param x PrintRsp object to compare.
*/
eProsima_user_DllExport bool operator ==(
const PrintRsp& x) const
{
return (m_index == x.m_index &&
m_msg == x.m_msg);
}
/*!
* @brief Comparison operator.
* @param x PrintRsp object to compare.
*/
eProsima_user_DllExport bool operator !=(
const PrintRsp& x) const
{
return !(*this == x);
}
/*!
* @brief This function sets a value in member index
* @param _index New value for member index
*/
eProsima_user_DllExport void index(
uint32_t _index)
{
m_index = _index;
}
/*!
* @brief This function returns the value of member index
* @return Value of member index
*/
eProsima_user_DllExport uint32_t index() const
{
return m_index;
}
/*!
* @brief This function returns a reference to member index
* @return Reference to member index
*/
eProsima_user_DllExport uint32_t& index()
{
return m_index;
}
/*!
* @brief This function copies the value in member msg
* @param _msg New value to be copied in member msg
*/
eProsima_user_DllExport void msg(
const std::string& _msg)
{
m_msg = _msg;
}
/*!
* @brief This function moves the value in member msg
* @param _msg New value to be moved in member msg
*/
eProsima_user_DllExport void msg(
std::string&& _msg)
{
m_msg = std::move(_msg);
}
/*!
* @brief This function returns a constant reference to member msg
* @return Constant reference to member msg
*/
eProsima_user_DllExport const std::string& msg() const
{
return m_msg;
}
/*!
* @brief This function returns a reference to member msg
* @return Reference to member msg
*/
eProsima_user_DllExport std::string& msg()
{
return m_msg;
}
private:
uint32_t m_index{0};
std::string m_msg;
};
/*!
* @brief This class represents the structure WeighReq defined by the user in the IDL file.
* @ingroup System
*/
class WeighReq
{
public:
/*!
* @brief Default constructor.
*/
eProsima_user_DllExport WeighReq()
{
}
/*!
* @brief Default destructor.
*/
eProsima_user_DllExport ~WeighReq()
{
}
/*!
* @brief Copy constructor.
* @param x Reference to the object WeighReq that will be copied.
*/
eProsima_user_DllExport WeighReq(
const WeighReq& x)
{
m_index = x.m_index;
m_msg = x.m_msg;
}
/*!
* @brief Move constructor.
* @param x Reference to the object WeighReq that will be copied.
*/
eProsima_user_DllExport WeighReq(
WeighReq&& x) noexcept
{
m_index = x.m_index;
m_msg = std::move(x.m_msg);
}
/*!
* @brief Copy assignment.
* @param x Reference to the object WeighReq that will be copied.
*/
eProsima_user_DllExport WeighReq& operator =(
const WeighReq& x)
{
m_index = x.m_index;
m_msg = x.m_msg;
return *this;
}
/*!
* @brief Move assignment.
* @param x Reference to the object WeighReq that will be copied.
*/
eProsima_user_DllExport WeighReq& operator =(
WeighReq&& x) noexcept
{
m_index = x.m_index;
m_msg = std::move(x.m_msg);
return *this;
}
/*!
* @brief Comparison operator.
* @param x WeighReq object to compare.
*/
eProsima_user_DllExport bool operator ==(
const WeighReq& x) const
{
return (m_index == x.m_index &&
m_msg == x.m_msg);
}
/*!
* @brief Comparison operator.
* @param x WeighReq object to compare.
*/
eProsima_user_DllExport bool operator !=(
const WeighReq& x) const
{
return !(*this == x);
}
/*!
* @brief This function sets a value in member index
* @param _index New value for member index
*/
eProsima_user_DllExport void index(
uint32_t _index)
{
m_index = _index;
}
/*!
* @brief This function returns the value of member index
* @return Value of member index
*/
eProsima_user_DllExport uint32_t index() const
{
return m_index;
}
/*!
* @brief This function returns a reference to member index
* @return Reference to member index
*/
eProsima_user_DllExport uint32_t& index()
{
return m_index;
}
/*!
* @brief This function copies the value in member msg
* @param _msg New value to be copied in member msg
*/
eProsima_user_DllExport void msg(
const std::map<std::string, std::string>& _msg)
{
m_msg = _msg;
}
/*!
* @brief This function moves the value in member msg
* @param _msg New value to be moved in member msg
*/
eProsima_user_DllExport void msg(
std::map<std::string, std::string>&& _msg)
{
m_msg = std::move(_msg);
}
/*!
* @brief This function returns a constant reference to member msg
* @return Constant reference to member msg
*/
eProsima_user_DllExport const std::map<std::string, std::string>& msg() const
{
return m_msg;
}
/*!
* @brief This function returns a reference to member msg
* @return Reference to member msg
*/
eProsima_user_DllExport std::map<std::string, std::string>& msg()
{
return m_msg;
}
private:
uint32_t m_index{0};
std::map<std::string, std::string> m_msg;
};
/*!
* @brief This class represents the structure WeighRsp defined by the user in the IDL file.
* @ingroup System
*/
class WeighRsp
{
public:
/*!
* @brief Default constructor.
*/
eProsima_user_DllExport WeighRsp()
{
}
/*!
* @brief Default destructor.
*/
eProsima_user_DllExport ~WeighRsp()
{
}
/*!
* @brief Copy constructor.
* @param x Reference to the object WeighRsp that will be copied.
*/
eProsima_user_DllExport WeighRsp(
const WeighRsp& x)
{
m_index = x.m_index;
m_stable_weight = x.m_stable_weight;
m_instantaneous_weight = x.m_instantaneous_weight;
}
/*!
* @brief Move constructor.
* @param x Reference to the object WeighRsp that will be copied.
*/
eProsima_user_DllExport WeighRsp(
WeighRsp&& x) noexcept
{
m_index = x.m_index;
m_stable_weight = x.m_stable_weight;
m_instantaneous_weight = x.m_instantaneous_weight;
}
/*!
* @brief Copy assignment.
* @param x Reference to the object WeighRsp that will be copied.
*/
eProsima_user_DllExport WeighRsp& operator =(
const WeighRsp& x)
{
m_index = x.m_index;
m_stable_weight = x.m_stable_weight;
m_instantaneous_weight = x.m_instantaneous_weight;
return *this;
}
/*!
* @brief Move assignment.
* @param x Reference to the object WeighRsp that will be copied.
*/
eProsima_user_DllExport WeighRsp& operator =(
WeighRsp&& x) noexcept
{
m_index = x.m_index;
m_stable_weight = x.m_stable_weight;
m_instantaneous_weight = x.m_instantaneous_weight;
return *this;
}
/*!
* @brief Comparison operator.
* @param x WeighRsp object to compare.
*/
eProsima_user_DllExport bool operator ==(
const WeighRsp& x) const
{
return (m_index == x.m_index &&
m_stable_weight == x.m_stable_weight &&
m_instantaneous_weight == x.m_instantaneous_weight);
}
/*!
* @brief Comparison operator.
* @param x WeighRsp object to compare.
*/
eProsima_user_DllExport bool operator !=(
const WeighRsp& x) const
{
return !(*this == x);
}
/*!
* @brief This function sets a value in member index
* @param _index New value for member index
*/
eProsima_user_DllExport void index(
uint32_t _index)
{
m_index = _index;
}
/*!
* @brief This function returns the value of member index
* @return Value of member index
*/
eProsima_user_DllExport uint32_t index() const
{
return m_index;
}
/*!
* @brief This function returns a reference to member index
* @return Reference to member index
*/
eProsima_user_DllExport uint32_t& index()
{
return m_index;
}
/*!
* @brief This function sets a value in member stable_weight
* @param _stable_weight New value for member stable_weight
*/
eProsima_user_DllExport void stable_weight(
float _stable_weight)
{
m_stable_weight = _stable_weight;
}
/*!
* @brief This function returns the value of member stable_weight
* @return Value of member stable_weight
*/
eProsima_user_DllExport float stable_weight() const
{
return m_stable_weight;
}
/*!
* @brief This function returns a reference to member stable_weight
* @return Reference to member stable_weight
*/
eProsima_user_DllExport float& stable_weight()
{
return m_stable_weight;
}
/*!
* @brief This function sets a value in member instantaneous_weight
* @param _instantaneous_weight New value for member instantaneous_weight
*/
eProsima_user_DllExport void instantaneous_weight(
float _instantaneous_weight)
{
m_instantaneous_weight = _instantaneous_weight;
}
/*!
* @brief This function returns the value of member instantaneous_weight
* @return Value of member instantaneous_weight
*/
eProsima_user_DllExport float instantaneous_weight() const
{
return m_instantaneous_weight;
}
/*!
* @brief This function returns a reference to member instantaneous_weight
* @return Reference to member instantaneous_weight
*/
eProsima_user_DllExport float& instantaneous_weight()
{
return m_instantaneous_weight;
}
private:
uint32_t m_index{0};
float m_stable_weight{0.0};
float m_instantaneous_weight{0.0};
};
/*!
* @brief This class represents the structure IoCtrlReq defined by the user in the IDL file.
* @ingroup System
*/
class IoCtrlReq
{
public:
/*!
* @brief Default constructor.
*/
eProsima_user_DllExport IoCtrlReq()
{
}
/*!
* @brief Default destructor.
*/
eProsima_user_DllExport ~IoCtrlReq()
{
}
/*!
* @brief Copy constructor.
* @param x Reference to the object IoCtrlReq that will be copied.
*/
eProsima_user_DllExport IoCtrlReq(
const IoCtrlReq& x)
{
m_index = x.m_index;
m_msg = x.m_msg;
}
/*!
* @brief Move constructor.
* @param x Reference to the object IoCtrlReq that will be copied.
*/
eProsima_user_DllExport IoCtrlReq(
IoCtrlReq&& x) noexcept
{
m_index = x.m_index;
m_msg = std::move(x.m_msg);
}
/*!
* @brief Copy assignment.
* @param x Reference to the object IoCtrlReq that will be copied.
*/
eProsima_user_DllExport IoCtrlReq& operator =(
const IoCtrlReq& x)
{
m_index = x.m_index;
m_msg = x.m_msg;
return *this;
}
/*!
* @brief Move assignment.
* @param x Reference to the object IoCtrlReq that will be copied.
*/
eProsima_user_DllExport IoCtrlReq& operator =(
IoCtrlReq&& x) noexcept
{
m_index = x.m_index;
m_msg = std::move(x.m_msg);
return *this;
}
/*!
* @brief Comparison operator.
* @param x IoCtrlReq object to compare.
*/
eProsima_user_DllExport bool operator ==(
const IoCtrlReq& x) const
{
return (m_index == x.m_index &&
m_msg == x.m_msg);
}
/*!
* @brief Comparison operator.
* @param x IoCtrlReq object to compare.
*/
eProsima_user_DllExport bool operator !=(
const IoCtrlReq& x) const
{
return !(*this == x);
}
/*!
* @brief This function sets a value in member index
* @param _index New value for member index
*/
eProsima_user_DllExport void index(
uint32_t _index)
{
m_index = _index;
}
/*!
* @brief This function returns the value of member index
* @return Value of member index
*/
eProsima_user_DllExport uint32_t index() const
{
return m_index;
}
/*!
* @brief This function returns a reference to member index
* @return Reference to member index
*/
eProsima_user_DllExport uint32_t& index()
{
return m_index;
}
/*!
* @brief This function copies the value in member msg
* @param _msg New value to be copied in member msg
*/
eProsima_user_DllExport void msg(
const std::map<std::string, std::string>& _msg)
{
m_msg = _msg;
}
/*!
* @brief This function moves the value in member msg
* @param _msg New value to be moved in member msg
*/
eProsima_user_DllExport void msg(
std::map<std::string, std::string>&& _msg)
{
m_msg = std::move(_msg);
}
/*!
* @brief This function returns a constant reference to member msg
* @return Constant reference to member msg
*/
eProsima_user_DllExport const std::map<std::string, std::string>& msg() const
{
return m_msg;
}
/*!
* @brief This function returns a reference to member msg
* @return Reference to member msg
*/
eProsima_user_DllExport std::map<std::string, std::string>& msg()
{
return m_msg;
}
private:
uint32_t m_index{0};
std::map<std::string, std::string> m_msg;
};
/*!
* @brief This class represents the structure IoCtrlRsp defined by the user in the IDL file.
* @ingroup System
*/
class IoCtrlRsp
{
public:
/*!
* @brief Default constructor.
*/
eProsima_user_DllExport IoCtrlRsp()
{
}
/*!
* @brief Default destructor.
*/
eProsima_user_DllExport ~IoCtrlRsp()
{
}
/*!
* @brief Copy constructor.
* @param x Reference to the object IoCtrlRsp that will be copied.
*/
eProsima_user_DllExport IoCtrlRsp(
const IoCtrlRsp& x)
{
m_index = x.m_index;
m_msg = x.m_msg;
}
/*!
* @brief Move constructor.
* @param x Reference to the object IoCtrlRsp that will be copied.
*/
eProsima_user_DllExport IoCtrlRsp(
IoCtrlRsp&& x) noexcept
{
m_index = x.m_index;
m_msg = std::move(x.m_msg);
}
/*!
* @brief Copy assignment.
* @param x Reference to the object IoCtrlRsp that will be copied.
*/
eProsima_user_DllExport IoCtrlRsp& operator =(
const IoCtrlRsp& x)
{
m_index = x.m_index;
m_msg = x.m_msg;
return *this;
}
/*!
* @brief Move assignment.
* @param x Reference to the object IoCtrlRsp that will be copied.
*/
eProsima_user_DllExport IoCtrlRsp& operator =(
IoCtrlRsp&& x) noexcept
{
m_index = x.m_index;
m_msg = std::move(x.m_msg);
return *this;
}
/*!
* @brief Comparison operator.
* @param x IoCtrlRsp object to compare.
*/
eProsima_user_DllExport bool operator ==(
const IoCtrlRsp& x) const
{
return (m_index == x.m_index &&
m_msg == x.m_msg);
}
/*!
* @brief Comparison operator.
* @param x IoCtrlRsp object to compare.
*/
eProsima_user_DllExport bool operator !=(
const IoCtrlRsp& x) const
{
return !(*this == x);
}
/*!
* @brief This function sets a value in member index
* @param _index New value for member index
*/
eProsima_user_DllExport void index(
uint32_t _index)
{
m_index = _index;
}
/*!
* @brief This function returns the value of member index
* @return Value of member index
*/
eProsima_user_DllExport uint32_t index() const
{
return m_index;
}
/*!
* @brief This function returns a reference to member index
* @return Reference to member index
*/
eProsima_user_DllExport uint32_t& index()
{
return m_index;
}
/*!
* @brief This function copies the value in member msg
* @param _msg New value to be copied in member msg
*/
eProsima_user_DllExport void msg(
const std::map<std::string, std::string>& _msg)
{
m_msg = _msg;
}
/*!
* @brief This function moves the value in member msg
* @param _msg New value to be moved in member msg
*/
eProsima_user_DllExport void msg(
std::map<std::string, std::string>&& _msg)
{
m_msg = std::move(_msg);
}
/*!
* @brief This function returns a constant reference to member msg
* @return Constant reference to member msg
*/
eProsima_user_DllExport const std::map<std::string, std::string>& msg() const
{
return m_msg;
}
/*!
* @brief This function returns a reference to member msg
* @return Reference to member msg
*/
eProsima_user_DllExport std::map<std::string, std::string>& msg()
{
return m_msg;
}
private:
uint32_t m_index{0};
std::map<std::string, std::string> m_msg;
};
#endif // _FAST_DDS_GENERATED_SYSTEM_HPP_