Skip to content

Commit

Permalink
Refs #21266: Fix header position and README
Browse files Browse the repository at this point in the history
Signed-off-by: Carlosespicur <carlosespicur@proton.me>
  • Loading branch information
Carlosespicur committed Jul 11, 2024
1 parent d8d3bf0 commit 0076d34
Show file tree
Hide file tree
Showing 83 changed files with 188 additions and 170 deletions.
2 changes: 1 addition & 1 deletion examples/cpp/configuration/Application.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ class Application
} // namespace fastdds
} // namespace eprosima

#endif /* FASTDDS_EXAMPLES_CPP_CONFIGURATION__APPLICATION_HPP */
#endif // FASTDDS_EXAMPLES_CPP_CONFIGURATION__APPLICATION_HPP
6 changes: 3 additions & 3 deletions examples/cpp/configuration/CLIParser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
#include <fastdds/rtps/attributes/BuiltinTransports.hpp>
#include <fastdds/dds/core/policy/QosPolicies.hpp>

#ifndef FASTDDS_EXAMPLES_CPP_CONFIGURATION__CLI_PARSER_HPP
#define FASTDDS_EXAMPLES_CPP_CONFIGURATION__CLI_PARSER_HPP
#ifndef FASTDDS_EXAMPLES_CPP_CONFIGURATION__CLIPARSER_HPP
#define FASTDDS_EXAMPLES_CPP_CONFIGURATION__CLIPARSER_HPP

namespace eprosima {
namespace fastdds {
Expand Down Expand Up @@ -1137,4 +1137,4 @@ class CLIParser
} // namespace fastdds
} // namespace eprosima

#endif // FASTDDS_EXAMPLES_CPP_CONFIGURATION__CLI_PARSER_HPP
#endif // FASTDDS_EXAMPLES_CPP_CONFIGURATION__CLIPARSER_HPP
3 changes: 2 additions & 1 deletion examples/cpp/configuration/PublisherApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*
*/

#include "PublisherApp.hpp"

#include <algorithm>
#include <condition_variable>
#include <csignal>
Expand All @@ -34,7 +36,6 @@
#include <fastdds/rtps/transport/UDPv6TransportDescriptor.hpp>

#include "ConfigurationPubSubTypes.hpp"
#include "PublisherApp.hpp"

using namespace eprosima::fastdds::dds;
using namespace eprosima::fastdds::rtps;
Expand Down
6 changes: 3 additions & 3 deletions examples/cpp/configuration/PublisherApp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
*
*/

#ifndef FASTDDS_EXAMPLES_CPP_CONFIGURATION__PUBLISHER_APP_HPP
#define FASTDDS_EXAMPLES_CPP_CONFIGURATION__PUBLISHER_APP_HPP
#ifndef FASTDDS_EXAMPLES_CPP_CONFIGURATION__PUBLISHERAPP_HPP
#define FASTDDS_EXAMPLES_CPP_CONFIGURATION__PUBLISHERAPP_HPP


#include <condition_variable>
Expand Down Expand Up @@ -118,4 +118,4 @@ class PublisherApp : public Application, public DataWriterListener
} // namespace fastdds
} // namespace eprosima

#endif /* FASTDDS_EXAMPLES_CPP_CONFIGURATION__PUBLISHER_APP_HPP */
#endif // FASTDDS_EXAMPLES_CPP_CONFIGURATION__PUBLISHERAPP_HPP
3 changes: 2 additions & 1 deletion examples/cpp/configuration/SubscriberApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*
*/

#include "SubscriberApp.hpp"

#include <condition_variable>
#include <stdexcept>

Expand All @@ -34,7 +36,6 @@
#include "Application.hpp"
#include "CLIParser.hpp"
#include "ConfigurationPubSubTypes.hpp"
#include "SubscriberApp.hpp"

using namespace eprosima::fastdds::dds;
using namespace eprosima::fastdds::rtps;
Expand Down
6 changes: 3 additions & 3 deletions examples/cpp/configuration/SubscriberApp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
*
*/

