Skip to content

Commit

Permalink
Refs #20733: Move implementations to cpp
Browse files Browse the repository at this point in the history
Signed-off-by: eduponz <eduardoponz@eprosima.com>
  • Loading branch information
EduPonz committed Apr 24, 2024
1 parent 4e79d8b commit b2bd867
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
14 changes: 2 additions & 12 deletions include/fastrtps/xmlparser/XMLProfileManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,24 +266,14 @@ class XMLProfileManager
* XMLProfileManager::DeleteDynamicPubSubType method.
*/
RTPS_DllAPI static types::DynamicPubSubType* CreateDynamicPubSubType(
const std::string& type_name)
{
if (dynamic_types_.find(type_name) != dynamic_types_.end())
{
return new types::DynamicPubSubType(dynamic_types_[type_name]->build());
}
return nullptr;
}
const std::string& type_name);

/**
* Deletes the given DynamicPubSubType previously created by calling
* XMLProfileManager::CreateDynamicPubSubType method.
*/
RTPS_DllAPI static void DeleteDynamicPubSubType(
types::DynamicPubSubType* type)
{
delete type;
}
types::DynamicPubSubType* type);

private:

Expand Down
16 changes: 16 additions & 0 deletions src/cpp/rtps/xmlparser/XMLProfileManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,22 @@ XMLP_ret XMLProfileManager::loadXMLString(
return loaded_ret;
}

types::DynamicPubSubType* XMLProfileManager::CreateDynamicPubSubType(
const std::string& type_name)
{
if (dynamic_types_.find(type_name) != dynamic_types_.end())
{
return new types::DynamicPubSubType(dynamic_types_[type_name]->build());
}
return nullptr;
}

void XMLProfileManager::DeleteDynamicPubSubType(
types::DynamicPubSubType* type)
{
delete type;
}

XMLP_ret XMLProfileManager::extractProfiles(
up_base_node_t profiles,
const std::string& filename)
Expand Down

0 comments on commit b2bd867

Please sign in to comment.