Skip to content

Commit

Permalink
Adjust for Fast DDS public headers migration to .hpp (#148)
Browse files Browse the repository at this point in the history
* Refs #21128: Update headers from .h to .hpp

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #21128: Update Shape types with Gen's PR

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #21128: Update Keyless Shape types with Gen's PR

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #21128: Update PubSubTypes.hpp references

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

---------

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>
  • Loading branch information
JesusPoderoso authored Jun 27, 2024
1 parent dc0e829 commit 01e6bf0
Show file tree
Hide file tree
Showing 21 changed files with 64 additions and 64 deletions.
8 changes: 4 additions & 4 deletions include/eprosimashapesdemo/shapesdemo/ShapeInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
#include <QString>
#include <sstream>

#include <fastdds/rtps/common/Guid.h>
#include <fastdds/rtps/common/InstanceHandle.h>
#include <fastdds/rtps/common/Time_t.h>
#include <fastdds/rtps/common/Guid.hpp>
#include <fastdds/rtps/common/InstanceHandle.hpp>
#include <fastdds/rtps/common/Time_t.hpp>

#include "eprosimashapesdemo/shapesdemo/ShapeDefinitions.h"
#include "types/ShapePubSubTypes.h"
#include "types/ShapePubSubTypes.hpp"

using namespace eprosima::fastdds;

Expand Down
6 changes: 3 additions & 3 deletions include/eprosimashapesdemo/shapesdemo/ShapesDemo.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
#include <fastdds/dds/subscriber/Subscriber.hpp>
#include <fastdds/dds/topic/TopicDescription.hpp>
#include <fastdds/dds/topic/TypeSupport.hpp>
#include <fastdds/rtps/common/Guid.h>
#include <fastdds/rtps/writer/WriterDiscoveryInfo.h>
#include <fastdds/rtps/common/Guid.hpp>
#include <fastdds/rtps/writer/WriterDiscoveryInfo.hpp>

#include "eprosimashapesdemo/shapesdemo/ShapeDefinitions.h"
#include "types/ShapePubSubTypes.h"
#include "types/ShapePubSubTypes.hpp"

using namespace eprosima::fastdds::dds;

Expand Down
2 changes: 1 addition & 1 deletion src/qt/optionsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with eProsima Fast DDS Shapes Demo. If not, see <https://www.gnu.org/licenses/>.

#include <fastdds/config.h> // FASTDDS_STATISTICS availability
#include <fastdds/config.hpp> // FASTDDS_STATISTICS availability

#include "eprosimashapesdemo/qt/optionsdialog.h"
#include "ui_optionsdialog.h"
Expand Down
2 changes: 1 addition & 1 deletion src/qt/participantdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <fastdds/config.h> // FASTDDS_STATISTICS availability
#include <fastdds/config.hpp> // FASTDDS_STATISTICS availability

#include "eprosimashapesdemo/qt/participantdialog.h"
#include "ui_participantdialog.h"
Expand Down
2 changes: 1 addition & 1 deletion src/qt/publishdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <fastdds/dds/publisher/qos/DataWriterQos.hpp>
#include <fastdds/dds/publisher/qos/PublisherQos.hpp>
#include <fastdds/rtps/common/Time_t.h>
#include <fastdds/rtps/common/Time_t.hpp>

#include <eprosimashapesdemo/qt/mainwindow.h>

Expand Down
2 changes: 1 addition & 1 deletion src/qt/subscribedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include <fastdds/dds/subscriber/qos/DataReaderQos.hpp>
#include <fastdds/dds/subscriber/qos/SubscriberQos.hpp>
#include <fastdds/rtps/common/Time_t.h>
#include <fastdds/rtps/common/Time_t.hpp>

#include <QIntValidator>
#include <QMessageBox>
Expand Down
4 changes: 2 additions & 2 deletions src/shapesdemo/ShapeHistory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

#include <cmath>

#include <fastdds/rtps/common/Guid.h>
#include <fastdds/rtps/common/Time_t.h>
#include <fastdds/rtps/common/Guid.hpp>
#include <fastdds/rtps/common/Time_t.hpp>

#include <eprosimashapesdemo/shapesdemo/ShapeHistory.h>

Expand Down
2 changes: 1 addition & 1 deletion src/shapesdemo/ShapeSubscriber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include <fastdds/dds/builtin/topic/PublicationBuiltinTopicData.hpp>
#include <fastdds/dds/subscriber/SampleInfo.hpp>
#include <fastdds/rtps/common/InstanceHandle.h>
#include <fastdds/rtps/common/InstanceHandle.hpp>

#include <eprosimashapesdemo/qt/ContentFilterSelector.h>
#include <eprosimashapesdemo/qt/mainwindow.h>
Expand Down
16 changes: 8 additions & 8 deletions src/shapesdemo/ShapesDemo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@
#include <iostream>
#include <sstream>

#include <fastdds/config.h> // FASTDDS_STATISTICS availability
#include <fastdds/config.hpp> // FASTDDS_STATISTICS availability
#include <fastdds/dds/domain/qos/DomainParticipantQos.hpp>
#include <fastdds/rtps/common/CDRMessage_t.h>
#include <fastdds/rtps/transport/shared_mem/SharedMemTransportDescriptor.h>
#include <fastdds/rtps/transport/TCPv4TransportDescriptor.h>
#include <fastdds/rtps/transport/UDPv4TransportDescriptor.h>
#include <fastdds/rtps/transport/test_UDPv4TransportDescriptor.h>
#include <fastdds/utils/IPLocator.h>
#include <fastdds/rtps/common/CDRMessage_t.hpp>
#include <fastdds/rtps/transport/shared_mem/SharedMemTransportDescriptor.hpp>
#include <fastdds/rtps/transport/TCPv4TransportDescriptor.hpp>
#include <fastdds/rtps/transport/UDPv4TransportDescriptor.hpp>
#include <fastdds/rtps/transport/test_UDPv4TransportDescriptor.hpp>
#include <fastdds/utils/IPLocator.hpp>

#include <eprosimashapesdemo/qt/mainwindow.h>
#include <eprosimashapesdemo/shapesdemo/ShapeInfo.h>
#include <eprosimashapesdemo/shapesdemo/ShapePublisher.h>
#include <eprosimashapesdemo/shapesdemo/ShapeSubscriber.h>
#ifdef ENABLE_ROS_COMPONENTS
#include <types/KeylessShapeTypePubSubTypes.h>
#include <types/KeylessShapeTypePubSubTypes.hpp>
#endif // ifdef ENABLE_ROS_COMPONENTS

using namespace eprosima::fastdds::dds;
Expand Down
4 changes: 2 additions & 2 deletions types/KeylessShapeType.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* This file was generated by the tool fastddsgen.
*/

#ifndef _FAST_DDS_GENERATED_SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPE_HPP_
#define _FAST_DDS_GENERATED_SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPE_HPP_
#ifndef FAST_DDS_GENERATED__SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPE_HPP
#define FAST_DDS_GENERATED__SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPE_HPP

#include <cstdint>
#include <string>
Expand Down
6 changes: 3 additions & 3 deletions types/KeylessShapeTypeCdrAux.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* This file was generated by the tool fastddsgen.
*/

#ifndef _FAST_DDS_GENERATED_SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPECDRAUX_HPP_
#define _FAST_DDS_GENERATED_SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPECDRAUX_HPP_
#ifndef FAST_DDS_GENERATED__SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPECDRAUX_HPP
#define FAST_DDS_GENERATED__SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPECDRAUX_HPP

#include "KeylessShapeType.hpp"

Expand All @@ -42,5 +42,5 @@ eProsima_user_DllExport void serialize_key(
} // namespace fastcdr
} // namespace eprosima