#ifndef FASTDDS_EXAMPLES_CPP_CONFIGURATION__SUBSCRIBER_APP_HPP
#define FASTDDS_EXAMPLES_CPP_CONFIGURATION__SUBSCRIBER_APP_HPP
#ifndef FASTDDS_EXAMPLES_CPP_CONFIGURATION__SUBSCRIBERAPP_HPP
#define FASTDDS_EXAMPLES_CPP_CONFIGURATION__SUBSCRIBERAPP_HPP

#include <atomic>
#include <condition_variable>
Expand Down Expand Up @@ -123,4 +123,4 @@ class SubscriberApp : public Application, public DataReaderListener
} // namespace fastdds
} // namespace eprosima

#endif /* FASTDDS_EXAMPLES_CPP_CONFIGURATION__SUBSCRIBER_APP_HPP */
#endif // FASTDDS_EXAMPLES_CPP_CONFIGURATION__SUBSCRIBERAPP_HPP
2 changes: 1 addition & 1 deletion examples/cpp/content_filter/Application.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ class Application
} // namespace fastdds
} // namespace eprosima

#endif /* FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__APPLICATION_HPP */
#endif // FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__APPLICATION_HPP
6 changes: 3 additions & 3 deletions examples/cpp/content_filter/CLIParser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

#include <fastdds/dds/log/Log.hpp>

#ifndef FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__CLI_PARSER_HPP
#define FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__CLI_PARSER_HPP
#ifndef FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__CLIPARSER_HPP
#define FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__CLIPARSER_HPP

namespace eprosima {
namespace fastdds {
Expand Down Expand Up @@ -465,4 +465,4 @@ class CLIParser
} // namespace fastdds
} // namespace eprosima

#endif // FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__CLI_PARSER_HPP
#endif // FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__CLIPARSER_HPP
6 changes: 3 additions & 3 deletions examples/cpp/content_filter/CustomContentFilter.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__CUSTOM_CONTENT_FILTER_HPP
#define FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__CUSTOM_CONTENT_FILTER_HPP
#ifndef FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__CUSTOMCONTENTFILTER_HPP
#define FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__CUSTOMCONTENTFILTER_HPP

#include <fastcdr/Cdr.h>

Expand Down Expand Up @@ -78,4 +78,4 @@ class CustomContentFilter : public eprosima::fastdds::dds::IContentFilter

};

#endif // FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__CUSTOM_CONTENT_FILTER_HPP
#endif // FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__CUSTOMCONTENTFILTER_HPP
6 changes: 3 additions & 3 deletions examples/cpp/content_filter/CustomContentFilterFactory.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__CUSTOM_CONTENT_FILTER_FACTORY_HPP
#define FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__CUSTOM_CONTENT_FILTER_FACTORY_HPP
#ifndef FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__CUSTOMCONTENTFILTERFACTORY_HPP
#define FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__CUSTOMCONTENTFILTERFACTORY_HPP

#include <fastdds/dds/topic/IContentFilter.hpp>
#include <fastdds/dds/topic/IContentFilterFactory.hpp>
Expand Down Expand Up @@ -88,4 +88,4 @@ class CustomContentFilterFactory : public eprosima::fastdds::dds::IContentFilter
}

};
#endif // FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__CUSTOM_CONTENT_FILTER_FACTORY_HPP
#endif // FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__CUSTOMCONTENTFILTERFACTORY_HPP
3 changes: 2 additions & 1 deletion examples/cpp/content_filter/PublisherApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*
*/

#include "PublisherApp.hpp"

#include <thread>

#include <fastdds/dds/core/status/PublicationMatchedStatus.hpp>
Expand All @@ -31,7 +33,6 @@

#include "HelloWorldPubSubTypes.hpp"
#include "HelloWorldTypeObjectSupport.hpp"
#include "PublisherApp.hpp"

