From 76f132b14350f372027d9d00307786d16d55cb99 Mon Sep 17 00:00:00 2001 From: elianalf <62831776+elianalf@users.noreply.github.com> Date: Tue, 11 Jun 2024 15:18:57 +0200 Subject: [PATCH] Refs #20823: uncrustify Signed-off-by: elianalf <62831776+elianalf@users.noreply.github.com> --- examples/cpp/content_filter/CLIParser.hpp | 57 ++++++++++--------- examples/cpp/content_filter/SubscriberApp.cpp | 2 +- test/examples/content_filter.compose.yml | 2 +- 3 files changed, 32 insertions(+), 29 deletions(-) diff --git a/examples/cpp/content_filter/CLIParser.hpp b/examples/cpp/content_filter/CLIParser.hpp index 81584bf45f0..6c41860e0fa 100644 --- a/examples/cpp/content_filter/CLIParser.hpp +++ b/examples/cpp/content_filter/CLIParser.hpp @@ -90,33 +90,36 @@ class CLIParser static void print_help( uint8_t return_code) { - std::cout << "Usage: content_filter [options]" << std::endl; - std::cout << "" << std::endl; - std::cout << "Entities:" << std::endl; - std::cout << " publisher Run a publisher entity" << std::endl; - std::cout << " subscriber Run a subscriber entity" << std::endl; - std::cout << "" << std::endl; - std::cout << "Common options:" << std::endl; - std::cout << " -h, --help Print this help message" << std::endl; - std::cout << " --reliable Set Reliability QoS as reliable" << std::endl; - std::cout << " (Default: reliable)" << std::endl; - std::cout << " --transient-local Set Durability QoS as transient local" << std::endl; - std::cout << " (Default: transient local)" << std::endl; - std::cout << "Publisher options:" << std::endl; - std::cout << " -s , --samples Number of samples to send" << std::endl; - std::cout << " (Default: 0 [unlimited])" << std::endl; - std::cout << " -i , --interval Time between samples in milliseconds" << std::endl; - std::cout << " --reader-filters Set the maximum number of readers that the writer" << std::endl; - std::cout << " evaluates for applying the filter" << std::endl; - std::cout << " (Default: 32)" << std::endl; - std::cout << "Subscriber options:" << std::endl; - std::cout << " --filter-kind Kind of Content Filter to use" << std::endl; - std::cout << " (Default: default SQL filter)" << std::endl; - std::cout << " --filter-expression Filter Expression of the default SQL filter" << std::endl; - std::cout << " (Default: \"index between %0 and %1\", where %0 and %1" << std::endl; - std::cout << " are the indeces of the parameters, i.e. lb and ub)" << std::endl; - std::cout << " -lb , --lower-bound Lower bound of the data range to filter. (Default: 5)" << std::endl; - std::cout << " -up , --upper-bound Upper bound of the data range to filter. (Default: 9)" << std::endl; + std::cout << "Usage: content_filter [options]" << std::endl; + std::cout << "" << std::endl; + std::cout << "Entities:" << std::endl; + std::cout << " publisher Run a publisher entity" << std::endl; + std::cout << " subscriber Run a subscriber entity" << std::endl; + std::cout << "" << std::endl; + std::cout << "Common options:" << std::endl; + std::cout << " -h, --help Print this help message" << std::endl; + std::cout << " --reliable Set Reliability QoS as reliable" << std::endl; + std::cout << " (Default: reliable)" << std::endl; + std::cout << " --transient-local Set Durability QoS as transient local" << std::endl; + std::cout << " (Default: transient local)" << std::endl; + std::cout << "Publisher options:" << std::endl; + std::cout << " -s , --samples Number of samples to send" << std::endl; + std::cout << " (Default: 0 [unlimited])" << std::endl; + std::cout << " -i , --interval Time between samples in milliseconds" << std::endl; + std::cout << " --reader-filters Set the maximum number of readers that the" << std::endl; + std::cout << " writer evaluates for applying the filter" << std::endl; + std::cout << " (Default: 32)" << std::endl; + std::cout << "Subscriber options:" << std::endl; + std::cout << " --filter-kind Kind of Content Filter to use" << std::endl; + std::cout << " (Default: default SQL filter)" << std::endl; + std::cout << " --filter-expression Filter Expression of default SQL filter" << std::endl; + std::cout << " (Default: \"index between %0 and %1\"," << std::endl; + std::cout << " where %0 and %1 are the indeces of the" << std::endl; + std::cout << " parameters, i.e. lb and ub)" << std::endl; + std::cout << " -lb , --lower-bound Lower bound of the data range to filter." << std::endl; + std::cout << " (Default: 5)" << std::endl; + std::cout << " -up , --upper-bound Upper bound of the data range to filter." << std::endl; + std::cout << " (Default: 9)" << std::endl; std::exit(return_code); } diff --git a/examples/cpp/content_filter/SubscriberApp.cpp b/examples/cpp/content_filter/SubscriberApp.cpp index 06109e231e4..48f769659e5 100644 --- a/examples/cpp/content_filter/SubscriberApp.cpp +++ b/examples/cpp/content_filter/SubscriberApp.cpp @@ -144,7 +144,7 @@ SubscriberApp::SubscriberApp( { rqos.reliability().kind = RELIABLE_RELIABILITY_QOS; } - if (config.transient_local) + if (config.transient_local) { rqos.durability().kind = TRANSIENT_LOCAL_DURABILITY_QOS; } diff --git a/test/examples/content_filter.compose.yml b/test/examples/content_filter.compose.yml index f3b1a9fefb6..0ecb4a0e5c3 100644 --- a/test/examples/content_filter.compose.yml +++ b/test/examples/content_filter.compose.yml @@ -13,4 +13,4 @@ services: LD_LIBRARY_PATH: @PROJECT_BINARY_DIR@/src/cpp:@fastcdr_LIB_DIR@@TINYXML2_LIB_DIR_COMPOSE_LD_LIBRARY_PATH@ EXAMPLE_DIR: @PROJECT_BINARY_DIR@/examples/cpp/content_filter@FILE_EXTENSION@ SUBSCRIBER_ADDITIONAL_ARGUMENTS: ${SUB_ARGS} - command: @SHELL_EXECUTABLE@ -c "$${EXAMPLE_DIR}/content_filter@FILE_EXTENSION@ subscriber $${SUBSCRIBER_ADDITIONAL_ARGUMENTS} --lower-bound 4 --upper-bound 8 & $${EXAMPLE_DIR}/content_filter@FILE_EXTENSION@ publisher --samples 15 --interval 100" + command: @SHELL_EXECUTABLE@ -c "$${EXAMPLE_DIR}/content_filter@FILE_EXTENSION@ subscriber $${SUBSCRIBER_ADDITIONAL_ARGUMENTS} --lower-bound 4 --upper-bound 8 --reliable true --transient-local true & $${EXAMPLE_DIR}/content_filter@FILE_EXTENSION@ publisher --samples 15 --interval 100 --reliable true --transient-local true"