Skip to content

Commit

Permalink
Overwrite some DdsPipe validation methods
Browse files Browse the repository at this point in the history
Signed-off-by: tempate <[email protected]>
  • Loading branch information
Tempate committed Apr 26, 2024
1 parent 2c88fd5 commit ca6f1dc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ddsrouter_yaml/src/cpp/YamlReader_configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,20 @@ namespace eprosima {
namespace ddspipe {
namespace yaml {

template <>
bool YamlValidator::validate<core::MonitorConfiguration>(
const Yaml& yml,
const YamlReaderVersion& /* version */)
{
// The method is rewritten to provide a specific validation of the DDS Router's MonitorConfiguration:
// i.e. the DDS Router's MonitorConfiguration doesn't have a status.
static const std::set<TagType> tags{
MONITOR_DOMAIN_TAG,
MONITOR_TOPICS_TAG};

return YamlValidator::validate_tags(yml, tags);
}

template <>
void YamlReader::fill(
ddsrouter::core::SpecsConfiguration& object,
Expand Down

0 comments on commit ca6f1dc

Please sign in to comment.