Skip to content

Commit

Permalink
Refs #20823: uncrustify
Browse files Browse the repository at this point in the history
Signed-off-by: elianalf <[email protected]>
  • Loading branch information
elianalf committed Jun 11, 2024
1 parent 7f9bf53 commit 4c91c10
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 29 deletions.
57 changes: 30 additions & 27 deletions examples/cpp/content_filter/CLIParser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,33 +90,36 @@ class CLIParser
static void print_help(
uint8_t return_code)
{
std::cout << "Usage: content_filter <entity> [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 <num>, --samples <num> Number of samples to send" << std::endl;
std::cout << " (Default: 0 [unlimited])" << std::endl;
std::cout << " -i <num>, --interval <num> Time between samples in milliseconds" << std::endl;
std::cout << " --reader-filters <num> 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 <default/custom/none> Kind of Content Filter to use" << std::endl;
std::cout << " (Default: default SQL filter)" << std::endl;
std::cout << " --filter-expression <string> 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 <num>, --lower-bound <num> Lower bound of the data range to filter. (Default: 5)" << std::endl;
std::cout << " -up <num>, --upper-bound <num> Upper bound of the data range to filter. (Default: 9)" << std::endl;
std::cout << "Usage: content_filter <entity> [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 <num>, --samples <num> Number of samples to send" << std::endl;
std::cout << " (Default: 0 [unlimited])" << std::endl;
std::cout << " -i <num>, --interval <num> Time between samples in milliseconds" << std::endl;
std::cout << " --reader-filters <num> 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 <default/custom/none> Kind of Content Filter to use" << std::endl;
std::cout << " (Default: default SQL filter)" << std::endl;
std::cout << " --filter-expression <string> 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 <num>, --lower-bound <num> Lower bound of the data range to filter." << std::endl;
std::cout << " (Default: 5)" << std::endl;
std::cout << " -up <num>, --upper-bound <num> Upper bound of the data range to filter." << std::endl;
std::cout << " (Default: 9)" << std::endl;
std::exit(return_code);
}

Expand Down
2 changes: 1 addition & 1 deletion examples/cpp/content_filter/SubscriberApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion test/examples/content_filter.compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 4c91c10

Please sign in to comment.