Skip to content

Commit

Permalink
Adjust for Fast DDS public headers migration to .hpp (#825)
Browse files Browse the repository at this point in the history
* Refs #21128: Regenerate types

Signed-off-by: JesusPoderoso <[email protected]>

* Refs #21128: Set all .h includes as .hpp

Signed-off-by: JesusPoderoso <[email protected]>

* Refs #21128: Fix build

Signed-off-by: JesusPoderoso <[email protected]>

---------

Signed-off-by: JesusPoderoso <[email protected]>
  • Loading branch information
JesusPoderoso authored Jun 27, 2024
1 parent 6e7f076 commit e2b24df
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 43 deletions.
16 changes: 8 additions & 8 deletions code/CodeTester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
#include <fastdds/dds/log/Log.hpp>
#include <fastdds/dds/subscriber/SampleInfo.hpp>
#include <fastdds/dds/topic/TopicDataType.hpp>
#include <fastdds/rtps/history/ReaderHistory.h>
#include <fastdds/rtps/history/WriterHistory.h>
#include <fastdds/rtps/participant/RTPSParticipant.h>
#include <fastdds/rtps/reader/ReaderListener.h>
#include <fastdds/rtps/reader/RTPSReader.h>
#include <fastdds/rtps/RTPSDomain.h>
#include <fastdds/rtps/writer/RTPSWriter.h>
#include <fastdds/utils/IPLocator.h>
#include <fastdds/rtps/history/ReaderHistory.hpp>
#include <fastdds/rtps/history/WriterHistory.hpp>
#include <fastdds/rtps/participant/RTPSParticipant.hpp>
#include <fastdds/rtps/reader/ReaderListener.hpp>
#include <fastdds/rtps/reader/RTPSReader.hpp>
#include <fastdds/rtps/RTPSDomain.hpp>
#include <fastdds/rtps/writer/RTPSWriter.hpp>
#include <fastdds/utils/IPLocator.hpp>

using namespace eprosima::fastdds::dds;
using namespace eprosima::fastdds;
Expand Down
24 changes: 12 additions & 12 deletions code/DDSCodeTester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,24 @@
#include <fastdds/dds/xtypes/dynamic_types/DynamicTypeBuilderFactory.hpp>
#include <fastdds/dds/xtypes/type_representation/TypeObject.hpp>
#include <fastdds/rtps/attributes/ThreadSettings.hpp>
#include <fastdds/rtps/common/WriteParams.h>
#include <fastdds/rtps/history/IPayloadPool.h>
#include <fastdds/rtps/transport/ChainingTransport.h>
#include <fastdds/rtps/transport/ChainingTransportDescriptor.h>
#include <fastdds/rtps/common/WriteParams.hpp>
#include <fastdds/rtps/history/IPayloadPool.hpp>
#include <fastdds/rtps/transport/ChainingTransport.hpp>
#include <fastdds/rtps/transport/ChainingTransportDescriptor.hpp>
#include <fastdds/rtps/transport/network/AllowedNetworkInterface.hpp>
#include <fastdds/rtps/transport/network/BlockedNetworkInterface.hpp>
#include <fastdds/rtps/transport/network/NetmaskFilterKind.hpp>
#include <fastdds/rtps/transport/shared_mem/SharedMemTransportDescriptor.h>
#include <fastdds/rtps/transport/TCPTransportDescriptor.h>
#include <fastdds/rtps/transport/TCPv4TransportDescriptor.h>
#include <fastdds/rtps/transport/TCPv6TransportDescriptor.h>
#include <fastdds/rtps/transport/UDPv4TransportDescriptor.h>
#include <fastdds/rtps/transport/UDPv6TransportDescriptor.h>
#include <fastdds/rtps/transport/shared_mem/SharedMemTransportDescriptor.hpp>
#include <fastdds/rtps/transport/TCPTransportDescriptor.hpp>
#include <fastdds/rtps/transport/TCPv4TransportDescriptor.hpp>
#include <fastdds/rtps/transport/TCPv6TransportDescriptor.hpp>
#include <fastdds/rtps/transport/UDPv4TransportDescriptor.hpp>
#include <fastdds/rtps/transport/UDPv6TransportDescriptor.hpp>
#include <fastdds/rtps/transport/NetworkBuffer.hpp>
#include <fastdds/statistics/dds/domain/DomainParticipant.hpp>
#include <fastdds/statistics/dds/publisher/qos/DataWriterQos.hpp>
#include <fastdds/statistics/topic_names.hpp>
#include <fastdds/utils/IPLocator.h>
#include <fastdds/utils/IPLocator.hpp>

using namespace eprosima::fastdds::dds;

Expand Down Expand Up @@ -6975,7 +6975,7 @@ class LoanableHelloWorldPubSubType : public eprosima::fastdds::dds::TopicDataTyp
return true;
}

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

