// 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 WeighingDDSType.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__WEIGHINGSYSTEM_WEIGHINGDDSTYPE_HPP #define FAST_DDS_GENERATED__WEIGHINGSYSTEM_WEIGHINGDDSTYPE_HPP #include #include #include #include #include #include #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(WEIGHINGDDSTYPE_SOURCE) #define WEIGHINGDDSTYPE_DllAPI __declspec( dllexport ) #else #define WEIGHINGDDSTYPE_DllAPI __declspec( dllimport ) #endif // WEIGHINGDDSTYPE_SOURCE #else #define WEIGHINGDDSTYPE_DllAPI #endif // EPROSIMA_USER_DLL_EXPORT #else #define WEIGHINGDDSTYPE_DllAPI #endif // _WIN32 namespace WeighingSystem { /*! * @brief This class represents the structure ScaleInfo defined by the user in the IDL file. * @ingroup WeighingDDSType */ class ScaleInfo { public: /*! * @brief Default constructor. */ eProsima_user_DllExport ScaleInfo() { } /*! * @brief Default destructor. */ eProsima_user_DllExport ~ScaleInfo() { } /*! * @brief Copy constructor. * @param x Reference to the object ScaleInfo that will be copied. */ eProsima_user_DllExport ScaleInfo( const ScaleInfo& x) { m_HasVehicle = x.m_HasVehicle; m_WeightOK = x.m_WeightOK; m_State = x.m_State; m_Value = x.m_Value; m_StableValue = x.m_StableValue; } /*! * @brief Move constructor. * @param x Reference to the object ScaleInfo that will be copied. */ eProsima_user_DllExport ScaleInfo( ScaleInfo&& x) noexcept { m_HasVehicle = x.m_HasVehicle; m_WeightOK = x.m_WeightOK; m_State = x.m_State; m_Value = x.m_Value; m_StableValue = x.m_StableValue; } /*! * @brief Copy assignment. * @param x Reference to the object ScaleInfo that will be copied. */ eProsima_user_DllExport ScaleInfo& operator =( const ScaleInfo& x) { m_HasVehicle = x.m_HasVehicle; m_WeightOK = x.m_WeightOK; m_State = x.m_State; m_Value = x.m_Value; m_StableValue = x.m_StableValue; return *this; } /*! * @brief Move assignment. * @param x Reference to the object ScaleInfo that will be copied. */ eProsima_user_DllExport ScaleInfo& operator =( ScaleInfo&& x) noexcept { m_HasVehicle = x.m_HasVehicle; m_WeightOK = x.m_WeightOK; m_State = x.m_State; m_Value = x.m_Value; m_StableValue = x.m_StableValue; return *this; } /*! * @brief Comparison operator. * @param x ScaleInfo object to compare. */ eProsima_user_DllExport bool operator ==( const ScaleInfo& x) const { return (m_HasVehicle == x.m_HasVehicle && m_WeightOK == x.m_WeightOK && m_State == x.m_State && m_Value == x.m_Value && m_StableValue == x.m_StableValue); } /*! * @brief Comparison operator. * @param x ScaleInfo object to compare. */ eProsima_user_DllExport bool operator !=( const ScaleInfo& x) const { return !(*this == x); } /*! * @brief This function sets a value in member HasVehicle * @param _HasVehicle New value for member HasVehicle */ eProsima_user_DllExport void HasVehicle( bool _HasVehicle) { m_HasVehicle = _HasVehicle; } /*! * @brief This function returns the value of member HasVehicle * @return Value of member HasVehicle */ eProsima_user_DllExport bool HasVehicle() const { return m_HasVehicle; } /*! * @brief This function returns a reference to member HasVehicle * @return Reference to member HasVehicle */ eProsima_user_DllExport bool& HasVehicle() { return m_HasVehicle; } /*! * @brief This function sets a value in member WeightOK * @param _WeightOK New value for member WeightOK */ eProsima_user_DllExport void WeightOK( bool _WeightOK) { m_WeightOK = _WeightOK; } /*! * @brief This function returns the value of member WeightOK * @return Value of member WeightOK */ eProsima_user_DllExport bool WeightOK() const { return m_WeightOK; } /*! * @brief This function returns a reference to member WeightOK * @return Reference to member WeightOK */ eProsima_user_DllExport bool& WeightOK() { return m_WeightOK; } /*! * @brief This function sets a value in member State * @param _State New value for member State */ eProsima_user_DllExport void State( bool _State) { m_State = _State; } /*! * @brief This function returns the value of member State * @return Value of member State */ eProsima_user_DllExport bool State() const { return m_State; } /*! * @brief This function returns a reference to member State * @return Reference to member State */ eProsima_user_DllExport bool& State() { return m_State; } /*! * @brief This function sets a value in member Value * @param _Value New value for member Value */ eProsima_user_DllExport void Value( float _Value) { m_Value = _Value; } /*! * @brief This function returns the value of member Value * @return Value of member Value */ eProsima_user_DllExport float Value() const { return m_Value; } /*! * @brief This function returns a reference to member Value * @return Reference to member Value */ eProsima_user_DllExport float& Value() { return m_Value; } /*! * @brief This function sets a value in member StableValue * @param _StableValue New value for member StableValue */ eProsima_user_DllExport void StableValue( float _StableValue) { m_StableValue = _StableValue; } /*! * @brief This function returns the value of member StableValue * @return Value of member StableValue */ eProsima_user_DllExport float StableValue() const { return m_StableValue; } /*! * @brief This function returns a reference to member StableValue * @return Reference to member StableValue */ eProsima_user_DllExport float& StableValue() { return m_StableValue; } private: bool m_HasVehicle{false}; bool m_WeightOK{false}; bool m_State{false}; float m_Value{0.0}; float m_StableValue{0.0}; }; /*! * @brief This class represents the structure ScaleCommand defined by the user in the IDL file. * @ingroup WeighingDDSType */ class ScaleCommand { public: /*! * @brief Default constructor. */ eProsima_user_DllExport ScaleCommand() { } /*! * @brief Default destructor. */ eProsima_user_DllExport ~ScaleCommand() { } /*! * @brief Copy constructor. * @param x Reference to the object ScaleCommand that will be copied. */ eProsima_user_DllExport ScaleCommand( const ScaleCommand& x) { m_Enable = x.m_Enable; m_ResetZero = x.m_ResetZero; } /*! * @brief Move constructor. * @param x Reference to the object ScaleCommand that will be copied. */ eProsima_user_DllExport ScaleCommand( ScaleCommand&& x) noexcept { m_Enable = x.m_Enable; m_ResetZero = x.m_ResetZero; } /*! * @brief Copy assignment. * @param x Reference to the object ScaleCommand that will be copied. */ eProsima_user_DllExport ScaleCommand& operator =( const ScaleCommand& x) { m_Enable = x.m_Enable; m_ResetZero = x.m_ResetZero; return *this; } /*! * @brief Move assignment. * @param x Reference to the object ScaleCommand that will be copied. */ eProsima_user_DllExport ScaleCommand& operator =( ScaleCommand&& x) noexcept { m_Enable = x.m_Enable; m_ResetZero = x.m_ResetZero; return *this; } /*! * @brief Comparison operator. * @param x ScaleCommand object to compare. */ eProsima_user_DllExport bool operator ==( const ScaleCommand& x) const { return (m_Enable == x.m_Enable && m_ResetZero == x.m_ResetZero); } /*! * @brief Comparison operator. * @param x ScaleCommand object to compare. */ eProsima_user_DllExport bool operator !=( const ScaleCommand& x) const { return !(*this == x); } /*! * @brief This function sets a value in member Enable * @param _Enable New value for member Enable */ eProsima_user_DllExport void Enable( bool _Enable) { m_Enable = _Enable; } /*! * @brief This function returns the value of member Enable * @return Value of member Enable */ eProsima_user_DllExport bool Enable() const { return m_Enable; } /*! * @brief This function returns a reference to member Enable * @return Reference to member Enable */ eProsima_user_DllExport bool& Enable() { return m_Enable; } /*! * @brief This function sets a value in member ResetZero * @param _ResetZero New value for member ResetZero */ eProsima_user_DllExport void ResetZero( int32_t _ResetZero) { m_ResetZero = _ResetZero; } /*! * @brief This function returns the value of member ResetZero * @return Value of member ResetZero */ eProsima_user_DllExport int32_t ResetZero() const { return m_ResetZero; } /*! * @brief This function returns a reference to member ResetZero * @return Reference to member ResetZero */ eProsima_user_DllExport int32_t& ResetZero() { return m_ResetZero; } private: bool m_Enable{false}; int32_t m_ResetZero{0}; }; /*! * @brief This class represents the structure WeightInfoOk defined by the user in the IDL file. * @ingroup WeighingDDSType */ class WeightInfoOk { public: /*! * @brief Default constructor. */ eProsima_user_DllExport WeightInfoOk() { } /*! * @brief Default destructor. */ eProsima_user_DllExport ~WeightInfoOk() { } /*! * @brief Copy constructor. * @param x Reference to the object WeightInfoOk that will be copied. */ eProsima_user_DllExport WeightInfoOk( const WeightInfoOk& x) { m_GrossDeviceID = x.m_GrossDeviceID; m_GrossDeviceName = x.m_GrossDeviceName; m_GrossDeviceType = x.m_GrossDeviceType; m_TareDeviceID = x.m_TareDeviceID; m_TareDeviceName = x.m_TareDeviceName; m_TareDeviceType = x.m_TareDeviceType; m_EnterpriseName = x.m_EnterpriseName; m_BillNumber = x.m_BillNumber; m_CarNumber = x.m_CarNumber; m_Supplier = x.m_Supplier; m_GoodsType = x.m_GoodsType; m_GrossWeight = x.m_GrossWeight; m_GrossTime = x.m_GrossTime; m_GrossOperater = x.m_GrossOperater; m_Tare = x.m_Tare; m_TareTime = x.m_TareTime; m_TareOperater = x.m_TareOperater; m_Suttle = x.m_Suttle; m_duduction1 = x.m_duduction1; m_duduction2 = x.m_duduction2; m_duduction3 = x.m_duduction3; m_INCoalYard = x.m_INCoalYard; m_OutCoalYard = x.m_OutCoalYard; m_BatchNumber = x.m_BatchNumber; m_Warning = x.m_Warning; m_Tips = x.m_Tips; m_TicketType = x.m_TicketType; m_IsPrintTicker = x.m_IsPrintTicker; m_OrderNumber = x.m_OrderNumber; m_VehicleAndVesselNumber = x.m_VehicleAndVesselNumber; m_ReceiveCompany = x.m_ReceiveCompany; m_TransportCompany = x.m_TransportCompany; } /*! * @brief Move constructor. * @param x Reference to the object WeightInfoOk that will be copied. */ eProsima_user_DllExport WeightInfoOk( WeightInfoOk&& x) noexcept { m_GrossDeviceID = x.m_GrossDeviceID; m_GrossDeviceName = std::move(x.m_GrossDeviceName); m_GrossDeviceType = std::move(x.m_GrossDeviceType); m_TareDeviceID = x.m_TareDeviceID; m_TareDeviceName = std::move(x.m_TareDeviceName); m_TareDeviceType = std::move(x.m_TareDeviceType); m_EnterpriseName = std::move(x.m_EnterpriseName); m_BillNumber = std::move(x.m_BillNumber); m_CarNumber = std::move(x.m_CarNumber); m_Supplier = std::move(x.m_Supplier); m_GoodsType = std::move(x.m_GoodsType); m_GrossWeight = x.m_GrossWeight; m_GrossTime = std::move(x.m_GrossTime); m_GrossOperater = std::move(x.m_GrossOperater); m_Tare = x.m_Tare; m_TareTime = std::move(x.m_TareTime); m_TareOperater = std::move(x.m_TareOperater); m_Suttle = x.m_Suttle; m_duduction1 = x.m_duduction1; m_duduction2 = x.m_duduction2; m_duduction3 = x.m_duduction3; m_INCoalYard = std::move(x.m_INCoalYard); m_OutCoalYard = std::move(x.m_OutCoalYard); m_BatchNumber = std::move(x.m_BatchNumber); m_Warning = std::move(x.m_Warning); m_Tips = std::move(x.m_Tips); m_TicketType = std::move(x.m_TicketType); m_IsPrintTicker = x.m_IsPrintTicker; m_OrderNumber = std::move(x.m_OrderNumber); m_VehicleAndVesselNumber = std::move(x.m_VehicleAndVesselNumber); m_ReceiveCompany = std::move(x.m_ReceiveCompany); m_TransportCompany = std::move(x.m_TransportCompany); } /*! * @brief Copy assignment. * @param x Reference to the object WeightInfoOk that will be copied. */ eProsima_user_DllExport WeightInfoOk& operator =( const WeightInfoOk& x) { m_GrossDeviceID = x.m_GrossDeviceID; m_GrossDeviceName = x.m_GrossDeviceName; m_GrossDeviceType = x.m_GrossDeviceType; m_TareDeviceID = x.m_TareDeviceID; m_TareDeviceName = x.m_TareDeviceName; m_TareDeviceType = x.m_TareDeviceType; m_EnterpriseName = x.m_EnterpriseName; m_BillNumber = x.m_BillNumber; m_CarNumber = x.m_CarNumber; m_Supplier = x.m_Supplier; m_GoodsType = x.m_GoodsType; m_GrossWeight = x.m_GrossWeight; m_GrossTime = x.m_GrossTime; m_GrossOperater = x.m_GrossOperater; m_Tare = x.m_Tare; m_TareTime = x.m_TareTime; m_TareOperater = x.m_TareOperater; m_Suttle = x.m_Suttle; m_duduction1 = x.m_duduction1; m_duduction2 = x.m_duduction2; m_duduction3 = x.m_duduction3; m_INCoalYard = x.m_INCoalYard; m_OutCoalYard = x.m_OutCoalYard; m_BatchNumber = x.m_BatchNumber; m_Warning = x.m_Warning; m_Tips = x.m_Tips; m_TicketType = x.m_TicketType; m_IsPrintTicker = x.m_IsPrintTicker; m_OrderNumber = x.m_OrderNumber; m_VehicleAndVesselNumber = x.m_VehicleAndVesselNumber; m_ReceiveCompany = x.m_ReceiveCompany; m_TransportCompany = x.m_TransportCompany; return *this; } /*! * @brief Move assignment. * @param x Reference to the object WeightInfoOk that will be copied. */ eProsima_user_DllExport WeightInfoOk& operator =( WeightInfoOk&& x) noexcept { m_GrossDeviceID = x.m_GrossDeviceID; m_GrossDeviceName = std::move(x.m_GrossDeviceName); m_GrossDeviceType = std::move(x.m_GrossDeviceType); m_TareDeviceID = x.m_TareDeviceID; m_TareDeviceName = std::move(x.m_TareDeviceName); m_TareDeviceType = std::move(x.m_TareDeviceType); m_EnterpriseName = std::move(x.m_EnterpriseName); m_BillNumber = std::move(x.m_BillNumber); m_CarNumber = std::move(x.m_CarNumber); m_Supplier = std::move(x.m_Supplier); m_GoodsType = std::move(x.m_GoodsType); m_GrossWeight = x.m_GrossWeight; m_GrossTime = std::move(x.m_GrossTime); m_GrossOperater = std::move(x.m_GrossOperater); m_Tare = x.m_Tare; m_TareTime = std::move(x.m_TareTime); m_TareOperater = std::move(x.m_TareOperater); m_Suttle = x.m_Suttle; m_duduction1 = x.m_duduction1; m_duduction2 = x.m_duduction2; m_duduction3 = x.m_duduction3; m_INCoalYard = std::move(x.m_INCoalYard); m_OutCoalYard = std::move(x.m_OutCoalYard); m_BatchNumber = std::move(x.m_BatchNumber); m_Warning = std::move(x.m_Warning); m_Tips = std::move(x.m_Tips); m_TicketType = std::move(x.m_TicketType); m_IsPrintTicker = x.m_IsPrintTicker; m_OrderNumber = std::move(x.m_OrderNumber); m_VehicleAndVesselNumber = std::move(x.m_VehicleAndVesselNumber); m_ReceiveCompany = std::move(x.m_ReceiveCompany); m_TransportCompany = std::move(x.m_TransportCompany); return *this; } /*! * @brief Comparison operator. * @param x WeightInfoOk object to compare. */ eProsima_user_DllExport bool operator ==( const WeightInfoOk& x) const { return (m_GrossDeviceID == x.m_GrossDeviceID && m_GrossDeviceName == x.m_GrossDeviceName && m_GrossDeviceType == x.m_GrossDeviceType && m_TareDeviceID == x.m_TareDeviceID && m_TareDeviceName == x.m_TareDeviceName && m_TareDeviceType == x.m_TareDeviceType && m_EnterpriseName == x.m_EnterpriseName && m_BillNumber == x.m_BillNumber && m_CarNumber == x.m_CarNumber && m_Supplier == x.m_Supplier && m_GoodsType == x.m_GoodsType && m_GrossWeight == x.m_GrossWeight && m_GrossTime == x.m_GrossTime && m_GrossOperater == x.m_GrossOperater && m_Tare == x.m_Tare && m_TareTime == x.m_TareTime && m_TareOperater == x.m_TareOperater && m_Suttle == x.m_Suttle && m_duduction1 == x.m_duduction1 && m_duduction2 == x.m_duduction2 && m_duduction3 == x.m_duduction3 && m_INCoalYard == x.m_INCoalYard && m_OutCoalYard == x.m_OutCoalYard && m_BatchNumber == x.m_BatchNumber && m_Warning == x.m_Warning && m_Tips == x.m_Tips && m_TicketType == x.m_TicketType && m_IsPrintTicker == x.m_IsPrintTicker && m_OrderNumber == x.m_OrderNumber && m_VehicleAndVesselNumber == x.m_VehicleAndVesselNumber && m_ReceiveCompany == x.m_ReceiveCompany && m_TransportCompany == x.m_TransportCompany); } /*! * @brief Comparison operator. * @param x WeightInfoOk object to compare. */ eProsima_user_DllExport bool operator !=( const WeightInfoOk& x) const { return !(*this == x); } /*! * @brief This function sets a value in member GrossDeviceID * @param _GrossDeviceID New value for member GrossDeviceID */ eProsima_user_DllExport void GrossDeviceID( int32_t _GrossDeviceID) { m_GrossDeviceID = _GrossDeviceID; } /*! * @brief This function returns the value of member GrossDeviceID * @return Value of member GrossDeviceID */ eProsima_user_DllExport int32_t GrossDeviceID() const { return m_GrossDeviceID; } /*! * @brief This function returns a reference to member GrossDeviceID * @return Reference to member GrossDeviceID */ eProsima_user_DllExport int32_t& GrossDeviceID() { return m_GrossDeviceID; } /*! * @brief This function copies the value in member GrossDeviceName * @param _GrossDeviceName New value to be copied in member GrossDeviceName */ eProsima_user_DllExport void GrossDeviceName( const std::string& _GrossDeviceName) { m_GrossDeviceName = _GrossDeviceName; } /*! * @brief This function moves the value in member GrossDeviceName * @param _GrossDeviceName New value to be moved in member GrossDeviceName */ eProsima_user_DllExport void GrossDeviceName( std::string&& _GrossDeviceName) { m_GrossDeviceName = std::move(_GrossDeviceName); } /*! * @brief This function returns a constant reference to member GrossDeviceName * @return Constant reference to member GrossDeviceName */ eProsima_user_DllExport const std::string& GrossDeviceName() const { return m_GrossDeviceName; } /*! * @brief This function returns a reference to member GrossDeviceName * @return Reference to member GrossDeviceName */ eProsima_user_DllExport std::string& GrossDeviceName() { return m_GrossDeviceName; } /*! * @brief This function copies the value in member GrossDeviceType * @param _GrossDeviceType New value to be copied in member GrossDeviceType */ eProsima_user_DllExport void GrossDeviceType( const std::string& _GrossDeviceType) { m_GrossDeviceType = _GrossDeviceType; } /*! * @brief This function moves the value in member GrossDeviceType * @param _GrossDeviceType New value to be moved in member GrossDeviceType */ eProsima_user_DllExport void GrossDeviceType( std::string&& _GrossDeviceType) { m_GrossDeviceType = std::move(_GrossDeviceType); } /*! * @brief This function returns a constant reference to member GrossDeviceType * @return Constant reference to member GrossDeviceType */ eProsima_user_DllExport const std::string& GrossDeviceType() const { return m_GrossDeviceType; } /*! * @brief This function returns a reference to member GrossDeviceType * @return Reference to member GrossDeviceType */ eProsima_user_DllExport std::string& GrossDeviceType() { return m_GrossDeviceType; } /*! * @brief This function sets a value in member TareDeviceID * @param _TareDeviceID New value for member TareDeviceID */ eProsima_user_DllExport void TareDeviceID( int32_t _TareDeviceID) { m_TareDeviceID = _TareDeviceID; } /*! * @brief This function returns the value of member TareDeviceID * @return Value of member TareDeviceID */ eProsima_user_DllExport int32_t TareDeviceID() const { return m_TareDeviceID; } /*! * @brief This function returns a reference to member TareDeviceID * @return Reference to member TareDeviceID */ eProsima_user_DllExport int32_t& TareDeviceID() { return m_TareDeviceID; } /*! * @brief This function copies the value in member TareDeviceName * @param _TareDeviceName New value to be copied in member TareDeviceName */ eProsima_user_DllExport void TareDeviceName( const std::string& _TareDeviceName) { m_TareDeviceName = _TareDeviceName; } /*! * @brief This function moves the value in member TareDeviceName * @param _TareDeviceName New value to be moved in member TareDeviceName */ eProsima_user_DllExport void TareDeviceName( std::string&& _TareDeviceName) { m_TareDeviceName = std::move(_TareDeviceName); } /*! * @brief This function returns a constant reference to member TareDeviceName * @return Constant reference to member TareDeviceName */ eProsima_user_DllExport const std::string& TareDeviceName() const { return m_TareDeviceName; } /*! * @brief This function returns a reference to member TareDeviceName * @return Reference to member TareDeviceName */ eProsima_user_DllExport std::string& TareDeviceName() { return m_TareDeviceName; } /*! * @brief This function copies the value in member TareDeviceType * @param _TareDeviceType New value to be copied in member TareDeviceType */ eProsima_user_DllExport void TareDeviceType( const std::string& _TareDeviceType) { m_TareDeviceType = _TareDeviceType; } /*! * @brief This function moves the value in member TareDeviceType * @param _TareDeviceType New value to be moved in member TareDeviceType */ eProsima_user_DllExport void TareDeviceType( std::string&& _TareDeviceType) { m_TareDeviceType = std::move(_TareDeviceType); } /*! * @brief This function returns a constant reference to member TareDeviceType * @return Constant reference to member TareDeviceType */ eProsima_user_DllExport const std::string& TareDeviceType() const { return m_TareDeviceType; } /*! * @brief This function returns a reference to member TareDeviceType * @return Reference to member TareDeviceType */ eProsima_user_DllExport std::string& TareDeviceType() { return m_TareDeviceType; } /*! * @brief This function copies the value in member EnterpriseName * @param _EnterpriseName New value to be copied in member EnterpriseName */ eProsima_user_DllExport void EnterpriseName( const std::string& _EnterpriseName) { m_EnterpriseName = _EnterpriseName; } /*! * @brief This function moves the value in member EnterpriseName * @param _EnterpriseName New value to be moved in member EnterpriseName */ eProsima_user_DllExport void EnterpriseName( std::string&& _EnterpriseName) { m_EnterpriseName = std::move(_EnterpriseName); } /*! * @brief This function returns a constant reference to member EnterpriseName * @return Constant reference to member EnterpriseName */ eProsima_user_DllExport const std::string& EnterpriseName() const { return m_EnterpriseName; } /*! * @brief This function returns a reference to member EnterpriseName * @return Reference to member EnterpriseName */ eProsima_user_DllExport std::string& EnterpriseName() { return m_EnterpriseName; } /*! * @brief This function copies the value in member BillNumber * @param _BillNumber New value to be copied in member BillNumber */ eProsima_user_DllExport void BillNumber( const std::string& _BillNumber) { m_BillNumber = _BillNumber; } /*! * @brief This function moves the value in member BillNumber * @param _BillNumber New value to be moved in member BillNumber */ eProsima_user_DllExport void BillNumber( std::string&& _BillNumber) { m_BillNumber = std::move(_BillNumber); } /*! * @brief This function returns a constant reference to member BillNumber * @return Constant reference to member BillNumber */ eProsima_user_DllExport const std::string& BillNumber() const { return m_BillNumber; } /*! * @brief This function returns a reference to member BillNumber * @return Reference to member BillNumber */ eProsima_user_DllExport std::string& BillNumber() { return m_BillNumber; } /*! * @brief This function copies the value in member CarNumber * @param _CarNumber New value to be copied in member CarNumber */ eProsima_user_DllExport void CarNumber( const std::string& _CarNumber) { m_CarNumber = _CarNumber; } /*! * @brief This function moves the value in member CarNumber * @param _CarNumber New value to be moved in member CarNumber */ eProsima_user_DllExport void CarNumber( std::string&& _CarNumber) { m_CarNumber = std::move(_CarNumber); } /*! * @brief This function returns a constant reference to member CarNumber * @return Constant reference to member CarNumber */ eProsima_user_DllExport const std::string& CarNumber() const { return m_CarNumber; } /*! * @brief This function returns a reference to member CarNumber * @return Reference to member CarNumber */ eProsima_user_DllExport std::string& CarNumber() { return m_CarNumber; } /*! * @brief This function copies the value in member Supplier * @param _Supplier New value to be copied in member Supplier */ eProsima_user_DllExport void Supplier( const std::string& _Supplier) { m_Supplier = _Supplier; } /*! * @brief This function moves the value in member Supplier * @param _Supplier New value to be moved in member Supplier */ eProsima_user_DllExport void Supplier( std::string&& _Supplier) { m_Supplier = std::move(_Supplier); } /*! * @brief This function returns a constant reference to member Supplier * @return Constant reference to member Supplier */ eProsima_user_DllExport const std::string& Supplier() const { return m_Supplier; } /*! * @brief This function returns a reference to member Supplier * @return Reference to member Supplier */ eProsima_user_DllExport std::string& Supplier() { return m_Supplier; } /*! * @brief This function copies the value in member GoodsType * @param _GoodsType New value to be copied in member GoodsType */ eProsima_user_DllExport void GoodsType( const std::string& _GoodsType) { m_GoodsType = _GoodsType; } /*! * @brief This function moves the value in member GoodsType * @param _GoodsType New value to be moved in member GoodsType */ eProsima_user_DllExport void GoodsType( std::string&& _GoodsType) { m_GoodsType = std::move(_GoodsType); } /*! * @brief This function returns a constant reference to member GoodsType * @return Constant reference to member GoodsType */ eProsima_user_DllExport const std::string& GoodsType() const { return m_GoodsType; } /*! * @brief This function returns a reference to member GoodsType * @return Reference to member GoodsType */ eProsima_user_DllExport std::string& GoodsType() { return m_GoodsType; } /*! * @brief This function sets a value in member GrossWeight * @param _GrossWeight New value for member GrossWeight */ eProsima_user_DllExport void GrossWeight( float _GrossWeight) { m_GrossWeight = _GrossWeight; } /*! * @brief This function returns the value of member GrossWeight * @return Value of member GrossWeight */ eProsima_user_DllExport float GrossWeight() const { return m_GrossWeight; } /*! * @brief This function returns a reference to member GrossWeight * @return Reference to member GrossWeight */ eProsima_user_DllExport float& GrossWeight() { return m_GrossWeight; } /*! * @brief This function copies the value in member GrossTime * @param _GrossTime New value to be copied in member GrossTime */ eProsima_user_DllExport void GrossTime( const std::string& _GrossTime) { m_GrossTime = _GrossTime; } /*! * @brief This function moves the value in member GrossTime * @param _GrossTime New value to be moved in member GrossTime */ eProsima_user_DllExport void GrossTime( std::string&& _GrossTime) { m_GrossTime = std::move(_GrossTime); } /*! * @brief This function returns a constant reference to member GrossTime * @return Constant reference to member GrossTime */ eProsima_user_DllExport const std::string& GrossTime() const { return m_GrossTime; } /*! * @brief This function returns a reference to member GrossTime * @return Reference to member GrossTime */ eProsima_user_DllExport std::string& GrossTime() { return m_GrossTime; } /*! * @brief This function copies the value in member GrossOperater * @param _GrossOperater New value to be copied in member GrossOperater */ eProsima_user_DllExport void GrossOperater( const std::string& _GrossOperater) { m_GrossOperater = _GrossOperater; } /*! * @brief This function moves the value in member GrossOperater * @param _GrossOperater New value to be moved in member GrossOperater */ eProsima_user_DllExport void GrossOperater( std::string&& _GrossOperater) { m_GrossOperater = std::move(_GrossOperater); } /*! * @brief This function returns a constant reference to member GrossOperater * @return Constant reference to member GrossOperater */ eProsima_user_DllExport const std::string& GrossOperater() const { return m_GrossOperater; } /*! * @brief This function returns a reference to member GrossOperater * @return Reference to member GrossOperater */ eProsima_user_DllExport std::string& GrossOperater() { return m_GrossOperater; } /*! * @brief This function sets a value in member Tare * @param _Tare New value for member Tare */ eProsima_user_DllExport void Tare( float _Tare) { m_Tare = _Tare; } /*! * @brief This function returns the value of member Tare * @return Value of member Tare */ eProsima_user_DllExport float Tare() const { return m_Tare; } /*! * @brief This function returns a reference to member Tare * @return Reference to member Tare */ eProsima_user_DllExport float& Tare() { return m_Tare; } /*! * @brief This function copies the value in member TareTime * @param _TareTime New value to be copied in member TareTime */ eProsima_user_DllExport void TareTime( const std::string& _TareTime) { m_TareTime = _TareTime; } /*! * @brief This function moves the value in member TareTime * @param _TareTime New value to be moved in member TareTime */ eProsima_user_DllExport void TareTime( std::string&& _TareTime) { m_TareTime = std::move(_TareTime); } /*! * @brief This function returns a constant reference to member TareTime * @return Constant reference to member TareTime */ eProsima_user_DllExport const std::string& TareTime() const { return m_TareTime; } /*! * @brief This function returns a reference to member TareTime * @return Reference to member TareTime */ eProsima_user_DllExport std::string& TareTime() { return m_TareTime; } /*! * @brief This function copies the value in member TareOperater * @param _TareOperater New value to be copied in member TareOperater */ eProsima_user_DllExport void TareOperater( const std::string& _TareOperater) { m_TareOperater = _TareOperater; } /*! * @brief This function moves the value in member TareOperater * @param _TareOperater New value to be moved in member TareOperater */ eProsima_user_DllExport void TareOperater( std::string&& _TareOperater) { m_TareOperater = std::move(_TareOperater); } /*! * @brief This function returns a constant reference to member TareOperater * @return Constant reference to member TareOperater */ eProsima_user_DllExport const std::string& TareOperater() const { return m_TareOperater; } /*! * @brief This function returns a reference to member TareOperater * @return Reference to member TareOperater */ eProsima_user_DllExport std::string& TareOperater() { return m_TareOperater; } /*! * @brief This function sets a value in member Suttle * @param _Suttle New value for member Suttle */ eProsima_user_DllExport void Suttle( float _Suttle) { m_Suttle = _Suttle; } /*! * @brief This function returns the value of member Suttle * @return Value of member Suttle */ eProsima_user_DllExport float Suttle() const { return m_Suttle; } /*! * @brief This function returns a reference to member Suttle * @return Reference to member Suttle */ eProsima_user_DllExport float& Suttle() { return m_Suttle; } /*! * @brief This function sets a value in member duduction1 * @param _duduction1 New value for member duduction1 */ eProsima_user_DllExport void duduction1( float _duduction1) { m_duduction1 = _duduction1; } /*! * @brief This function returns the value of member duduction1 * @return Value of member duduction1 */ eProsima_user_DllExport float duduction1() const { return m_duduction1; } /*! * @brief This function returns a reference to member duduction1 * @return Reference to member duduction1 */ eProsima_user_DllExport float& duduction1() { return m_duduction1; } /*! * @brief This function sets a value in member duduction2 * @param _duduction2 New value for member duduction2 */ eProsima_user_DllExport void duduction2( float _duduction2) { m_duduction2 = _duduction2; } /*! * @brief This function returns the value of member duduction2 * @return Value of member duduction2 */ eProsima_user_DllExport float duduction2() const { return m_duduction2; } /*! * @brief This function returns a reference to member duduction2 * @return Reference to member duduction2 */ eProsima_user_DllExport float& duduction2() { return m_duduction2; } /*! * @brief This function sets a value in member duduction3 * @param _duduction3 New value for member duduction3 */ eProsima_user_DllExport void duduction3( float _duduction3) { m_duduction3 = _duduction3; } /*! * @brief This function returns the value of member duduction3 * @return Value of member duduction3 */ eProsima_user_DllExport float duduction3() const { return m_duduction3; } /*! * @brief This function returns a reference to member duduction3 * @return Reference to member duduction3 */ eProsima_user_DllExport float& duduction3() { return m_duduction3; } /*! * @brief This function copies the value in member INCoalYard * @param _INCoalYard New value to be copied in member INCoalYard */ eProsima_user_DllExport void INCoalYard( const std::string& _INCoalYard) { m_INCoalYard = _INCoalYard; } /*! * @brief This function moves the value in member INCoalYard * @param _INCoalYard New value to be moved in member INCoalYard */ eProsima_user_DllExport void INCoalYard( std::string&& _INCoalYard) { m_INCoalYard = std::move(_INCoalYard); } /*! * @brief This function returns a constant reference to member INCoalYard * @return Constant reference to member INCoalYard */ eProsima_user_DllExport const std::string& INCoalYard() const { return m_INCoalYard; } /*! * @brief This function returns a reference to member INCoalYard * @return Reference to member INCoalYard */ eProsima_user_DllExport std::string& INCoalYard() { return m_INCoalYard; } /*! * @brief This function copies the value in member OutCoalYard * @param _OutCoalYard New value to be copied in member OutCoalYard */ eProsima_user_DllExport void OutCoalYard( const std::string& _OutCoalYard) { m_OutCoalYard = _OutCoalYard; } /*! * @brief This function moves the value in member OutCoalYard * @param _OutCoalYard New value to be moved in member OutCoalYard */ eProsima_user_DllExport void OutCoalYard( std::string&& _OutCoalYard) { m_OutCoalYard = std::move(_OutCoalYard); } /*! * @brief This function returns a constant reference to member OutCoalYard * @return Constant reference to member OutCoalYard */ eProsima_user_DllExport const std::string& OutCoalYard() const { return m_OutCoalYard; } /*! * @brief This function returns a reference to member OutCoalYard * @return Reference to member OutCoalYard */ eProsima_user_DllExport std::string& OutCoalYard() { return m_OutCoalYard; } /*! * @brief This function copies the value in member BatchNumber * @param _BatchNumber New value to be copied in member BatchNumber */ eProsima_user_DllExport void BatchNumber( const std::string& _BatchNumber) { m_BatchNumber = _BatchNumber; } /*! * @brief This function moves the value in member BatchNumber * @param _BatchNumber New value to be moved in member BatchNumber */ eProsima_user_DllExport void BatchNumber( std::string&& _BatchNumber) { m_BatchNumber = std::move(_BatchNumber); } /*! * @brief This function returns a constant reference to member BatchNumber * @return Constant reference to member BatchNumber */ eProsima_user_DllExport const std::string& BatchNumber() const { return m_BatchNumber; } /*! * @brief This function returns a reference to member BatchNumber * @return Reference to member BatchNumber */ eProsima_user_DllExport std::string& BatchNumber() { return m_BatchNumber; } /*! * @brief This function copies the value in member Warning * @param _Warning New value to be copied in member Warning */ eProsima_user_DllExport void Warning( const std::string& _Warning) { m_Warning = _Warning; } /*! * @brief This function moves the value in member Warning * @param _Warning New value to be moved in member Warning */ eProsima_user_DllExport void Warning( std::string&& _Warning) { m_Warning = std::move(_Warning); } /*! * @brief This function returns a constant reference to member Warning * @return Constant reference to member Warning */ eProsima_user_DllExport const std::string& Warning() const { return m_Warning; } /*! * @brief This function returns a reference to member Warning * @return Reference to member Warning */ eProsima_user_DllExport std::string& Warning() { return m_Warning; } /*! * @brief This function copies the value in member Tips * @param _Tips New value to be copied in member Tips */ eProsima_user_DllExport void Tips( const std::string& _Tips) { m_Tips = _Tips; } /*! * @brief This function moves the value in member Tips * @param _Tips New value to be moved in member Tips */ eProsima_user_DllExport void Tips( std::string&& _Tips) { m_Tips = std::move(_Tips); } /*! * @brief This function returns a constant reference to member Tips * @return Constant reference to member Tips */ eProsima_user_DllExport const std::string& Tips() const { return m_Tips; } /*! * @brief This function returns a reference to member Tips * @return Reference to member Tips */ eProsima_user_DllExport std::string& Tips() { return m_Tips; } /*! * @brief This function copies the value in member TicketType * @param _TicketType New value to be copied in member TicketType */ eProsima_user_DllExport void TicketType( const std::string& _TicketType) { m_TicketType = _TicketType; } /*! * @brief This function moves the value in member TicketType * @param _TicketType New value to be moved in member TicketType */ eProsima_user_DllExport void TicketType( std::string&& _TicketType) { m_TicketType = std::move(_TicketType); } /*! * @brief This function returns a constant reference to member TicketType * @return Constant reference to member TicketType */ eProsima_user_DllExport const std::string& TicketType() const { return m_TicketType; } /*! * @brief This function returns a reference to member TicketType * @return Reference to member TicketType */ eProsima_user_DllExport std::string& TicketType() { return m_TicketType; } /*! * @brief This function sets a value in member IsPrintTicker * @param _IsPrintTicker New value for member IsPrintTicker */ eProsima_user_DllExport void IsPrintTicker( bool _IsPrintTicker) { m_IsPrintTicker = _IsPrintTicker; } /*! * @brief This function returns the value of member IsPrintTicker * @return Value of member IsPrintTicker */ eProsima_user_DllExport bool IsPrintTicker() const { return m_IsPrintTicker; } /*! * @brief This function returns a reference to member IsPrintTicker * @return Reference to member IsPrintTicker */ eProsima_user_DllExport bool& IsPrintTicker() { return m_IsPrintTicker; } /*! * @brief This function copies the value in member OrderNumber * @param _OrderNumber New value to be copied in member OrderNumber */ eProsima_user_DllExport void OrderNumber( const std::string& _OrderNumber) { m_OrderNumber = _OrderNumber; } /*! * @brief This function moves the value in member OrderNumber * @param _OrderNumber New value to be moved in member OrderNumber */ eProsima_user_DllExport void OrderNumber( std::string&& _OrderNumber) { m_OrderNumber = std::move(_OrderNumber); } /*! * @brief This function returns a constant reference to member OrderNumber * @return Constant reference to member OrderNumber */ eProsima_user_DllExport const std::string& OrderNumber() const { return m_OrderNumber; } /*! * @brief This function returns a reference to member OrderNumber * @return Reference to member OrderNumber */ eProsima_user_DllExport std::string& OrderNumber() { return m_OrderNumber; } /*! * @brief This function copies the value in member VehicleAndVesselNumber * @param _VehicleAndVesselNumber New value to be copied in member VehicleAndVesselNumber */ eProsima_user_DllExport void VehicleAndVesselNumber( const std::string& _VehicleAndVesselNumber) { m_VehicleAndVesselNumber = _VehicleAndVesselNumber; } /*! * @brief This function moves the value in member VehicleAndVesselNumber * @param _VehicleAndVesselNumber New value to be moved in member VehicleAndVesselNumber */ eProsima_user_DllExport void VehicleAndVesselNumber( std::string&& _VehicleAndVesselNumber) { m_VehicleAndVesselNumber = std::move(_VehicleAndVesselNumber); } /*! * @brief This function returns a constant reference to member VehicleAndVesselNumber * @return Constant reference to member VehicleAndVesselNumber */ eProsima_user_DllExport const std::string& VehicleAndVesselNumber() const { return m_VehicleAndVesselNumber; } /*! * @brief This function returns a reference to member VehicleAndVesselNumber * @return Reference to member VehicleAndVesselNumber */ eProsima_user_DllExport std::string& VehicleAndVesselNumber() { return m_VehicleAndVesselNumber; } /*! * @brief This function copies the value in member ReceiveCompany * @param _ReceiveCompany New value to be copied in member ReceiveCompany */ eProsima_user_DllExport void ReceiveCompany( const std::string& _ReceiveCompany) { m_ReceiveCompany = _ReceiveCompany; } /*! * @brief This function moves the value in member ReceiveCompany * @param _ReceiveCompany New value to be moved in member ReceiveCompany */ eProsima_user_DllExport void ReceiveCompany( std::string&& _ReceiveCompany) { m_ReceiveCompany = std::move(_ReceiveCompany); } /*! * @brief This function returns a constant reference to member ReceiveCompany * @return Constant reference to member ReceiveCompany */ eProsima_user_DllExport const std::string& ReceiveCompany() const { return m_ReceiveCompany; } /*! * @brief This function returns a reference to member ReceiveCompany * @return Reference to member ReceiveCompany */ eProsima_user_DllExport std::string& ReceiveCompany() { return m_ReceiveCompany; } /*! * @brief This function copies the value in member TransportCompany * @param _TransportCompany New value to be copied in member TransportCompany */ eProsima_user_DllExport void TransportCompany( const std::string& _TransportCompany) { m_TransportCompany = _TransportCompany; } /*! * @brief This function moves the value in member TransportCompany * @param _TransportCompany New value to be moved in member TransportCompany */ eProsima_user_DllExport void TransportCompany( std::string&& _TransportCompany) { m_TransportCompany = std::move(_TransportCompany); } /*! * @brief This function returns a constant reference to member TransportCompany * @return Constant reference to member TransportCompany */ eProsima_user_DllExport const std::string& TransportCompany() const { return m_TransportCompany; } /*! * @brief This function returns a reference to member TransportCompany * @return Reference to member TransportCompany */ eProsima_user_DllExport std::string& TransportCompany() { return m_TransportCompany; } private: int32_t m_GrossDeviceID{0}; std::string m_GrossDeviceName; std::string m_GrossDeviceType; int32_t m_TareDeviceID{0}; std::string m_TareDeviceName; std::string m_TareDeviceType; std::string m_EnterpriseName; std::string m_BillNumber; std::string m_CarNumber; std::string m_Supplier; std::string m_GoodsType; float m_GrossWeight{0.0}; std::string m_GrossTime; std::string m_GrossOperater; float m_Tare{0.0}; std::string m_TareTime; std::string m_TareOperater; float m_Suttle{0.0}; float m_duduction1{0.0}; float m_duduction2{0.0}; float m_duduction3{0.0}; std::string m_INCoalYard; std::string m_OutCoalYard; std::string m_BatchNumber; std::string m_Warning; std::string m_Tips; std::string m_TicketType; bool m_IsPrintTicker{false}; std::string m_OrderNumber; std::string m_VehicleAndVesselNumber; std::string m_ReceiveCompany; std::string m_TransportCompany; }; /*! * @brief This class represents the structure WeightInfoError defined by the user in the IDL file. * @ingroup WeighingDDSType */ class WeightInfoError { public: /*! * @brief Default constructor. */ eProsima_user_DllExport WeightInfoError() { } /*! * @brief Default destructor. */ eProsima_user_DllExport ~WeightInfoError() { } /*! * @brief Copy constructor. * @param x Reference to the object WeightInfoError that will be copied. */ eProsima_user_DllExport WeightInfoError( const WeightInfoError& x) { m_CarNumber = x.m_CarNumber; m_Warning = x.m_Warning; } /*! * @brief Move constructor. * @param x Reference to the object WeightInfoError that will be copied. */ eProsima_user_DllExport WeightInfoError( WeightInfoError&& x) noexcept { m_CarNumber = std::move(x.m_CarNumber); m_Warning = std::move(x.m_Warning); } /*! * @brief Copy assignment. * @param x Reference to the object WeightInfoError that will be copied. */ eProsima_user_DllExport WeightInfoError& operator =( const WeightInfoError& x) { m_CarNumber = x.m_CarNumber; m_Warning = x.m_Warning; return *this; } /*! * @brief Move assignment. * @param x Reference to the object WeightInfoError that will be copied. */ eProsima_user_DllExport WeightInfoError& operator =( WeightInfoError&& x) noexcept { m_CarNumber = std::move(x.m_CarNumber); m_Warning = std::move(x.m_Warning); return *this; } /*! * @brief Comparison operator. * @param x WeightInfoError object to compare. */ eProsima_user_DllExport bool operator ==( const WeightInfoError& x) const { return (m_CarNumber == x.m_CarNumber && m_Warning == x.m_Warning); } /*! * @brief Comparison operator. * @param x WeightInfoError object to compare. */ eProsima_user_DllExport bool operator !=( const WeightInfoError& x) const { return !(*this == x); } /*! * @brief This function copies the value in member CarNumber * @param _CarNumber New value to be copied in member CarNumber */ eProsima_user_DllExport void CarNumber( const std::string& _CarNumber) { m_CarNumber = _CarNumber; } /*! * @brief This function moves the value in member CarNumber * @param _CarNumber New value to be moved in member CarNumber */ eProsima_user_DllExport void CarNumber( std::string&& _CarNumber) { m_CarNumber = std::move(_CarNumber); } /*! * @brief This function returns a constant reference to member CarNumber * @return Constant reference to member CarNumber */ eProsima_user_DllExport const std::string& CarNumber() const { return m_CarNumber; } /*! * @brief This function returns a reference to member CarNumber * @return Reference to member CarNumber */ eProsima_user_DllExport std::string& CarNumber() { return m_CarNumber; } /*! * @brief This function copies the value in member Warning * @param _Warning New value to be copied in member Warning */ eProsima_user_DllExport void Warning( const std::string& _Warning) { m_Warning = _Warning; } /*! * @brief This function moves the value in member Warning * @param _Warning New value to be moved in member Warning */ eProsima_user_DllExport void Warning( std::string&& _Warning) { m_Warning = std::move(_Warning); } /*! * @brief This function returns a constant reference to member Warning * @return Constant reference to member Warning */ eProsima_user_DllExport const std::string& Warning() const { return m_Warning; } /*! * @brief This function returns a reference to member Warning * @return Reference to member Warning */ eProsima_user_DllExport std::string& Warning() { return m_Warning; } private: std::string m_CarNumber; std::string m_Warning; }; /*! * @brief This class represents the structure BarCommandUpdate defined by the user in the IDL file. * @ingroup WeighingDDSType */ class BarCommandUpdate { public: /*! * @brief Default constructor. */ eProsima_user_DllExport BarCommandUpdate() { } /*! * @brief Default destructor. */ eProsima_user_DllExport ~BarCommandUpdate() { } /*! * @brief Copy constructor. * @param x Reference to the object BarCommandUpdate that will be copied. */ eProsima_user_DllExport BarCommandUpdate( const BarCommandUpdate& x) { m_FrontBarSignalUp = x.m_FrontBarSignalUp; m_FrontBarSignalDown = x.m_FrontBarSignalDown; m_FrontBarEnable = x.m_FrontBarEnable; m_BackBarSignalUp = x.m_BackBarSignalUp; m_BackBarSignalDown = x.m_BackBarSignalDown; m_BackBarEnable = x.m_BackBarEnable; } /*! * @brief Move constructor. * @param x Reference to the object BarCommandUpdate that will be copied. */ eProsima_user_DllExport BarCommandUpdate( BarCommandUpdate&& x) noexcept { m_FrontBarSignalUp = x.m_FrontBarSignalUp; m_FrontBarSignalDown = x.m_FrontBarSignalDown; m_FrontBarEnable = x.m_FrontBarEnable; m_BackBarSignalUp = x.m_BackBarSignalUp; m_BackBarSignalDown = x.m_BackBarSignalDown; m_BackBarEnable = x.m_BackBarEnable; } /*! * @brief Copy assignment. * @param x Reference to the object BarCommandUpdate that will be copied. */ eProsima_user_DllExport BarCommandUpdate& operator =( const BarCommandUpdate& x) { m_FrontBarSignalUp = x.m_FrontBarSignalUp; m_FrontBarSignalDown = x.m_FrontBarSignalDown; m_FrontBarEnable = x.m_FrontBarEnable; m_BackBarSignalUp = x.m_BackBarSignalUp; m_BackBarSignalDown = x.m_BackBarSignalDown; m_BackBarEnable = x.m_BackBarEnable; return *this; } /*! * @brief Move assignment. * @param x Reference to the object BarCommandUpdate that will be copied. */ eProsima_user_DllExport BarCommandUpdate& operator =( BarCommandUpdate&& x) noexcept { m_FrontBarSignalUp = x.m_FrontBarSignalUp; m_FrontBarSignalDown = x.m_FrontBarSignalDown; m_FrontBarEnable = x.m_FrontBarEnable; m_BackBarSignalUp = x.m_BackBarSignalUp; m_BackBarSignalDown = x.m_BackBarSignalDown; m_BackBarEnable = x.m_BackBarEnable; return *this; } /*! * @brief Comparison operator. * @param x BarCommandUpdate object to compare. */ eProsima_user_DllExport bool operator ==( const BarCommandUpdate& x) const { return (m_FrontBarSignalUp == x.m_FrontBarSignalUp && m_FrontBarSignalDown == x.m_FrontBarSignalDown && m_FrontBarEnable == x.m_FrontBarEnable && m_BackBarSignalUp == x.m_BackBarSignalUp && m_BackBarSignalDown == x.m_BackBarSignalDown && m_BackBarEnable == x.m_BackBarEnable); } /*! * @brief Comparison operator. * @param x BarCommandUpdate object to compare. */ eProsima_user_DllExport bool operator !=( const BarCommandUpdate& x) const { return !(*this == x); } /*! * @brief This function sets a value in member FrontBarSignalUp * @param _FrontBarSignalUp New value for member FrontBarSignalUp */ eProsima_user_DllExport void FrontBarSignalUp( int32_t _FrontBarSignalUp) { m_FrontBarSignalUp = _FrontBarSignalUp; } /*! * @brief This function returns the value of member FrontBarSignalUp * @return Value of member FrontBarSignalUp */ eProsima_user_DllExport int32_t FrontBarSignalUp() const { return m_FrontBarSignalUp; } /*! * @brief This function returns a reference to member FrontBarSignalUp * @return Reference to member FrontBarSignalUp */ eProsima_user_DllExport int32_t& FrontBarSignalUp() { return m_FrontBarSignalUp; } /*! * @brief This function sets a value in member FrontBarSignalDown * @param _FrontBarSignalDown New value for member FrontBarSignalDown */ eProsima_user_DllExport void FrontBarSignalDown( int32_t _FrontBarSignalDown) { m_FrontBarSignalDown = _FrontBarSignalDown; } /*! * @brief This function returns the value of member FrontBarSignalDown * @return Value of member FrontBarSignalDown */ eProsima_user_DllExport int32_t FrontBarSignalDown() const { return m_FrontBarSignalDown; } /*! * @brief This function returns a reference to member FrontBarSignalDown * @return Reference to member FrontBarSignalDown */ eProsima_user_DllExport int32_t& FrontBarSignalDown() { return m_FrontBarSignalDown; } /*! * @brief This function sets a value in member FrontBarEnable * @param _FrontBarEnable New value for member FrontBarEnable */ eProsima_user_DllExport void FrontBarEnable( bool _FrontBarEnable) { m_FrontBarEnable = _FrontBarEnable; } /*! * @brief This function returns the value of member FrontBarEnable * @return Value of member FrontBarEnable */ eProsima_user_DllExport bool FrontBarEnable() const { return m_FrontBarEnable; } /*! * @brief This function returns a reference to member FrontBarEnable * @return Reference to member FrontBarEnable */ eProsima_user_DllExport bool& FrontBarEnable() { return m_FrontBarEnable; } /*! * @brief This function sets a value in member BackBarSignalUp * @param _BackBarSignalUp New value for member BackBarSignalUp */ eProsima_user_DllExport void BackBarSignalUp( int32_t _BackBarSignalUp) { m_BackBarSignalUp = _BackBarSignalUp; } /*! * @brief This function returns the value of member BackBarSignalUp * @return Value of member BackBarSignalUp */ eProsima_user_DllExport int32_t BackBarSignalUp() const { return m_BackBarSignalUp; } /*! * @brief This function returns a reference to member BackBarSignalUp * @return Reference to member BackBarSignalUp */ eProsima_user_DllExport int32_t& BackBarSignalUp() { return m_BackBarSignalUp; } /*! * @brief This function sets a value in member BackBarSignalDown * @param _BackBarSignalDown New value for member BackBarSignalDown */ eProsima_user_DllExport void BackBarSignalDown( int32_t _BackBarSignalDown) { m_BackBarSignalDown = _BackBarSignalDown; } /*! * @brief This function returns the value of member BackBarSignalDown * @return Value of member BackBarSignalDown */ eProsima_user_DllExport int32_t BackBarSignalDown() const { return m_BackBarSignalDown; } /*! * @brief This function returns a reference to member BackBarSignalDown * @return Reference to member BackBarSignalDown */ eProsima_user_DllExport int32_t& BackBarSignalDown() { return m_BackBarSignalDown; } /*! * @brief This function sets a value in member BackBarEnable * @param _BackBarEnable New value for member BackBarEnable */ eProsima_user_DllExport void BackBarEnable( bool _BackBarEnable) { m_BackBarEnable = _BackBarEnable; } /*! * @brief This function returns the value of member BackBarEnable * @return Value of member BackBarEnable */ eProsima_user_DllExport bool BackBarEnable() const { return m_BackBarEnable; } /*! * @brief This function returns a reference to member BackBarEnable * @return Reference to member BackBarEnable */ eProsima_user_DllExport bool& BackBarEnable() { return m_BackBarEnable; } private: int32_t m_FrontBarSignalUp{0}; int32_t m_FrontBarSignalDown{0}; bool m_FrontBarEnable{false}; int32_t m_BackBarSignalUp{0}; int32_t m_BackBarSignalDown{0}; bool m_BackBarEnable{false}; }; /*! * @brief This class represents the structure LightsCommandUpdate defined by the user in the IDL file. * @ingroup WeighingDDSType */ class LightsCommandUpdate { public: /*! * @brief Default constructor. */ eProsima_user_DllExport LightsCommandUpdate() { } /*! * @brief Default destructor. */ eProsima_user_DllExport ~LightsCommandUpdate() { } /*! * @brief Copy constructor. * @param x Reference to the object LightsCommandUpdate that will be copied. */ eProsima_user_DllExport LightsCommandUpdate( const LightsCommandUpdate& x) { m_FrontLEDSignal = x.m_FrontLEDSignal; m_FrontLEDEnable = x.m_FrontLEDEnable; m_BackLEDSignal = x.m_BackLEDSignal; m_BackLEDEnable = x.m_BackLEDEnable; } /*! * @brief Move constructor. * @param x Reference to the object LightsCommandUpdate that will be copied. */ eProsima_user_DllExport LightsCommandUpdate( LightsCommandUpdate&& x) noexcept { m_FrontLEDSignal = x.m_FrontLEDSignal; m_FrontLEDEnable = x.m_FrontLEDEnable; m_BackLEDSignal = x.m_BackLEDSignal; m_BackLEDEnable = x.m_BackLEDEnable; } /*! * @brief Copy assignment. * @param x Reference to the object LightsCommandUpdate that will be copied. */ eProsima_user_DllExport LightsCommandUpdate& operator =( const LightsCommandUpdate& x) { m_FrontLEDSignal = x.m_FrontLEDSignal; m_FrontLEDEnable = x.m_FrontLEDEnable; m_BackLEDSignal = x.m_BackLEDSignal; m_BackLEDEnable = x.m_BackLEDEnable; return *this; } /*! * @brief Move assignment. * @param x Reference to the object LightsCommandUpdate that will be copied. */ eProsima_user_DllExport LightsCommandUpdate& operator =( LightsCommandUpdate&& x) noexcept { m_FrontLEDSignal = x.m_FrontLEDSignal; m_FrontLEDEnable = x.m_FrontLEDEnable; m_BackLEDSignal = x.m_BackLEDSignal; m_BackLEDEnable = x.m_BackLEDEnable; return *this; } /*! * @brief Comparison operator. * @param x LightsCommandUpdate object to compare. */ eProsima_user_DllExport bool operator ==( const LightsCommandUpdate& x) const { return (m_FrontLEDSignal == x.m_FrontLEDSignal && m_FrontLEDEnable == x.m_FrontLEDEnable && m_BackLEDSignal == x.m_BackLEDSignal && m_BackLEDEnable == x.m_BackLEDEnable); } /*! * @brief Comparison operator. * @param x LightsCommandUpdate object to compare. */ eProsima_user_DllExport bool operator !=( const LightsCommandUpdate& x) const { return !(*this == x); } /*! * @brief This function sets a value in member FrontLEDSignal * @param _FrontLEDSignal New value for member FrontLEDSignal */ eProsima_user_DllExport void FrontLEDSignal( int32_t _FrontLEDSignal) { m_FrontLEDSignal = _FrontLEDSignal; } /*! * @brief This function returns the value of member FrontLEDSignal * @return Value of member FrontLEDSignal */ eProsima_user_DllExport int32_t FrontLEDSignal() const { return m_FrontLEDSignal; } /*! * @brief This function returns a reference to member FrontLEDSignal * @return Reference to member FrontLEDSignal */ eProsima_user_DllExport int32_t& FrontLEDSignal() { return m_FrontLEDSignal; } /*! * @brief This function sets a value in member FrontLEDEnable * @param _FrontLEDEnable New value for member FrontLEDEnable */ eProsima_user_DllExport void FrontLEDEnable( bool _FrontLEDEnable) { m_FrontLEDEnable = _FrontLEDEnable; } /*! * @brief This function returns the value of member FrontLEDEnable * @return Value of member FrontLEDEnable */ eProsima_user_DllExport bool FrontLEDEnable() const { return m_FrontLEDEnable; } /*! * @brief This function returns a reference to member FrontLEDEnable * @return Reference to member FrontLEDEnable */ eProsima_user_DllExport bool& FrontLEDEnable() { return m_FrontLEDEnable; } /*! * @brief This function sets a value in member BackLEDSignal * @param _BackLEDSignal New value for member BackLEDSignal */ eProsima_user_DllExport void BackLEDSignal( int32_t _BackLEDSignal) { m_BackLEDSignal = _BackLEDSignal; } /*! * @brief This function returns the value of member BackLEDSignal * @return Value of member BackLEDSignal */ eProsima_user_DllExport int32_t BackLEDSignal() const { return m_BackLEDSignal; } /*! * @brief This function returns a reference to member BackLEDSignal * @return Reference to member BackLEDSignal */ eProsima_user_DllExport int32_t& BackLEDSignal() { return m_BackLEDSignal; } /*! * @brief This function sets a value in member BackLEDEnable * @param _BackLEDEnable New value for member BackLEDEnable */ eProsima_user_DllExport void BackLEDEnable( int32_t _BackLEDEnable) { m_BackLEDEnable = _BackLEDEnable; } /*! * @brief This function returns the value of member BackLEDEnable * @return Value of member BackLEDEnable */ eProsima_user_DllExport int32_t BackLEDEnable() const { return m_BackLEDEnable; } /*! * @brief This function returns a reference to member BackLEDEnable * @return Reference to member BackLEDEnable */ eProsima_user_DllExport int32_t& BackLEDEnable() { return m_BackLEDEnable; } private: int32_t m_FrontLEDSignal{0}; bool m_FrontLEDEnable{false}; int32_t m_BackLEDSignal{0}; int32_t m_BackLEDEnable{0}; }; /*! * @brief This class represents the structure InfraredCommandUpdate defined by the user in the IDL file. * @ingroup WeighingDDSType */ class InfraredCommandUpdate { public: /*! * @brief Default constructor. */ eProsima_user_DllExport InfraredCommandUpdate() { } /*! * @brief Default destructor. */ eProsima_user_DllExport ~InfraredCommandUpdate() { } /*! * @brief Copy constructor. * @param x Reference to the object InfraredCommandUpdate that will be copied. */ eProsima_user_DllExport InfraredCommandUpdate( const InfraredCommandUpdate& x) { m_FrontResistanceUnLock = x.m_FrontResistanceUnLock; m_FrontResistanceEnable = x.m_FrontResistanceEnable; m_BackResistanceUnLock = x.m_BackResistanceUnLock; m_BackResistanceEnable = x.m_BackResistanceEnable; } /*! * @brief Move constructor. * @param x Reference to the object InfraredCommandUpdate that will be copied. */ eProsima_user_DllExport InfraredCommandUpdate( InfraredCommandUpdate&& x) noexcept { m_FrontResistanceUnLock = x.m_FrontResistanceUnLock; m_FrontResistanceEnable = x.m_FrontResistanceEnable; m_BackResistanceUnLock = x.m_BackResistanceUnLock; m_BackResistanceEnable = x.m_BackResistanceEnable; } /*! * @brief Copy assignment. * @param x Reference to the object InfraredCommandUpdate that will be copied. */ eProsima_user_DllExport InfraredCommandUpdate& operator =( const InfraredCommandUpdate& x) { m_FrontResistanceUnLock = x.m_FrontResistanceUnLock; m_FrontResistanceEnable = x.m_FrontResistanceEnable; m_BackResistanceUnLock = x.m_BackResistanceUnLock; m_BackResistanceEnable = x.m_BackResistanceEnable; return *this; } /*! * @brief Move assignment. * @param x Reference to the object InfraredCommandUpdate that will be copied. */ eProsima_user_DllExport InfraredCommandUpdate& operator =( InfraredCommandUpdate&& x) noexcept { m_FrontResistanceUnLock = x.m_FrontResistanceUnLock; m_FrontResistanceEnable = x.m_FrontResistanceEnable; m_BackResistanceUnLock = x.m_BackResistanceUnLock; m_BackResistanceEnable = x.m_BackResistanceEnable; return *this; } /*! * @brief Comparison operator. * @param x InfraredCommandUpdate object to compare. */ eProsima_user_DllExport bool operator ==( const InfraredCommandUpdate& x) const { return (m_FrontResistanceUnLock == x.m_FrontResistanceUnLock && m_FrontResistanceEnable == x.m_FrontResistanceEnable && m_BackResistanceUnLock == x.m_BackResistanceUnLock && m_BackResistanceEnable == x.m_BackResistanceEnable); } /*! * @brief Comparison operator. * @param x InfraredCommandUpdate object to compare. */ eProsima_user_DllExport bool operator !=( const InfraredCommandUpdate& x) const { return !(*this == x); } /*! * @brief This function sets a value in member FrontResistanceUnLock * @param _FrontResistanceUnLock New value for member FrontResistanceUnLock */ eProsima_user_DllExport void FrontResistanceUnLock( int32_t _FrontResistanceUnLock) { m_FrontResistanceUnLock = _FrontResistanceUnLock; } /*! * @brief This function returns the value of member FrontResistanceUnLock * @return Value of member FrontResistanceUnLock */ eProsima_user_DllExport int32_t FrontResistanceUnLock() const { return m_FrontResistanceUnLock; } /*! * @brief This function returns a reference to member FrontResistanceUnLock * @return Reference to member FrontResistanceUnLock */ eProsima_user_DllExport int32_t& FrontResistanceUnLock() { return m_FrontResistanceUnLock; } /*! * @brief This function sets a value in member FrontResistanceEnable * @param _FrontResistanceEnable New value for member FrontResistanceEnable */ eProsima_user_DllExport void FrontResistanceEnable( bool _FrontResistanceEnable) { m_FrontResistanceEnable = _FrontResistanceEnable; } /*! * @brief This function returns the value of member FrontResistanceEnable * @return Value of member FrontResistanceEnable */ eProsima_user_DllExport bool FrontResistanceEnable() const { return m_FrontResistanceEnable; } /*! * @brief This function returns a reference to member FrontResistanceEnable * @return Reference to member FrontResistanceEnable */ eProsima_user_DllExport bool& FrontResistanceEnable() { return m_FrontResistanceEnable; } /*! * @brief This function sets a value in member BackResistanceUnLock * @param _BackResistanceUnLock New value for member BackResistanceUnLock */ eProsima_user_DllExport void BackResistanceUnLock( int32_t _BackResistanceUnLock) { m_BackResistanceUnLock = _BackResistanceUnLock; } /*! * @brief This function returns the value of member BackResistanceUnLock * @return Value of member BackResistanceUnLock */ eProsima_user_DllExport int32_t BackResistanceUnLock() const { return m_BackResistanceUnLock; } /*! * @brief This function returns a reference to member BackResistanceUnLock * @return Reference to member BackResistanceUnLock */ eProsima_user_DllExport int32_t& BackResistanceUnLock() { return m_BackResistanceUnLock; } /*! * @brief This function sets a value in member BackResistanceEnable * @param _BackResistanceEnable New value for member BackResistanceEnable */ eProsima_user_DllExport void BackResistanceEnable( bool _BackResistanceEnable) { m_BackResistanceEnable = _BackResistanceEnable; } /*! * @brief This function returns the value of member BackResistanceEnable * @return Value of member BackResistanceEnable */ eProsima_user_DllExport bool BackResistanceEnable() const { return m_BackResistanceEnable; } /*! * @brief This function returns a reference to member BackResistanceEnable * @return Reference to member BackResistanceEnable */ eProsima_user_DllExport bool& BackResistanceEnable() { return m_BackResistanceEnable; } private: int32_t m_FrontResistanceUnLock{0}; bool m_FrontResistanceEnable{false}; int32_t m_BackResistanceUnLock{0}; bool m_BackResistanceEnable{false}; }; /*! * @brief This class represents the structure BarUpdate defined by the user in the IDL file. * @ingroup WeighingDDSType */ class BarUpdate { public: /*! * @brief Default constructor. */ eProsima_user_DllExport BarUpdate() { } /*! * @brief Default destructor. */ eProsima_user_DllExport ~BarUpdate() { } /*! * @brief Copy constructor. * @param x Reference to the object BarUpdate that will be copied. */ eProsima_user_DllExport BarUpdate( const BarUpdate& x) { m_FrontBarState = x.m_FrontBarState; m_BackBarState = x.m_BackBarState; } /*! * @brief Move constructor. * @param x Reference to the object BarUpdate that will be copied. */ eProsima_user_DllExport BarUpdate( BarUpdate&& x) noexcept { m_FrontBarState = x.m_FrontBarState; m_BackBarState = x.m_BackBarState; } /*! * @brief Copy assignment. * @param x Reference to the object BarUpdate that will be copied. */ eProsima_user_DllExport BarUpdate& operator =( const BarUpdate& x) { m_FrontBarState = x.m_FrontBarState; m_BackBarState = x.m_BackBarState; return *this; } /*! * @brief Move assignment. * @param x Reference to the object BarUpdate that will be copied. */ eProsima_user_DllExport BarUpdate& operator =( BarUpdate&& x) noexcept { m_FrontBarState = x.m_FrontBarState; m_BackBarState = x.m_BackBarState; return *this; } /*! * @brief Comparison operator. * @param x BarUpdate object to compare. */ eProsima_user_DllExport bool operator ==( const BarUpdate& x) const { return (m_FrontBarState == x.m_FrontBarState && m_BackBarState == x.m_BackBarState); } /*! * @brief Comparison operator. * @param x BarUpdate object to compare. */ eProsima_user_DllExport bool operator !=( const BarUpdate& x) const { return !(*this == x); } /*! * @brief This function sets a value in member FrontBarState * @param _FrontBarState New value for member FrontBarState */ eProsima_user_DllExport void FrontBarState( int32_t _FrontBarState) { m_FrontBarState = _FrontBarState; } /*! * @brief This function returns the value of member FrontBarState * @return Value of member FrontBarState */ eProsima_user_DllExport int32_t FrontBarState() const { return m_FrontBarState; } /*! * @brief This function returns a reference to member FrontBarState * @return Reference to member FrontBarState */ eProsima_user_DllExport int32_t& FrontBarState() { return m_FrontBarState; } /*! * @brief This function sets a value in member BackBarState * @param _BackBarState New value for member BackBarState */ eProsima_user_DllExport void BackBarState( int32_t _BackBarState) { m_BackBarState = _BackBarState; } /*! * @brief This function returns the value of member BackBarState * @return Value of member BackBarState */ eProsima_user_DllExport int32_t BackBarState() const { return m_BackBarState; } /*! * @brief This function returns a reference to member BackBarState * @return Reference to member BackBarState */ eProsima_user_DllExport int32_t& BackBarState() { return m_BackBarState; } private: int32_t m_FrontBarState{0}; int32_t m_BackBarState{0}; }; /*! * @brief This class represents the structure LightsUpdate defined by the user in the IDL file. * @ingroup WeighingDDSType */ class LightsUpdate { public: /*! * @brief Default constructor. */ eProsima_user_DllExport LightsUpdate() { } /*! * @brief Default destructor. */ eProsima_user_DllExport ~LightsUpdate() { } /*! * @brief Copy constructor. * @param x Reference to the object LightsUpdate that will be copied. */ eProsima_user_DllExport LightsUpdate( const LightsUpdate& x) { m_FrontLEDState = x.m_FrontLEDState; m_BackLEDState = x.m_BackLEDState; } /*! * @brief Move constructor. * @param x Reference to the object LightsUpdate that will be copied. */ eProsima_user_DllExport LightsUpdate( LightsUpdate&& x) noexcept { m_FrontLEDState = x.m_FrontLEDState; m_BackLEDState = x.m_BackLEDState; } /*! * @brief Copy assignment. * @param x Reference to the object LightsUpdate that will be copied. */ eProsima_user_DllExport LightsUpdate& operator =( const LightsUpdate& x) { m_FrontLEDState = x.m_FrontLEDState; m_BackLEDState = x.m_BackLEDState; return *this; } /*! * @brief Move assignment. * @param x Reference to the object LightsUpdate that will be copied. */ eProsima_user_DllExport LightsUpdate& operator =( LightsUpdate&& x) noexcept { m_FrontLEDState = x.m_FrontLEDState; m_BackLEDState = x.m_BackLEDState; return *this; } /*! * @brief Comparison operator. * @param x LightsUpdate object to compare. */ eProsima_user_DllExport bool operator ==( const LightsUpdate& x) const { return (m_FrontLEDState == x.m_FrontLEDState && m_BackLEDState == x.m_BackLEDState); } /*! * @brief Comparison operator. * @param x LightsUpdate object to compare. */ eProsima_user_DllExport bool operator !=( const LightsUpdate& x) const { return !(*this == x); } /*! * @brief This function sets a value in member FrontLEDState * @param _FrontLEDState New value for member FrontLEDState */ eProsima_user_DllExport void FrontLEDState( int32_t _FrontLEDState) { m_FrontLEDState = _FrontLEDState; } /*! * @brief This function returns the value of member FrontLEDState * @return Value of member FrontLEDState */ eProsima_user_DllExport int32_t FrontLEDState() const { return m_FrontLEDState; } /*! * @brief This function returns a reference to member FrontLEDState * @return Reference to member FrontLEDState */ eProsima_user_DllExport int32_t& FrontLEDState() { return m_FrontLEDState; } /*! * @brief This function sets a value in member BackLEDState * @param _BackLEDState New value for member BackLEDState */ eProsima_user_DllExport void BackLEDState( int32_t _BackLEDState) { m_BackLEDState = _BackLEDState; } /*! * @brief This function returns the value of member BackLEDState * @return Value of member BackLEDState */ eProsima_user_DllExport int32_t BackLEDState() const { return m_BackLEDState; } /*! * @brief This function returns a reference to member BackLEDState * @return Reference to member BackLEDState */ eProsima_user_DllExport int32_t& BackLEDState() { return m_BackLEDState; } private: int32_t m_FrontLEDState{0}; int32_t m_BackLEDState{0}; }; /*! * @brief This class represents the structure InfraredUpdate defined by the user in the IDL file. * @ingroup WeighingDDSType */ class InfraredUpdate { public: /*! * @brief Default constructor. */ eProsima_user_DllExport InfraredUpdate() { } /*! * @brief Default destructor. */ eProsima_user_DllExport ~InfraredUpdate() { } /*! * @brief Copy constructor. * @param x Reference to the object InfraredUpdate that will be copied. */ eProsima_user_DllExport InfraredUpdate( const InfraredUpdate& x) { m_FrontResistanceSignal = x.m_FrontResistanceSignal; m_BackResistanceSignal = x.m_BackResistanceSignal; } /*! * @brief Move constructor. * @param x Reference to the object InfraredUpdate that will be copied. */ eProsima_user_DllExport InfraredUpdate( InfraredUpdate&& x) noexcept { m_FrontResistanceSignal = x.m_FrontResistanceSignal; m_BackResistanceSignal = x.m_BackResistanceSignal; } /*! * @brief Copy assignment. * @param x Reference to the object InfraredUpdate that will be copied. */ eProsima_user_DllExport InfraredUpdate& operator =( const InfraredUpdate& x) { m_FrontResistanceSignal = x.m_FrontResistanceSignal; m_BackResistanceSignal = x.m_BackResistanceSignal; return *this; } /*! * @brief Move assignment. * @param x Reference to the object InfraredUpdate that will be copied. */ eProsima_user_DllExport InfraredUpdate& operator =( InfraredUpdate&& x) noexcept { m_FrontResistanceSignal = x.m_FrontResistanceSignal; m_BackResistanceSignal = x.m_BackResistanceSignal; return *this; } /*! * @brief Comparison operator. * @param x InfraredUpdate object to compare. */ eProsima_user_DllExport bool operator ==( const InfraredUpdate& x) const { return (m_FrontResistanceSignal == x.m_FrontResistanceSignal && m_BackResistanceSignal == x.m_BackResistanceSignal); } /*! * @brief Comparison operator. * @param x InfraredUpdate object to compare. */ eProsima_user_DllExport bool operator !=( const InfraredUpdate& x) const { return !(*this == x); } /*! * @brief This function sets a value in member FrontResistanceSignal * @param _FrontResistanceSignal New value for member FrontResistanceSignal */ eProsima_user_DllExport void FrontResistanceSignal( int32_t _FrontResistanceSignal) { m_FrontResistanceSignal = _FrontResistanceSignal; } /*! * @brief This function returns the value of member FrontResistanceSignal * @return Value of member FrontResistanceSignal */ eProsima_user_DllExport int32_t FrontResistanceSignal() const { return m_FrontResistanceSignal; } /*! * @brief This function returns a reference to member FrontResistanceSignal * @return Reference to member FrontResistanceSignal */ eProsima_user_DllExport int32_t& FrontResistanceSignal() { return m_FrontResistanceSignal; } /*! * @brief This function sets a value in member BackResistanceSignal * @param _BackResistanceSignal New value for member BackResistanceSignal */ eProsima_user_DllExport void BackResistanceSignal( int32_t _BackResistanceSignal) { m_BackResistanceSignal = _BackResistanceSignal; } /*! * @brief This function returns the value of member BackResistanceSignal * @return Value of member BackResistanceSignal */ eProsima_user_DllExport int32_t BackResistanceSignal() const { return m_BackResistanceSignal; } /*! * @brief This function returns a reference to member BackResistanceSignal * @return Reference to member BackResistanceSignal */ eProsima_user_DllExport int32_t& BackResistanceSignal() { return m_BackResistanceSignal; } private: int32_t m_FrontResistanceSignal{0}; int32_t m_BackResistanceSignal{0}; }; /*! * @brief This class represents the structure LicenseSnapUpdate defined by the user in the IDL file. * @ingroup WeighingDDSType */ class LicenseSnapUpdate { public: /*! * @brief Default constructor. */ eProsima_user_DllExport LicenseSnapUpdate() { } /*! * @brief Default destructor. */ eProsima_user_DllExport ~LicenseSnapUpdate() { } /*! * @brief Copy constructor. * @param x Reference to the object LicenseSnapUpdate that will be copied. */ eProsima_user_DllExport LicenseSnapUpdate( const LicenseSnapUpdate& x) { m_NewTag = x.m_NewTag; m_License = x.m_License; } /*! * @brief Move constructor. * @param x Reference to the object LicenseSnapUpdate that will be copied. */ eProsima_user_DllExport LicenseSnapUpdate( LicenseSnapUpdate&& x) noexcept { m_NewTag = x.m_NewTag; m_License = std::move(x.m_License); } /*! * @brief Copy assignment. * @param x Reference to the object LicenseSnapUpdate that will be copied. */ eProsima_user_DllExport LicenseSnapUpdate& operator =( const LicenseSnapUpdate& x) { m_NewTag = x.m_NewTag; m_License = x.m_License; return *this; } /*! * @brief Move assignment. * @param x Reference to the object LicenseSnapUpdate that will be copied. */ eProsima_user_DllExport LicenseSnapUpdate& operator =( LicenseSnapUpdate&& x) noexcept { m_NewTag = x.m_NewTag; m_License = std::move(x.m_License); return *this; } /*! * @brief Comparison operator. * @param x LicenseSnapUpdate object to compare. */ eProsima_user_DllExport bool operator ==( const LicenseSnapUpdate& x) const { return (m_NewTag == x.m_NewTag && m_License == x.m_License); } /*! * @brief Comparison operator. * @param x LicenseSnapUpdate object to compare. */ eProsima_user_DllExport bool operator !=( const LicenseSnapUpdate& x) const { return !(*this == x); } /*! * @brief This function sets a value in member NewTag * @param _NewTag New value for member NewTag */ eProsima_user_DllExport void NewTag( int32_t _NewTag) { m_NewTag = _NewTag; } /*! * @brief This function returns the value of member NewTag * @return Value of member NewTag */ eProsima_user_DllExport int32_t NewTag() const { return m_NewTag; } /*! * @brief This function returns a reference to member NewTag * @return Reference to member NewTag */ eProsima_user_DllExport int32_t& NewTag() { return m_NewTag; } /*! * @brief This function copies the value in member License * @param _License New value to be copied in member License */ eProsima_user_DllExport void License( const std::string& _License) { m_License = _License; } /*! * @brief This function moves the value in member License * @param _License New value to be moved in member License */ eProsima_user_DllExport void License( std::string&& _License) { m_License = std::move(_License); } /*! * @brief This function returns a constant reference to member License * @return Constant reference to member License */ eProsima_user_DllExport const std::string& License() const { return m_License; } /*! * @brief This function returns a reference to member License * @return Reference to member License */ eProsima_user_DllExport std::string& License() { return m_License; } private: int32_t m_NewTag{0}; std::string m_License; }; /*! * @brief This class represents the structure Voice defined by the user in the IDL file. * @ingroup WeighingDDSType */ class Voice { public: /*! * @brief Default constructor. */ eProsima_user_DllExport Voice() { } /*! * @brief Default destructor. */ eProsima_user_DllExport ~Voice() { } /*! * @brief Copy constructor. * @param x Reference to the object Voice that will be copied. */ eProsima_user_DllExport Voice( const Voice& x) { m_VoiceID = x.m_VoiceID; m_VoiceContent = x.m_VoiceContent; } /*! * @brief Move constructor. * @param x Reference to the object Voice that will be copied. */ eProsima_user_DllExport Voice( Voice&& x) noexcept { m_VoiceID = x.m_VoiceID; m_VoiceContent = std::move(x.m_VoiceContent); } /*! * @brief Copy assignment. * @param x Reference to the object Voice that will be copied. */ eProsima_user_DllExport Voice& operator =( const Voice& x) { m_VoiceID = x.m_VoiceID; m_VoiceContent = x.m_VoiceContent; return *this; } /*! * @brief Move assignment. * @param x Reference to the object Voice that will be copied. */ eProsima_user_DllExport Voice& operator =( Voice&& x) noexcept { m_VoiceID = x.m_VoiceID; m_VoiceContent = std::move(x.m_VoiceContent); return *this; } /*! * @brief Comparison operator. * @param x Voice object to compare. */ eProsima_user_DllExport bool operator ==( const Voice& x) const { return (m_VoiceID == x.m_VoiceID && m_VoiceContent == x.m_VoiceContent); } /*! * @brief Comparison operator. * @param x Voice object to compare. */ eProsima_user_DllExport bool operator !=( const Voice& x) const { return !(*this == x); } /*! * @brief This function sets a value in member VoiceID * @param _VoiceID New value for member VoiceID */ eProsima_user_DllExport void VoiceID( int32_t _VoiceID) { m_VoiceID = _VoiceID; } /*! * @brief This function returns the value of member VoiceID * @return Value of member VoiceID */ eProsima_user_DllExport int32_t VoiceID() const { return m_VoiceID; } /*! * @brief This function returns a reference to member VoiceID * @return Reference to member VoiceID */ eProsima_user_DllExport int32_t& VoiceID() { return m_VoiceID; } /*! * @brief This function copies the value in member VoiceContent * @param _VoiceContent New value to be copied in member VoiceContent */ eProsima_user_DllExport void VoiceContent( const std::string& _VoiceContent) { m_VoiceContent = _VoiceContent; } /*! * @brief This function moves the value in member VoiceContent * @param _VoiceContent New value to be moved in member VoiceContent */ eProsima_user_DllExport void VoiceContent( std::string&& _VoiceContent) { m_VoiceContent = std::move(_VoiceContent); } /*! * @brief This function returns a constant reference to member VoiceContent * @return Constant reference to member VoiceContent */ eProsima_user_DllExport const std::string& VoiceContent() const { return m_VoiceContent; } /*! * @brief This function returns a reference to member VoiceContent * @return Reference to member VoiceContent */ eProsima_user_DllExport std::string& VoiceContent() { return m_VoiceContent; } private: int32_t m_VoiceID{0}; std::string m_VoiceContent; }; /*! * @brief This class represents the structure SummaryUpdate defined by the user in the IDL file. * @ingroup WeighingDDSType */ class SummaryUpdate { public: /*! * @brief Default constructor. */ eProsima_user_DllExport SummaryUpdate() { } /*! * @brief Default destructor. */ eProsima_user_DllExport ~SummaryUpdate() { } /*! * @brief Copy constructor. * @param x Reference to the object SummaryUpdate that will be copied. */ eProsima_user_DllExport SummaryUpdate( const SummaryUpdate& x) { m_License = x.m_License; m_StableValue = x.m_StableValue; } /*! * @brief Move constructor. * @param x Reference to the object SummaryUpdate that will be copied. */ eProsima_user_DllExport SummaryUpdate( SummaryUpdate&& x) noexcept { m_License = std::move(x.m_License); m_StableValue = x.m_StableValue; } /*! * @brief Copy assignment. * @param x Reference to the object SummaryUpdate that will be copied. */ eProsima_user_DllExport SummaryUpdate& operator =( const SummaryUpdate& x) { m_License = x.m_License; m_StableValue = x.m_StableValue; return *this; } /*! * @brief Move assignment. * @param x Reference to the object SummaryUpdate that will be copied. */ eProsima_user_DllExport SummaryUpdate& operator =( SummaryUpdate&& x) noexcept { m_License = std::move(x.m_License); m_StableValue = x.m_StableValue; return *this; } /*! * @brief Comparison operator. * @param x SummaryUpdate object to compare. */ eProsima_user_DllExport bool operator ==( const SummaryUpdate& x) const { return (m_License == x.m_License && m_StableValue == x.m_StableValue); } /*! * @brief Comparison operator. * @param x SummaryUpdate object to compare. */ eProsima_user_DllExport bool operator !=( const SummaryUpdate& x) const { return !(*this == x); } /*! * @brief This function copies the value in member License * @param _License New value to be copied in member License */ eProsima_user_DllExport void License( const std::string& _License) { m_License = _License; } /*! * @brief This function moves the value in member License * @param _License New value to be moved in member License */ eProsima_user_DllExport void License( std::string&& _License) { m_License = std::move(_License); } /*! * @brief This function returns a constant reference to member License * @return Constant reference to member License */ eProsima_user_DllExport const std::string& License() const { return m_License; } /*! * @brief This function returns a reference to member License * @return Reference to member License */ eProsima_user_DllExport std::string& License() { return m_License; } /*! * @brief This function sets a value in member StableValue * @param _StableValue New value for member StableValue */ eProsima_user_DllExport void StableValue( float _StableValue) { m_StableValue = _StableValue; } /*! * @brief This function returns the value of member StableValue * @return Value of member StableValue */ eProsima_user_DllExport float StableValue() const { return m_StableValue; } /*! * @brief This function returns a reference to member StableValue * @return Reference to member StableValue */ eProsima_user_DllExport float& StableValue() { return m_StableValue; } private: std::string m_License; float m_StableValue{0.0}; }; /*! * @brief This class represents the structure ReadCardReq defined by the user in the IDL file. * @ingroup WeighingDDSType */ class ReadCardReq { public: /*! * @brief Default constructor. */ eProsima_user_DllExport ReadCardReq() { } /*! * @brief Default destructor. */ eProsima_user_DllExport ~ReadCardReq() { } /*! * @brief Copy constructor. * @param x Reference to the object ReadCardReq that will be copied. */ eProsima_user_DllExport ReadCardReq( const ReadCardReq& x) { m_index = x.m_index; m_msg = x.m_msg; } /*! * @brief Move constructor. * @param x Reference to the object ReadCardReq that will be copied. */ eProsima_user_DllExport ReadCardReq( ReadCardReq&& x) noexcept { m_index = x.m_index; m_msg = std::move(x.m_msg); } /*! * @brief Copy assignment. * @param x Reference to the object ReadCardReq that will be copied. */ eProsima_user_DllExport ReadCardReq& operator =( const ReadCardReq& x) { m_index = x.m_index; m_msg = x.m_msg; return *this; } /*! * @brief Move assignment. * @param x Reference to the object ReadCardReq that will be copied. */ eProsima_user_DllExport ReadCardReq& operator =( ReadCardReq&& x) noexcept { m_index = x.m_index; m_msg = std::move(x.m_msg); return *this; } /*! * @brief Comparison operator. * @param x ReadCardReq object to compare. */ eProsima_user_DllExport bool operator ==( const ReadCardReq& x) const { return (m_index == x.m_index && m_msg == x.m_msg); } /*! * @brief Comparison operator. * @param x ReadCardReq object to compare. */ eProsima_user_DllExport bool operator !=( const ReadCardReq& 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>& _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>&& _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>& msg() const { return m_msg; } /*! * @brief This function returns a reference to member msg * @return Reference to member msg */ eProsima_user_DllExport std::map>& msg() { return m_msg; } private: uint32_t m_index{0}; std::map> m_msg; }; /*! * @brief This class represents the structure ReadCardRsp defined by the user in the IDL file. * @ingroup WeighingDDSType */ class ReadCardRsp { public: /*! * @brief Default constructor. */ eProsima_user_DllExport ReadCardRsp() { } /*! * @brief Default destructor. */ eProsima_user_DllExport ~ReadCardRsp() { } /*! * @brief Copy constructor. * @param x Reference to the object ReadCardRsp that will be copied. */ eProsima_user_DllExport ReadCardRsp( const ReadCardRsp& x) { m_index = x.m_index; m_msg = x.m_msg; } /*! * @brief Move constructor. * @param x Reference to the object ReadCardRsp that will be copied. */ eProsima_user_DllExport ReadCardRsp( ReadCardRsp&& x) noexcept { m_index = x.m_index; m_msg = std::move(x.m_msg); } /*! * @brief Copy assignment. * @param x Reference to the object ReadCardRsp that will be copied. */ eProsima_user_DllExport ReadCardRsp& operator =( const ReadCardRsp& x) { m_index = x.m_index; m_msg = x.m_msg; return *this; } /*! * @brief Move assignment. * @param x Reference to the object ReadCardRsp that will be copied. */ eProsima_user_DllExport ReadCardRsp& operator =( ReadCardRsp&& x) noexcept { m_index = x.m_index; m_msg = std::move(x.m_msg); return *this; } /*! * @brief Comparison operator. * @param x ReadCardRsp object to compare. */ eProsima_user_DllExport bool operator ==( const ReadCardRsp& x) const { return (m_index == x.m_index && m_msg == x.m_msg); } /*! * @brief Comparison operator. * @param x ReadCardRsp object to compare. */ eProsima_user_DllExport bool operator !=( const ReadCardRsp& 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>& _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>&& _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>& msg() const { return m_msg; } /*! * @brief This function returns a reference to member msg * @return Reference to member msg */ eProsima_user_DllExport std::map>& msg() { return m_msg; } private: uint32_t m_index{0}; std::map> m_msg; }; /*! * @brief This class represents the structure PrintReq defined by the user in the IDL file. * @ingroup WeighingDDSType */ 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& _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&& _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& msg() const { return m_msg; } /*! * @brief This function returns a reference to member msg * @return Reference to member msg */ eProsima_user_DllExport std::map& msg() { return m_msg; } private: uint32_t m_index{0}; std::map m_msg; }; /*! * @brief This class represents the structure PrintRsp defined by the user in the IDL file. * @ingroup WeighingDDSType */ 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; }; } // namespace WeighingSystem #endif // _FAST_DDS_GENERATED_WEIGHINGSYSTEM_WEIGHINGDDSTYPE_HPP_