Skip to content

Commit

Permalink
Add support for external blob values in extern-name
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBowman committed Jan 6, 2024
1 parent 49f4ca3 commit 930ef01
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions doc/release/yarp_3_9/yarprobotinterface_extern_blob.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#### `libYARP_robotinterface`

* Add support for blob values in the extra configuration passed to `XMLReader::getRobotFrom{File|String}` and linked in the XML via `extern-name`.
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,11 @@ yarp::robotinterface::Param yarp::robotinterface::impl::XMLReaderFileV3::Private
// FIXME Check DTD >= 3.1
if (config.find(extern_name).isList())
{
param.value() = "(" + config.find(extern_name).asList()->toString() + ")";
param.value() = "(" + config.find(extern_name).toString() + ")";
}
else if (config.find(extern_name).isBlob())
{
param.value() = "{" + config.find(extern_name).toString() + "}";
}
else
{
Expand Down

0 comments on commit 930ef01

Please sign in to comment.