Skip to content

Commit b147d5c

Browse files
committed
Refs #24527: Uncrustify
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
1 parent b6ceaf1 commit b147d5c

2 files changed

Lines changed: 64 additions & 64 deletions

File tree

ddsenabler/examples/action/CLIParser.hpp

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -50,50 +50,50 @@ class CLIParser
5050
static void print_help(
5151
uint8_t return_code)
5252
{
53-
std::cout << "Usage: ddsenabler_example_action <client|server> [options]" <<
54-
std::endl;
55-
std::cout << "" <<
56-
std::endl;
57-
std::cout << "--config <str> Path to the configuration file" <<
58-
std::endl;
59-
std::cout << " (optional, if not provided default config is used)" <<
60-
std::endl;
61-
std::cout << "--action-name <str> Name of the action to be registered" <<
62-
std::endl;
63-
std::cout << " (Default: 'Fibonacci/_action/')" <<
64-
std::endl;
65-
std::cout << "--timeout <num> Time (seconds) to wait before stopping the" <<
66-
std::endl;
67-
std::cout << " program if expectations are not met" <<
68-
std::endl;
69-
std::cout << " (Default: 30)" <<
70-
std::endl;
71-
std::cout << "--persistence-path <str> Path to the persistence directory" <<
72-
std::endl;
73-
std::cout << " (No default value as it is required)" <<
74-
std::endl;
75-
std::cout << "\n-------------------------------------SERVER OPTIONS------------------------------------\n" <<
76-
std::endl;
77-
std::cout << "--expected-requests <num> Number of requests expected to be received" <<
78-
std::endl;
79-
std::cout << " (Default: 0, meaning infinite)" <<
80-
std::endl;
81-
std::cout << "\n-------------------------------------CLIENT OPTIONS------------------------------------\n" <<
82-
std::endl;
83-
std::cout << "--request-initial-wait <num> Time (seconds) to wait before starting" <<
84-
std::endl;
85-
std::cout << " requests publication since server matching" <<
86-
std::endl;
87-
std::cout << " (Default: 0)" <<
88-
std::endl;
89-
std::cout << "--cancel-requests <bool> Whether to cancel requests after sending them" <<
90-
std::endl;
91-
std::cout << " (Default: false)" <<
92-
std::endl;
93-
std::cout << "--goals-path <str> Directory containing goal JSON files" <<
94-
std::endl;
95-
std::cout << " (No default value as it is required for client mode)" <<
96-
std::endl;
53+
std::cout << "Usage: ddsenabler_example_action <client|server> [options]"
54+
<< std::endl;
55+
std::cout << ""
56+
<< std::endl;
57+
std::cout << "--config <str> Path to the configuration file"
58+
<< std::endl;
59+
std::cout << " (optional, if not provided default config is used)"
60+
<< std::endl;
61+
std::cout << "--action-name <str> Name of the action to be registered"
62+
<< std::endl;
63+
std::cout << " (Default: 'Fibonacci/_action/')"
64+
<< std::endl;
65+
std::cout << "--timeout <num> Time (seconds) to wait before stopping the"
66+
<< std::endl;
67+
std::cout << " program if expectations are not met"
68+
<< std::endl;
69+
std::cout << " (Default: 30)"
70+
<< std::endl;
71+
std::cout << "--persistence-path <str> Path to the persistence directory"
72+
<< std::endl;
73+
std::cout << " (No default value as it is required)"
74+
<< std::endl;
75+
std::cout << "\n-------------------------------------SERVER OPTIONS------------------------------------\n"
76+
<< std::endl;
77+
std::cout << "--expected-requests <num> Number of requests expected to be received"
78+
<< std::endl;
79+
std::cout << " (Default: 0, meaning infinite)"
80+
<< std::endl;
81+
std::cout << "\n-------------------------------------CLIENT OPTIONS------------------------------------\n"
82+
<< std::endl;
83+
std::cout << "--request-initial-wait <num> Time (seconds) to wait before starting"
84+
<< std::endl;
85+
std::cout << " requests publication since server matching"
86+
<< std::endl;
87+
std::cout << " (Default: 0)"
88+
<< std::endl;
89+
std::cout << "--cancel-requests <bool> Whether to cancel requests after sending them"
90+
<< std::endl;
91+
std::cout << " (Default: false)"
92+
<< std::endl;
93+
std::cout << "--goals-path <str> Directory containing goal JSON files"
94+
<< std::endl;
95+
std::cout << " (No default value as it is required for client mode)"
96+
<< std::endl;
9797
std::exit(return_code);
9898
}
9999