#endif // _FAST_DDS_GENERATED_SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPECDRAUX_HPP_
#endif // FAST_DDS_GENERATED__SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPECDRAUX_HPP

6 changes: 3 additions & 3 deletions types/KeylessShapeTypeCdrAux.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* This file was generated by the tool fastddsgen.
*/

#ifndef _FAST_DDS_GENERATED_SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPECDRAUX_IPP_
#define _FAST_DDS_GENERATED_SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPECDRAUX_IPP_
#ifndef FAST_DDS_GENERATED__SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPECDRAUX_IPP
#define FAST_DDS_GENERATED__SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPECDRAUX_IPP

#include "KeylessShapeTypeCdrAux.hpp"

Expand Down Expand Up @@ -146,5 +146,5 @@ void serialize_key(
} // namespace fastcdr
} // namespace eprosima

#endif // _FAST_DDS_GENERATED_SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPECDRAUX_IPP_
#endif // FAST_DDS_GENERATED__SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPECDRAUX_IPP

2 changes: 1 addition & 1 deletion types/KeylessShapeTypePubSubTypes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* This file was generated by the tool fastddsgen.
*/

#include "KeylessShapeTypePubSubTypes.h"
#include "KeylessShapeTypePubSubTypes.hpp"

#include <fastdds/dds/log/Log.hpp>
#include <fastdds/rtps/common/CdrSerialization.hpp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@
// limitations under the License.

