Skip to content

Commit

Permalink
Migrate fastrtps/utils/collections to fastdds (#109)
Browse files Browse the repository at this point in the history
* Refs #20566: Migrate fastrtps/utils/collections to fastdds

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

* Refs #20566: Change include path of headers in fastrtps moved to fastdds

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

* Refs #20566: Migrate utils/collections

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

---------

Signed-off-by: elianalf <[email protected]>
  • Loading branch information
elianalf authored Mar 25, 2024
1 parent 42a7aae commit 053e56e
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 25 deletions.
6 changes: 3 additions & 3 deletions fastdds_python/src/swig/fastdds.i
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,9 @@ namespace builtin {
%include "fastdds/rtps/common/Guid.i"
%include "fastdds/rtps/common/PortParameters.i"
%include "fastdds/rtps/common/InstanceHandle.i"
%include "fastrtps/types/TypesBase.i"
%include "fastdds/rtps/resources/ResourceManagement.i"
%include "fastrtps/utils/collections/ResourceLimitedContainerConfig.i"
%include "fastrtps/utils/collections/ResourceLimitedVector.i"
%include "fastdds/utils/collections/ResourceLimitedContainerConfig.i"
%include "fastdds/utils/collections/ResourceLimitedVector.i"
%include "fastdds/rtps/attributes/RTPSParticipantAllocationAttributes.i"
%include "fastdds/rtps/attributes/ThreadSettings.i"
%include "fastdds/rtps/flowcontrol/FlowControllerSchedulerPolicy.i"
Expand All @@ -152,6 +151,7 @@ namespace builtin {
%include "fastdds/rtps/common/SequenceNumber.i"
%include "fastdds/rtps/common/SampleIdentity.i"
%include "fastdds/rtps/common/WriteParams.i"
%include "fastrtps/types/TypesBase.i"

/*
%include "fastdds/rtps/common/SerializedPayload.i"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

%{
#include "fastrtps/utils/collections/ResourceLimitedContainerConfig.hpp"
#include "fastdds/utils/collections/ResourceLimitedContainerConfig.hpp"
%}

%include "fastrtps/utils/collections/ResourceLimitedContainerConfig.hpp"
%include "fastdds/utils/collections/ResourceLimitedContainerConfig.hpp"
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

%{
#include "fastrtps/utils/collections/ResourceLimitedVector.hpp"
#include "fastdds/utils/collections/ResourceLimitedVector.hpp"
%}

// Operator[] is ignored by SWIG because it does not map correctly to target languages
Expand Down Expand Up @@ -61,4 +61,4 @@
}
}

%include "fastrtps/utils/collections/ResourceLimitedVector.hpp"
%include "fastdds/utils/collections/ResourceLimitedVector.hpp"
4 changes: 2 additions & 2 deletions fastdds_python/src/swig/fastrtps/attributes/TopicAttributes.i
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

%{
#include "fastrtps/attributes/TopicAttributes.h"
#include "fastdds/rtps/attributes/TopicAttributes.h"
%}

%include "fastrtps/attributes/TopicAttributes.h"
%include "fastdds/rtps/attributes/TopicAttributes.h"
4 changes: 2 additions & 2 deletions fastdds_python/src/swig/fastrtps/utils/IPFinder.i
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

%{
#include "fastrtps/utils/IPFinder.h"
#include "fastdds/utils/IPFinder.h"
%}

// Flatten nested classes
Expand All @@ -25,7 +25,7 @@
%rename (IPFinder_info_IP) eprosima::fastrtps::rtps::IPFinder::info_IP;
%rename (IPFinder_info_MAC) eprosima::fastrtps::rtps::IPFinder::info_MAC;

%include "fastrtps/utils/IPFinder.h"
%include "fastdds/utils/IPFinder.h"

// Deactivate class flattening
%feature("flatnested", "0");
4 changes: 2 additions & 2 deletions fastdds_python/src/swig/fastrtps/utils/IPLocator.i
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

%{
#include "fastrtps/utils/IPLocator.h"
#include "fastdds/utils/IPLocator.h"
%}

%include "fastrtps/utils/IPLocator.h"
%include "fastdds/utils/IPLocator.h"
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

%{
#include "fastrtps/utils/TimedConditionVariable.hpp"
#include "fastdds/utils/TimedConditionVariable.hpp"
%}

%include "fastrtps/utils/TimedConditionVariable.hpp"
%include "fastdds/utils/TimedConditionVariable.hpp"
4 changes: 2 additions & 2 deletions fastdds_python/src/swig/fastrtps/utils/TimedMutex.i
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

%{
#include "fastrtps/utils/TimedMutex.hpp"
#include "fastdds/utils/TimedMutex.hpp"
%}

%include "fastrtps/utils/TimedMutex.hpp"
%include "fastdds/utils/TimedMutex.hpp"
4 changes: 2 additions & 2 deletions fastdds_python/src/swig/fastrtps/utils/fixed_size_bitmap.i
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

%{
#include "fastrtps/utils/fixed_size_bitmap.hpp"
#include "fastdds/utils/fixed_size_bitmap.hpp"
%}

%include "fastrtps/utils/fixed_size_bitmap.hpp"
%include "fastdds/utils/fixed_size_bitmap.hpp"
4 changes: 2 additions & 2 deletions fastdds_python/src/swig/fastrtps/utils/md5.i
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
%include "std_string.i"

%{
#include "fastrtps/utils/md5.h"
#include "fastdds/utils/md5.h"
%}

%ignore md5(const std::string);

%include "fastrtps/utils/md5.h"
%include "fastdds/utils/md5.h"
2 changes: 1 addition & 1 deletion fastdds_python/test/types/test_completePubSubTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <fastdds/dds/topic/TopicDataType.hpp>
#include <fastdds/rtps/common/InstanceHandle.h>
#include <fastdds/rtps/common/SerializedPayload.h>
#include <fastrtps/utils/md5.h>
#include <fastdds/utils/md5.h>

#include "test_complete.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <fastdds/dds/topic/TopicDataType.hpp>
#include <fastdds/rtps/common/InstanceHandle.h>
#include <fastdds/rtps/common/SerializedPayload.h>
#include <fastrtps/utils/md5.h>
#include <fastdds/utils/md5.h>

#include "test_included_modules.h"

Expand Down
2 changes: 1 addition & 1 deletion fastdds_python/test/types/test_modulesPubSubTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <fastdds/dds/topic/TopicDataType.hpp>
#include <fastdds/rtps/common/InstanceHandle.h>
#include <fastdds/rtps/common/SerializedPayload.h>
#include <fastrtps/utils/md5.h>
#include <fastdds/utils/md5.h>

#include "test_modules.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <fastdds/dds/topic/TopicDataType.hpp>
#include <fastdds/rtps/common/InstanceHandle.h>
#include <fastdds/rtps/common/SerializedPayload.h>
#include <fastrtps/utils/md5.h>
#include <fastdds/utils/md5.h>

#include "HelloWorld.h"

Expand Down

0 comments on commit 053e56e

Please sign in to comment.