Skip to content

Commit

Permalink
Hotfix: extend AliasTypeCode API: getCScopedname (#120)
Browse files Browse the repository at this point in the history
Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>
  • Loading branch information
JLBuenoLopez committed Apr 4, 2024
1 parent 16492f8 commit 53ce716
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/com/eprosima/idl/parser/typecode/AliasTypeCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,16 @@ public String getROS2Scopedname()
return m_scope + "::dds_::" + m_name + "_";
}

public String getCScopedname()
{
if(m_scope.isEmpty())
{
return m_name;
}

return m_scope.replace("::", "_") + "_" + m_name;
}

public String getScope()
{
return m_scope;
Expand Down

0 comments on commit 53ce716

Please sign in to comment.