/*!
* @file KeylessShapeTypePubSubTypes.h
* @file KeylessShapeTypePubSubTypes.hpp
* This header file contains the declaration of the serialization functions.
*
* This file was generated by the tool fastddsgen.
*/


#ifndef _FAST_DDS_GENERATED_SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPE_PUBSUBTYPES_H_
#define _FAST_DDS_GENERATED_SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPE_PUBSUBTYPES_H_
#ifndef FAST_DDS_GENERATED__SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPE_PUBSUBTYPES_HPP
#define FAST_DDS_GENERATED__SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPE_PUBSUBTYPES_HPP

#include <fastdds/dds/core/policy/QosPolicies.hpp>
#include <fastdds/dds/topic/TopicDataType.hpp>
#include <fastdds/rtps/common/InstanceHandle.h>
#include <fastdds/rtps/common/SerializedPayload.h>
#include <fastdds/utils/md5.h>
#include <fastdds/rtps/common/InstanceHandle.hpp>
#include <fastdds/rtps/common/SerializedPayload.hpp>
#include <fastdds/utils/md5.hpp>

#include "KeylessShapeType.hpp"

Expand Down Expand Up @@ -110,7 +110,7 @@ namespace shapes_demo_typesupport
}

eProsima_user_DllExport inline bool is_plain(
eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override
eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override
{
static_cast<void>(data_representation);
return false;
Expand All @@ -128,12 +128,12 @@ namespace shapes_demo_typesupport

#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE

MD5 m_md5;
eprosima::fastdds::MD5 m_md5;
unsigned char* m_keyBuffer;

};
} // namespace idl
} // namespace shapes_demo_typesupport

#endif // _FAST_DDS_GENERATED_SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPE_PUBSUBTYPES_H_
#endif // FAST_DDS_GENERATED__SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPE_PUBSUBTYPES_HPP

6 changes: 3 additions & 3 deletions types/KeylessShapeTypeTypeObjectSupport.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* This file was generated by the tool fastddsgen.
*/

#ifndef _FAST_DDS_GENERATED_SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPE_TYPE_OBJECT_SUPPORT_HPP_
#define _FAST_DDS_GENERATED_SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPE_TYPE_OBJECT_SUPPORT_HPP_
#ifndef FAST_DDS_GENERATED__SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPE_TYPE_OBJECT_SUPPORT_HPP
#define FAST_DDS_GENERATED__SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPE_TYPE_OBJECT_SUPPORT_HPP

#include <fastdds/dds/xtypes/type_representation/TypeObject.hpp>

Expand Down Expand Up @@ -59,4 +59,4 @@ eProsima_user_DllExport void register_KeylessShapeType_type_identifier(

#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC

#endif // _FAST_DDS_GENERATED_SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPE_TYPE_OBJECT_SUPPORT_HPP_
#endif // FAST_DDS_GENERATED__SHAPES_DEMO_TYPESUPPORT_IDL_KEYLESSSHAPETYPE_TYPE_OBJECT_SUPPORT_HPP
4 changes: 2 additions & 2 deletions types/Shape.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* This file was generated by the tool fastddsgen.
*/

#ifndef _FAST_DDS_GENERATED_SHAPE_HPP_
#define _FAST_DDS_GENERATED_SHAPE_HPP_
#ifndef FAST_DDS_GENERATED__SHAPE_HPP
#define FAST_DDS_GENERATED__SHAPE_HPP

#include <cstdint>
#include <string>
Expand Down
6 changes: 3 additions & 3 deletions types/ShapeCdrAux.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* This file was generated by the tool fastddsgen.
*/

#ifndef _FAST_DDS_GENERATED_SHAPECDRAUX_HPP_
#define _FAST_DDS_GENERATED_SHAPECDRAUX_HPP_
#ifndef FAST_DDS_GENERATED__SHAPECDRAUX_HPP
#define FAST_DDS_GENERATED__SHAPECDRAUX_HPP

#include "Shape.hpp"

Expand All @@ -42,5 +42,5 @@ eProsima_user_DllExport void serialize_key(
} // namespace fastcdr
} // namespace eprosima

