Skip to content

Commit

Permalink
Refs #21095: update headers
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Dominguez <[email protected]>
  • Loading branch information
Mario-DL committed Jul 3, 2024
1 parent b87274d commit 1c39079
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 167 deletions.
10 changes: 5 additions & 5 deletions examples/cpp/discovery_server/ClientPublisherApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
#include <fastdds/dds/publisher/Publisher.hpp>
#include <fastdds/dds/publisher/qos/DataWriterQos.hpp>
#include <fastdds/dds/publisher/qos/PublisherQos.hpp>
#include <fastdds/rtps/transport/shared_mem/SharedMemTransportDescriptor.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/TCPv4TransportDescriptor.hpp>
#include <fastdds/rtps/transport/TCPv6TransportDescriptor.hpp>
#include <fastdds/rtps/transport/UDPv4TransportDescriptor.hpp>
#include <fastdds/rtps/transport/UDPv6TransportDescriptor.hpp>

using namespace eprosima::fastdds::dds;

Expand Down
2 changes: 1 addition & 1 deletion examples/cpp/discovery_server/ClientPublisherApp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

#include "Application.hpp"
#include "CLIParser.hpp"
#include "HelloWorldPubSubTypes.h"
#include "HelloWorldPubSubTypes.hpp"

using namespace eprosima::fastdds::dds;

Expand Down
11 changes: 5 additions & 6 deletions examples/cpp/discovery_server/ClientSubscriberApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,13 @@
#include <fastdds/dds/subscriber/qos/SubscriberQos.hpp>
#include <fastdds/dds/subscriber/SampleInfo.hpp>
#include <fastdds/dds/subscriber/Subscriber.hpp>
#include <fastdds/rtps/transport/shared_mem/SharedMemTransportDescriptor.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/TCPv4TransportDescriptor.hpp>
#include <fastdds/rtps/transport/TCPv6TransportDescriptor.hpp>
#include <fastdds/rtps/transport/UDPv4TransportDescriptor.hpp>
#include <fastdds/rtps/transport/UDPv6TransportDescriptor.hpp>

#include "CLIParser.hpp"
#include "HelloWorldPubSubTypes.h"
#include "Application.hpp"

using namespace eprosima::fastdds::dds;
Expand Down
2 changes: 1 addition & 1 deletion examples/cpp/discovery_server/ClientSubscriberApp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <fastdds/dds/topic/TypeSupport.hpp>

#include "CLIParser.hpp"
#include "HelloWorldPubSubTypes.h"
#include "HelloWorldPubSubTypes.hpp"
#include "Application.hpp"

using namespace eprosima::fastdds::dds;
Expand Down
133 changes: 0 additions & 133 deletions examples/cpp/discovery_server/HelloWorldPubSubTypes.h

This file was deleted.

17 changes: 2 additions & 15 deletions examples/cpp/discovery_server/Helpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
#ifndef _FASTDDS_DISCOVERY_SERVER_EXAMPLE_HELPERS_HPP_
#define _FASTDDS_DISCOVERY_SERVER_EXAMPLE_HELPERS_HPP_

#include <fastdds/rtps/attributes/ServerAttributes.h>
#include <fastdds/utils/IPLocator.h>
#include <fastdds/rtps/common/GuidPrefix_t.hpp>
#include <fastdds/utils/IPLocator.hpp>

//! Transport kind enumeration
enum class TransportKind : uint8_t
Expand All @@ -33,19 +33,6 @@ enum class TransportKind : uint8_t
SHM,
};

inline eprosima::fastdds::rtps::GuidPrefix_t get_discovery_server_guid_from_id(
unsigned short id)
{
eprosima::fastdds::rtps::GuidPrefix_t result;

// Get default DS guid and modify the one value expected to be changed
std::istringstream(eprosima::fastdds::rtps::DEFAULT_ROS2_SERVER_GUIDPREFIX) >> result;
result.value[2] =
static_cast<eprosima::fastdds::rtps::octet>(id); // This is done like this in Fast

return result;
}

inline bool is_ip(
const std::string ip_str)
{
Expand Down
10 changes: 5 additions & 5 deletions examples/cpp/discovery_server/ServerApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
#include <fastdds/dds/publisher/Publisher.hpp>
#include <fastdds/dds/publisher/qos/DataWriterQos.hpp>
#include <fastdds/dds/publisher/qos/PublisherQos.hpp>
#include <fastdds/rtps/transport/shared_mem/SharedMemTransportDescriptor.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/TCPv4TransportDescriptor.hpp>
#include <fastdds/rtps/transport/TCPv6TransportDescriptor.hpp>
#include <fastdds/rtps/transport/UDPv4TransportDescriptor.hpp>
#include <fastdds/rtps/transport/UDPv6TransportDescriptor.hpp>

using namespace eprosima::fastdds::dds;

Expand Down
2 changes: 1 addition & 1 deletion examples/cpp/discovery_server/ServerApp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

#include "Application.hpp"
#include "CLIParser.hpp"
#include "HelloWorldPubSubTypes.h"
#include "HelloWorldPubSubTypes.hpp"

using namespace eprosima::fastdds::dds;

Expand Down

0 comments on commit 1c39079

Please sign in to comment.