namespace eprosima {
namespace fastdds {
Expand Down
6 changes: 3 additions & 3 deletions examples/cpp/content_filter/PublisherApp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
*
*/

#ifndef FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__PUBLISHER_APP_HPP
#define FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__PUBLISHER_APP_HPP
#ifndef FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__PUBLISHERAPP_HPP
#define FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__PUBLISHERAPP_HPP

#include <condition_variable>

Expand Down Expand Up @@ -95,4 +95,4 @@ class PublisherApp : public Application, public DataWriterListener
} // namespace fastdds
} // namespace eprosima

#endif // FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__PUBLISHER_APP_HPP
#endif // FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__PUBLISHERAPP_HPP
3 changes: 2 additions & 1 deletion examples/cpp/content_filter/SubscriberApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*
*/

#include "SubscriberApp.hpp"

#include <stdexcept>

#include <fastdds/dds/core/status/SubscriptionMatchedStatus.hpp>
Expand All @@ -31,7 +33,6 @@

#include "HelloWorldPubSubTypes.hpp"
#include "HelloWorldTypeObjectSupport.hpp"
#include "SubscriberApp.hpp"

namespace eprosima {
namespace fastdds {
Expand Down
6 changes: 3 additions & 3 deletions examples/cpp/content_filter/SubscriberApp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
*
*/

#ifndef FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__SUBSCRIBER_APP_HPP
#define FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__SUBSCRIBER_APP_HPP
#ifndef FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__SUBSCRIBERAPP_HPP
#define FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__SUBSCRIBERAPP_HPP

#include <atomic>
#include <condition_variable>
Expand Down Expand Up @@ -107,4 +107,4 @@ class SubscriberApp : public Application, public DataReaderListener
} // namespace fastdds
} // namespace eprosima

#endif // FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__SUBSCRIBER_APP_HPP
#endif // FASTDDS_EXAMPLES_CPP_CONTENT_FILTER__SUBSCRIBERAPP_HPP
2 changes: 1 addition & 1 deletion examples/cpp/custom_payload_pool/Application.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ class Application
} // namespace fastdds
} // namespace eprosima

#endif /* FASTDDS_EXAMPLES_CPP_CUSTOM_PAYLOAD_POOL__APPLICATION_HPP */
#endif // FASTDDS_EXAMPLES_CPP_CUSTOM_PAYLOAD_POOL__APPLICATION_HPP
6 changes: 3 additions & 3 deletions examples/cpp/custom_payload_pool/CLIParser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

#include <fastdds/dds/log/Log.hpp>

#ifndef FASTDDS_EXAMPLES_CPP_CUSTOM_PAYLOAD_POOL__CLI_PARSER_HPP
#define FASTDDS_EXAMPLES_CPP_CUSTOM_PAYLOAD_POOL__CLI_PARSER_HPP
#ifndef FASTDDS_EXAMPLES_CPP_CUSTOM_PAYLOAD_POOL__CLIPARSER_HPP
#define FASTDDS_EXAMPLES_CPP_CUSTOM_PAYLOAD_POOL__CLIPARSER_HPP

namespace eprosima {
namespace fastdds {
Expand Down Expand Up @@ -329,4 +329,4 @@ class CLIParser
} // namespace fastdds
} // namespace eprosima

#endif // FASTDDS_EXAMPLES_CPP_CUSTOM_PAYLOAD_POOL__CLI_PARSER_HPP
#endif // FASTDDS_EXAMPLES_CPP_CUSTOM_PAYLOAD_POOL__CLIPARSER_HPP
6 changes: 3 additions & 3 deletions examples/cpp/custom_payload_pool/CustomPayloadPool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
* @file CustomPayloadPool.hpp
*/

#ifndef FASTDDS_EXAMPLES_CPP_CUSTOM_PAYLOAD_POOL__CUSTOM_PAYLOAD_POOL_HPP
#define FASTDDS_EXAMPLES_CPP_CUSTOM_PAYLOAD_POOL__CUSTOM_PAYLOAD_POOL_HPP
#ifndef FASTDDS_EXAMPLES_CPP_CUSTOM_PAYLOAD_POOL__CUSTOMPAYLOADPOOL_HPP
#define FASTDDS_EXAMPLES_CPP_CUSTOM_PAYLOAD_POOL__CUSTOMPAYLOADPOOL_HPP