@@ -223,8 +223,8 @@ class CLIParser
223223
}
224224
catch (const std::exception& e)
225225
{
226-
std::cerr << "Invalid --expected-requests argument " << argv[i] << ": " << e.what() <<
227-
std::endl;
226+
std::cerr << "Invalid --expected-requests argument " << argv[i] << ": " << e.what()
227+
<< std::endl;
228228
print_help(EXIT_FAILURE);
229229
}
230230
}
@@ -244,8 +244,8 @@ class CLIParser
244244
}
245245
catch (const std::exception& e)
246246
{
247-
std::cerr << "Invalid --request-initial-wait argument " << argv[i] << ": " << e.what() <<
248-
std::endl;
247+
std::cerr << "Invalid --request-initial-wait argument " << argv[i] << ": " << e.what()
248+
<< std::endl;
249249
print_help(EXIT_FAILURE);
250250
}
251251
}

ddsenabler_participants/src/cpp/EnablerParticipant.cpp

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ bool EnablerParticipant::publish_rpc(
218218
if (!it->second->external_server && rpc_info->service_type == ServiceType::REQUEST)
219219
{
220220
EPROSIMA_LOG_ERROR(DDSENABLER_ENABLER_PARTICIPANT,
221-
"Failed to publish data in service " << rpc_info->service_name <<
222-
" : service is only announced on the enabler side.");
221+
"Failed to publish data in service " << rpc_info->service_name
222+
<< " : service is only announced on the enabler side.");
223223
return false;
224224
}
225225

@@ -789,8 +789,8 @@ bool EnablerParticipant::query_topic_nts_(
789789
if (!topic_query_callback_)
790790
{
791791
EPROSIMA_LOG_ERROR(DDSENABLER_ENABLER_PARTICIPANT,
792-
"Failed to query data from topic " << topic_name <<
793-
" : topic is unknown and topic query callback not set.");
792+
"Failed to query data from topic " << topic_name
793+
<< " : topic is unknown and topic query callback not set.");
794794
return false;
795795
}
796796
TopicInfo topic_info;
@@ -811,8 +811,8 @@ bool EnablerParticipant::query_service_nts_(
811811
if (!service_query_callback_)
812812
{
813813
EPROSIMA_LOG_ERROR(DDSENABLER_ENABLER_PARTICIPANT,
814-
"Failed to announce service " << service->service_name <<
815-
" : service is unknown and service request callback not set.");
814+
"Failed to announce service " << service->service_name
815+
<< " : service is unknown and service request callback not set.");
816816
return false;
817817
}
818818

@@ -841,8 +841,8 @@ bool EnablerParticipant::query_action_nts_(
841841
if (!action_query_callback_)
842842
{
843843
EPROSIMA_LOG_ERROR(DDSENABLER_ENABLER_PARTICIPANT,
844-
"Failed to announce action " << action.action_name <<
845-
" : action is unknown and action request callback not set.");
844+
"Failed to announce action " << action.action_name
845+
<< " : action is unknown and action request callback not set.");
846846
return false;
847847
}
848848

@@ -971,8 +971,8 @@ bool EnablerParticipant::query_action_nts_(
971971
lck))
972972
{
973973
EPROSIMA_LOG_ERROR(DDSENABLER_ENABLER_PARTICIPANT,
974-
"Failed to announce action " << action.action_name <<
975-
" : feedback topic writer creation failed.");
974+
"Failed to announce action " << action.action_name
975+
<< " : feedback topic writer creation failed.");
976976
return false;
977977
}
978978
}
@@ -1001,8 +1001,8 @@ bool EnablerParticipant::query_action_nts_(
10011001
lck))
10021002
{
10031003
EPROSIMA_LOG_ERROR(DDSENABLER_ENABLER_PARTICIPANT,
1004-
"Failed to announce action " << action.action_name <<
1005-
" : status topic writer creation failed.");
1004+
"Failed to announce action " << action.action_name
1005+
<< " : status topic writer creation failed.");
10061006
return false;
10071007
}
10081008
}
@@ -1042,8 +1042,8 @@ bool EnablerParticipant::create_topic_writer_nts_(
10421042
}))
10431043
{
10441044
EPROSIMA_LOG_ERROR(DDSENABLER_ENABLER_PARTICIPANT,
1045-
"Failed to create internal reader for topic " << topic.m_topic_name <<
1046-
" , please verify that the topic is allowed.");
1045+
"Failed to create internal reader for topic " << topic.m_topic_name
1046+
<< " , please verify that the topic is allowed.");
10471047
return false;
10481048
}
10491049

@@ -1074,8 +1074,8 @@ bool EnablerParticipant::create_service_request_writer_nts_(
10741074
}
10751075

10761076
EPROSIMA_LOG_ERROR(DDSENABLER_ENABLER_PARTICIPANT,
1077-
"Failed to create server as there is already a server running for service " << service->service_name <<
1078-
".");
1077+
"Failed to create server as there is already a server running for service " << service->service_name
1078+
<< ".");
10791079
return false;
10801080
}
10811081

0 commit comments

Comments
 (0)