Skip to content

Commit 1dce5c9

Browse files
authored
Expose BaseReader methods in Windows DLLs (#167)
Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com>
1 parent 14cc634 commit 1dce5c9

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

ddspipe_participants/include/ddspipe_participants/reader/auxiliar/BaseReader.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,20 +184,23 @@ class BaseReader : public core::IReader
184184
*
185185
* Implement this method class for a specific enable functionality.
186186
*/
187+
DDSPIPE_PARTICIPANTS_DllAPI
187188
virtual void enable_nts_() noexcept;
188189

189190
/**
190191
* @brief Do nothing
191192
*
192193
* Implement this method class for a specific disable functionality.
193194
*/
195+
DDSPIPE_PARTICIPANTS_DllAPI
194196
virtual void disable_nts_() noexcept;
195197

196198
/**
197199
* @brief Take method to implement by each Reader implementation
198200
*
199201
* Implement this method in every inherited Reader class with take functionality.
200202
*/
203+
DDSPIPE_PARTICIPANTS_DllAPI
201204
virtual utils::ReturnCode take_nts_(
202205
std::unique_ptr<core::IRoutingData>& data) noexcept = 0;
203206

@@ -206,6 +209,7 @@ class BaseReader : public core::IReader
206209
*
207210
* Implement this method in every inherited Reader class with take functionality.
208211
*/
212+
DDSPIPE_PARTICIPANTS_DllAPI
209213
virtual bool should_accept_sample_() noexcept;
210214

211215
/////////////////////////

ddspipe_participants/include/ddspipe_participants/reader/auxiliar/InternalReader.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ class InternalReader : public BaseReader
6363

6464
protected:
6565

66+
DDSPIPE_PARTICIPANTS_DllAPI
6667
void enable_nts_() noexcept override;
6768

6869
/**
@@ -74,6 +75,7 @@ class InternalReader : public BaseReader
7475
* @return \c RETCODE_OK if data has been correctly taken
7576
* @return \c RETCODE_NO_DATA if \c data_to_send_ is empty
7677
*/
78+
DDSPIPE_PARTICIPANTS_DllAPI
7779
utils::ReturnCode take_nts_(
7880
std::unique_ptr<core::IRoutingData>& data) noexcept override;
7981

0 commit comments

Comments
 (0)