#include <assert.h>
#include <stdio.h>
Expand Down Expand Up @@ -97,4 +97,4 @@ class CustomPayloadPool : public eprosima::fastdds::rtps::IPayloadPool

};

#endif // FASTDDS_EXAMPLES_CPP_CUSTOM_PAYLOAD_POOL__CUSTOM_PAYLOAD_POOL_HPP
#endif // FASTDDS_EXAMPLES_CPP_CUSTOM_PAYLOAD_POOL__CUSTOMPAYLOADPOOL_HPP
3 changes: 2 additions & 1 deletion examples/cpp/custom_payload_pool/PublisherApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*
*/

#include "PublisherApp.hpp"

#include <csignal>
#include <thread>

Expand All @@ -27,7 +29,6 @@
#include <fastdds/dds/publisher/qos/PublisherQos.hpp>

#include "HelloWorldPubSubTypes.hpp"
#include "PublisherApp.hpp"

using namespace eprosima::fastdds::dds;
using namespace eprosima::fastdds::rtps;
Expand Down
6 changes: 3 additions & 3 deletions examples/cpp/custom_payload_pool/PublisherApp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
*
*/

#ifndef FASTDDS_EXAMPLES_CPP_CUSTOM_PAYLOAD_POOL__PUBLISHER_APP_HPP
#define FASTDDS_EXAMPLES_CPP_CUSTOM_PAYLOAD_POOL__PUBLISHER_APP_HPP
#ifndef FASTDDS_EXAMPLES_CPP_CUSTOM_PAYLOAD_POOL__PUBLISHERAPP_HPP
#define FASTDDS_EXAMPLES_CPP_CUSTOM_PAYLOAD_POOL__PUBLISHERAPP_HPP

#include <condition_variable>
#include <mutex>
Expand Down Expand Up @@ -103,4 +103,4 @@ class PublisherApp : public Application, public DataWriterListener
} // namespace fastdds
} // namespace eprosima

#endif /* FASTDDS_EXAMPLES_CPP_CUSTOM_PAYLOAD_POOL__PUBLISHER_APP_HPP */
#endif // FASTDDS_EXAMPLES_CPP_CUSTOM_PAYLOAD_POOL__PUBLISHERAPP_HPP
3 changes: 2 additions & 1 deletion examples/cpp/custom_payload_pool/SubscriberApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*
*/

#include "SubscriberApp.hpp"

#include <condition_variable>
#include <csignal>

Expand All @@ -29,7 +31,6 @@
#include <fastdds/dds/subscriber/Subscriber.hpp>

#include "HelloWorldPubSubTypes.hpp"
#include "SubscriberApp.hpp"

using namespace eprosima::fastdds::dds;
namespace eprosima {
Expand Down
6 changes: 3 additions & 3 deletions examples/cpp/custom_payload_pool/SubscriberApp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
*
*/

#ifndef FASTDDS_EXAMPLES_CPP_CUSTOM_PAYLOAD_POOL__SUBSCRIBER_APP_HPP
#define FASTDDS_EXAMPLES_CPP_CUSTOM_PAYLOAD_POOL__SUBSCRIBER_APP_HPP
#ifndef FASTDDS_EXAMPLES_CPP_CUSTOM_PAYLOAD_POOL__SUBSCRIBERAPP_HPP
#define FASTDDS_EXAMPLES_CPP_CUSTOM_PAYLOAD_POOL__SUBSCRIBERAPP_HPP

#include <condition_variable>
#include <mutex>
Expand Down Expand Up @@ -101,4 +101,4 @@ class SubscriberApp : public Application, public DataReaderListener
} // namespace fastdds
} // namespace eprosima