Expand Down
4 changes: 2 additions & 2 deletions code/Examples/C++/DDSHelloWorld/src/HelloWorld.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_HELLOWORLD_HPP_
#define _FAST_DDS_GENERATED_HELLOWORLD_HPP_
#ifndef FAST_DDS_GENERATED__HELLOWORLD_HPP
#define FAST_DDS_GENERATED__HELLOWORLD_HPP

#include <cstdint>
#include <string>
Expand Down
6 changes: 3 additions & 3 deletions code/Examples/C++/DDSHelloWorld/src/HelloWorldCdrAux.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_HELLOWORLDCDRAUX_HPP_
#define _FAST_DDS_GENERATED_HELLOWORLDCDRAUX_HPP_
#ifndef FAST_DDS_GENERATED__HELLOWORLDCDRAUX_HPP
#define FAST_DDS_GENERATED__HELLOWORLDCDRAUX_HPP

#include "HelloWorld.hpp"

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

#endif // _FAST_DDS_GENERATED_HELLOWORLDCDRAUX_HPP_
#endif // FAST_DDS_GENERATED__HELLOWORLDCDRAUX_HPP

6 changes: 3 additions & 3 deletions code/Examples/C++/DDSHelloWorld/src/HelloWorldCdrAux.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_HELLOWORLDCDRAUX_IPP_
#define _FAST_DDS_GENERATED_HELLOWORLDCDRAUX_IPP_
#ifndef FAST_DDS_GENERATED__HELLOWORLDCDRAUX_IPP
#define FAST_DDS_GENERATED__HELLOWORLDCDRAUX_IPP

#include "HelloWorldCdrAux.hpp"

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

#endif // _FAST_DDS_GENERATED_HELLOWORLDCDRAUX_IPP_
#endif // FAST_DDS_GENERATED__HELLOWORLDCDRAUX_IPP

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 "HelloWorldPubSubTypes.h"
#include "HelloWorldPubSubTypes.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 HelloWorldPubSubTypes.h
* @file HelloWorldPubSubTypes.hpp
* This header file contains the declaration of the serialization functions.
*
* This file was generated by the tool fastddsgen.
*/


#ifndef _FAST_DDS_GENERATED_HELLOWORLD_PUBSUBTYPES_H_
#define _FAST_DDS_GENERATED_HELLOWORLD_PUBSUBTYPES_H_
#ifndef FAST_DDS_GENERATED__HELLOWORLD_PUBSUBTYPES_HPP
#define FAST_DDS_GENERATED__HELLOWORLD_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 "HelloWorld.hpp"

Expand Down Expand Up @@ -106,7 +106,7 @@ class HelloWorldPubSubType : 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 HelloWorldPubSubType : 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_HELLOWORLD_PUBSUBTYPES_H_
#endif // FAST_DDS_GENERATED__HELLOWORLD_PUBSUBTYPES_HPP

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

#include "HelloWorldPubSubTypes.h"
#include "HelloWorldPubSubTypes.hpp"

#include <chrono>
#include <thread>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

#include "HelloWorldPubSubTypes.h"
#include "HelloWorldPubSubTypes.hpp"

#include <chrono>
#include <thread>
Expand Down
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_HELLOWORLD_TYPE_OBJECT_SUPPORT_HPP_
#define _FAST_DDS_GENERATED_HELLOWORLD_TYPE_OBJECT_SUPPORT_HPP_
#ifndef FAST_DDS_GENERATED__HELLOWORLD_TYPE_OBJECT_SUPPORT_HPP
#define FAST_DDS_GENERATED__HELLOWORLD_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_HelloWorld_type_identifier(

#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC

#endif // _FAST_DDS_GENERATED_HELLOWORLD_TYPE_OBJECT_SUPPORT_HPP_
#endif // FAST_DDS_GENERATED__HELLOWORLD_TYPE_OBJECT_SUPPORT_HPP

0 comments on commit e2b24df

Please sign in to comment.