support for dds/dds.hpp that contains all modules? #5334
Closed
jfergusonmi
started this conversation in
General
Replies: 1 comment
-
Hi @jfergusonmi, The following code snippet is a mix of header files included in the example, hope it helps: #include <fastdds/dds/core/status/SubscriptionMatchedStatus.hpp>
#include <fastdds/dds/domain/DomainParticipant.hpp>
#include <fastdds/dds/domain/DomainParticipantFactory.hpp>
#include <fastdds/dds/log/Log.hpp>
#include <fastdds/dds/topic/TypeSupport.hpp>
#include <fastdds/dds/publisher/DataWriter.hpp>
#include <fastdds/dds/publisher/DataWriterListener.hpp>
#include <fastdds/dds/publisher/Publisher.hpp>
#include <fastdds/dds/publisher/qos/DataWriterQos.hpp>
#include <fastdds/dds/publisher/qos/PublisherQos.hpp>
#include <fastdds/dds/subscriber/DataReader.hpp>
#include <fastdds/dds/subscriber/DataReaderListener.hpp>
#include <fastdds/dds/subscriber/qos/DataReaderQos.hpp>
#include <fastdds/dds/subscriber/qos/SubscriberQos.hpp>
#include <fastdds/dds/subscriber/SampleInfo.hpp>
#include <fastdds/dds/subscriber/Subscriber.hpp> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am coming from projects that used CDX and RTI. They both provide dds/dds.hpp that contains all important hpp headers and/or all standard symbols and includes. So for example, a hello_world program that sends data could provide just #include dds/dds.hpp instead of the exact
#include <fastdds/dds/domain/DomainParticipantFactory.hpp>
#include <fastdds/dds/log/Log.hpp>
for example RTI provides in their dds/dds.hpp
#include <dds/core/ddscore.hpp>
#include <dds/domain/ddsdomain.hpp>
#include <dds/topic/ddstopic.hpp>
#include <dds/sub/ddssub.hpp>
#include <dds/pub/ddspub.hpp>
I looked and couldnt find a top-level hpp file for FastDDS. Is there one or would i need to make my own? What would be the main includes needed. I assume something like
#if defined(DDS_PLATFORM_RTI) || defined(DDS_PLATFORM_COREDX)
#include <dds/dds.hpp>
#elif defined(DDS_PLATFORM_FASTDDS)
//#include <fastdds/dds/core/?????> --not sure
#include <fastdds/dds/domain/DomainParticipant.hpp>
#include <fastdds/dds/domain/DomainParticipantFactory.hpp>
#include <fastdds/dds/domain/DomainParticipantListener.hpp>
#include <fastdds/dds/log/Log.hpp>
#include <fastdds/dds/publisher/Publisher.hpp>
#include <fastdds/dds/subscriber/Subscriber.hpp>
#include <fastdds/dds/topic/Topic.hpp>
#include <fastdds/dds/xtypes/utils.hpp>
#endif
Beta Was this translation helpful? Give feedback.
All reactions