#endif /* FASTDDS_EXAMPLES_CPP_CUSTOM_PAYLOAD_POOL__SUBSCRIBER_APP_HPP */
#endif // FASTDDS_EXAMPLES_CPP_CUSTOM_PAYLOAD_POOL__SUBSCRIBERAPP_HPP
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*
*/

#include "HelloWorldPublisher.h"

#include <thread>

#include <fastdds/dds/domain/DomainParticipantFactory.hpp>
Expand All @@ -27,8 +29,6 @@
#include <fastdds/dds/xtypes/dynamic_types/DynamicDataFactory.hpp>
#include <fastdds/dds/xtypes/dynamic_types/DynamicData.hpp>

#include "HelloWorldPublisher.h"

using namespace eprosima::fastdds::dds;

HelloWorldPublisher::HelloWorldPublisher()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
*
*/

#ifndef FASTDDS_EXAMPLES_CPP_DDS_DYNAMIC_HELLO_WORLD_EXAMPLE__HELLO_WORLD_PUBLISHER_H
#define FASTDDS_EXAMPLES_CPP_DDS_DYNAMIC_HELLO_WORLD_EXAMPLE__HELLO_WORLD_PUBLISHER_H
#ifndef FASTDDS_EXAMPLES_CPP_DDS_DYNAMIC_HELLO_WORLD_EXAMPLE__HELLOWORLDPUBLISHER_H
#define FASTDDS_EXAMPLES_CPP_DDS_DYNAMIC_HELLO_WORLD_EXAMPLE__HELLOWORLDPUBLISHER_H

#include <fastdds/dds/xtypes/dynamic_types/DynamicData.hpp>
#include <fastdds/dds/publisher/DataWriterListener.hpp>
Expand Down Expand Up @@ -89,4 +89,4 @@ class HelloWorldPublisher



#endif /* FASTDDS_EXAMPLES_CPP_DDS_DYNAMIC_HELLO_WORLD_EXAMPLE__HELLO_WORLD_PUBLISHER_H */
#endif // FASTDDS_EXAMPLES_CPP_DDS_DYNAMIC_HELLO_WORLD_EXAMPLE__HELLOWORLDPUBLISHER_H
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
* @file HelloWorldSubscriber.cpp
*
*/

#include "HelloWorldSubscriber.h"

#include <chrono>
#include <mutex>
#include <thread>
Expand All @@ -27,8 +30,6 @@
#include <fastdds/dds/xtypes/dynamic_types/DynamicDataFactory.hpp>
#include <fastdds/dds/xtypes/dynamic_types/DynamicData.hpp>

#include "HelloWorldSubscriber.h"

using namespace eprosima::fastdds::dds;

HelloWorldSubscriber::HelloWorldSubscriber()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
*
*/

#ifndef FASTDDS_EXAMPLES_CPP_DDS_DYNAMIC_HELLO_WORLD_EXAMPLE__HELLO_WORLD_SUBSCRIBER_H
#define FASTDDS_EXAMPLES_CPP_DDS_DYNAMIC_HELLO_WORLD_EXAMPLE__HELLO_WORLD_SUBSCRIBER_H
#ifndef FASTDDS_EXAMPLES_CPP_DDS_DYNAMIC_HELLO_WORLD_EXAMPLE__HELLOWORLDSUBSCRIBER_H
#define FASTDDS_EXAMPLES_CPP_DDS_DYNAMIC_HELLO_WORLD_EXAMPLE__HELLOWORLDSUBSCRIBER_H

#include <atomic>
#include <condition_variable>
Expand Down Expand Up @@ -112,4 +112,4 @@ class HelloWorldSubscriber

};

#endif /* FASTDDS_EXAMPLES_CPP_DDS_DYNAMIC_HELLO_WORLD_EXAMPLE__HELLO_WORLD_SUBSCRIBER_H */
#endif // FASTDDS_EXAMPLES_CPP_DDS_DYNAMIC_HELLO_WORLD_EXAMPLE__HELLOWORLDSUBSCRIBER_H
Loading

0 comments on commit 0076d34

Please sign in to comment.