#endif // _FAST_DDS_GENERATED_SHAPECDRAUX_HPP_
#endif // FAST_DDS_GENERATED__SHAPECDRAUX_HPP

6 changes: 3 additions & 3 deletions types/ShapeCdrAux.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* This file was generated by the tool fastddsgen.
*/

#ifndef _FAST_DDS_GENERATED_SHAPECDRAUX_IPP_
#define _FAST_DDS_GENERATED_SHAPECDRAUX_IPP_
#ifndef FAST_DDS_GENERATED__SHAPECDRAUX_IPP
#define FAST_DDS_GENERATED__SHAPECDRAUX_IPP

#include "ShapeCdrAux.hpp"

Expand Down Expand Up @@ -143,5 +143,5 @@ void serialize_key(
} // namespace fastcdr
} // namespace eprosima

#endif // _FAST_DDS_GENERATED_SHAPECDRAUX_IPP_
#endif // FAST_DDS_GENERATED__SHAPECDRAUX_IPP

2 changes: 1 addition & 1 deletion types/ShapePubSubTypes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* This file was generated by the tool fastddsgen.
*/

#include "ShapePubSubTypes.h"
#include "ShapePubSubTypes.hpp"

#include <fastdds/dds/log/Log.hpp>
#include <fastdds/rtps/common/CdrSerialization.hpp>
Expand Down
18 changes: 9 additions & 9 deletions types/ShapePubSubTypes.h → types/ShapePubSubTypes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@
// limitations under the License.

/*!
* @file ShapePubSubTypes.h
* @file ShapePubSubTypes.hpp
* This header file contains the declaration of the serialization functions.
*
* This file was generated by the tool fastddsgen.
*/


#ifndef _FAST_DDS_GENERATED_SHAPE_PUBSUBTYPES_H_
#define _FAST_DDS_GENERATED_SHAPE_PUBSUBTYPES_H_
#ifndef FAST_DDS_GENERATED__SHAPE_PUBSUBTYPES_HPP
#define FAST_DDS_GENERATED__SHAPE_PUBSUBTYPES_HPP

#include <fastdds/dds/core/policy/QosPolicies.hpp>
#include <fastdds/dds/topic/TopicDataType.hpp>
#include <fastdds/rtps/common/InstanceHandle.h>
#include <fastdds/rtps/common/SerializedPayload.h>
#include <fastdds/utils/md5.h>
#include <fastdds/rtps/common/InstanceHandle.hpp>
#include <fastdds/rtps/common/SerializedPayload.hpp>
#include <fastdds/utils/md5.hpp>

#include "Shape.hpp"

Expand Down Expand Up @@ -106,7 +106,7 @@ class ShapeTypePubSubType : public eprosima::fastdds::dds::TopicDataType
}

eProsima_user_DllExport inline bool is_plain(
eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override
eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override
{
static_cast<void>(data_representation);
return false;
Expand All @@ -124,10 +124,10 @@ class ShapeTypePubSubType : public eprosima::fastdds::dds::TopicDataType

#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE

MD5 m_md5;
eprosima::fastdds::MD5 m_md5;
unsigned char* m_keyBuffer;

};

#endif // _FAST_DDS_GENERATED_SHAPE_PUBSUBTYPES_H_
#endif // FAST_DDS_GENERATED__SHAPE_PUBSUBTYPES_HPP

6 changes: 3 additions & 3 deletions types/ShapeTypeObjectSupport.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* This file was generated by the tool fastddsgen.
*/

#ifndef _FAST_DDS_GENERATED_SHAPE_TYPE_OBJECT_SUPPORT_HPP_
#define _FAST_DDS_GENERATED_SHAPE_TYPE_OBJECT_SUPPORT_HPP_
#ifndef FAST_DDS_GENERATED__SHAPE_TYPE_OBJECT_SUPPORT_HPP
#define FAST_DDS_GENERATED__SHAPE_TYPE_OBJECT_SUPPORT_HPP

#include <fastdds/dds/xtypes/type_representation/TypeObject.hpp>

Expand Down Expand Up @@ -53,4 +53,4 @@ eProsima_user_DllExport void register_ShapeType_type_identifier(

#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC

#endif // _FAST_DDS_GENERATED_SHAPE_TYPE_OBJECT_SUPPORT_HPP_
#endif // FAST_DDS_GENERATED__SHAPE_TYPE_OBJECT_SUPPORT_HPP

0 comments on commit 01e6bf0

Please sign in to comment.