1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-30 00:00:11 +01:00

refactor: cout over multiple lines

This commit is contained in:
Steffen Vogel 2018-08-27 11:25:56 +02:00
parent ebec998b3e
commit e625926d7d
8 changed files with 94 additions and 95 deletions

View file

@ -39,10 +39,10 @@ struct shmem_int shm;
void usage() void usage()
{ {
std::cout << "Usage: villas-test-shmem WNAME VECTORIZE" << std::endl; std::cout << "Usage: villas-test-shmem WNAME VECTORIZE" << std::endl
std::cout << " WNAME name of the shared memory object for the output queue" << std::endl; << " WNAME name of the shared memory object for the output queue" << std::endl
std::cout << " RNAME name of the shared memory object for the input queue" << std::endl; << " RNAME name of the shared memory object for the input queue" << std::endl
std::cout << " VECTORIZE maximum number of samples to read/write at a time" << std::endl; << " VECTORIZE maximum number of samples to read/write at a time" << std::endl;
} }
void quit(int sig) void quit(int sig)

View file

@ -33,13 +33,13 @@
static void usage() static void usage()
{ {
std::cout << "Usage: villas-convert [OPTIONS]" << std::endl; std::cout << "Usage: villas-convert [OPTIONS]" << std::endl
std::cout << " OPTIONS are:" << std::endl; << " OPTIONS are:" << std::endl
std::cout << " -i FMT set the input format" << std::endl; << " -i FMT set the input format" << std::endl
std::cout << " -o FMT set the output format" << std::endl; << " -o FMT set the output format" << std::endl
std::cout << " -d LVL set debug log level to LVL" << std::endl; << " -d LVL set debug log level to LVL" << std::endl
std::cout << " -h show this usage information" << std::endl; << " -h show this usage information" << std::endl
std::cout << " -V show the version of the tool" << std::endl << std::endl; << " -V show the version of the tool" << std::endl << std::endl;
print_copyright(); print_copyright();
} }

View file

@ -83,15 +83,15 @@ static void quit(int signal, siginfo_t *sinfo, void *ctx)
static void usage() static void usage()
{ {
std::cout << "Usage: villas-hook [OPTIONS] NAME [[PARAM1] [PARAM2] ...]" << std::endl; std::cout << "Usage: villas-hook [OPTIONS] NAME [[PARAM1] [PARAM2] ...]" << std::endl
std::cout << " NAME the name of the hook function" << std::endl; << " NAME the name of the hook function" << std::endl
std::cout << " PARAM* a string of configuration settings for the hook" << std::endl; << " PARAM* a string of configuration settings for the hook" << std::endl
std::cout << " OPTIONS is one or more of the following options:" << std::endl; << " OPTIONS is one or more of the following options:" << std::endl
std::cout << " -f FMT the data format" << std::endl; << " -f FMT the data format" << std::endl
std::cout << " -d LVL set debug level to LVL" << std::endl; << " -d LVL set debug level to LVL" << std::endl
std::cout << " -v CNT process CNT smps at once" << std::endl; << " -v CNT process CNT smps at once" << std::endl
std::cout << " -h show this help" << std::endl; << " -h show this help" << std::endl
std::cout << " -V show the version of the tool" << std::endl << std::endl; << " -V show the version of the tool" << std::endl << std::endl;
std::cout << "Supported hooks:" << std::endl; std::cout << "Supported hooks:" << std::endl;
plugin_dump(PLUGIN_TYPE_HOOK); plugin_dump(PLUGIN_TYPE_HOOK);

View file

@ -62,20 +62,20 @@ static void quit(int signal, siginfo_t *sinfo, void *ctx)
static void usage() static void usage()
{ {
std::cout << "Usage: villas-node [OPTIONS] [CONFIG]" << std::endl; std::cout << "Usage: villas-node [OPTIONS] [CONFIG]" << std::endl
std::cout << " OPTIONS is one or more of the following options:" << std::endl; << " OPTIONS is one or more of the following options:" << std::endl
std::cout << " -h show this usage information" << std::endl; << " -h show this usage information" << std::endl
std::cout << " -V show the version of the tool" << std::endl << std::endl; << " -V show the version of the tool" << std::endl << std::endl
std::cout << " CONFIG is the path to an optional configuration file" << std::endl; << " CONFIG is the path to an optional configuration file" << std::endl
std::cout << " if omitted, VILLASnode will start without a configuration" << std::endl; << " if omitted, VILLASnode will start without a configuration" << std::endl
std::cout << " and wait for provisioning over the web interface." << std::endl << std::endl; << " and wait for provisioning over the web interface." << std::endl << std::endl
#ifdef ENABLE_OPAL_ASYNC #ifdef ENABLE_OPAL_ASYNC
std::cout << "Usage: villas-node OPAL_ASYNC_SHMEM_NAME OPAL_ASYNC_SHMEM_SIZE OPAL_PRINT_SHMEM_NAME" << std::endl; << "Usage: villas-node OPAL_ASYNC_SHMEM_NAME OPAL_ASYNC_SHMEM_SIZE OPAL_PRINT_SHMEM_NAME" << std::endl
std::cout << " This type of invocation is used by OPAL-RT Asynchronous processes." << std::endl; << " This type of invocation is used by OPAL-RT Asynchronous processes." << std::endl
std::cout << " See in the RT-LAB User Guide for more information." << std::endl << std::endl; << " See in the RT-LAB User Guide for more information." << std::endl << std::endl
#endif /* ENABLE_OPAL_ASYNC */ #endif /* ENABLE_OPAL_ASYNC */
std::cout << "Supported node-types:" << std::endl; << "Supported node-types:" << std::endl;
plugin_dump(PLUGIN_TYPE_NODE); plugin_dump(PLUGIN_TYPE_NODE);
std::cout << std::endl; std::cout << std::endl;

View file

@ -106,20 +106,20 @@ static void quit(int signal, siginfo_t *sinfo, void *ctx)
static void usage() static void usage()
{ {
std::cout << "Usage: villas-pipe [OPTIONS] CONFIG NODE" << std::endl; std::cout << "Usage: villas-pipe [OPTIONS] CONFIG NODE" << std::endl
std::cout << " CONFIG path to a configuration file" << std::endl; << " CONFIG path to a configuration file" << std::endl
std::cout << " NODE the name of the node to which samples are sent and received from" << std::endl; << " NODE the name of the node to which samples are sent and received from" << std::endl
std::cout << " OPTIONS are:" << std::endl; << " OPTIONS are:" << std::endl
std::cout << " -f FMT set the format" << std::endl; << " -f FMT set the format" << std::endl
std::cout << " -o OPTION=VALUE overwrite options in config file" << std::endl; << " -o OPTION=VALUE overwrite options in config file" << std::endl
std::cout << " -x swap read / write endpoints" << std::endl; << " -x swap read / write endpoints" << std::endl
std::cout << " -s only read data from stdin and send it to node" << std::endl; << " -s only read data from stdin and send it to node" << std::endl
std::cout << " -r only read data from node and write it to stdout" << std::endl; << " -r only read data from node and write it to stdout" << std::endl
std::cout << " -t NUM terminate after NUM seconds" << std::endl; << " -t NUM terminate after NUM seconds" << std::endl
std::cout << " -L NUM terminate after NUM samples sent" << std::endl; << " -L NUM terminate after NUM samples sent" << std::endl
std::cout << " -l NUM terminate after NUM samples received" << std::endl; << " -l NUM terminate after NUM samples received" << std::endl
std::cout << " -h show this usage information" << std::endl; << " -h show this usage information" << std::endl
std::cout << " -V show the version of the tool" << std::endl << std::endl; << " -V show the version of the tool" << std::endl << std::endl;
print_copyright(); print_copyright();
} }

View file

@ -126,28 +126,27 @@ check: if (optarg == endptr)
void usage() void usage()
{ {
std::cout << "Usage: villas-signal [OPTIONS] SIGNAL" << std::endl; std::cout << "Usage: villas-signal [OPTIONS] SIGNAL" << std::endl
std::cout << " SIGNAL is on of the following signal types:" << std::endl; << " SIGNAL is on of the following signal types:" << std::endl
std::cout << " mixed" << std::endl; << " mixed" << std::endl
std::cout << " random" << std::endl; << " random" << std::endl
std::cout << " sine" << std::endl; << " sine" << std::endl
std::cout << " triangle" << std::endl; << " triangle" << std::endl
std::cout << " square" << std::endl; << " square" << std::endl
std::cout << " ramp" << std::endl; << " ramp" << std::endl
std::cout << " constants" << std::endl; << " constants" << std::endl
std::cout << " counter" << std::endl; << " counter" << std::endl << std::endl
std::cout << "" << std::endl; << " OPTIONS is one or more of the following options:" << std::endl
std::cout << " OPTIONS is one or more of the following options:" << std::endl; << " -d LVL set debug level" << std::endl
std::cout << " -d LVL set debug level" << std::endl; << " -f FMT set the format" << std::endl
std::cout << " -f FMT set the format" << std::endl; << " -v NUM specifies how many values a message should contain" << std::endl
std::cout << " -v NUM specifies how many values a message should contain" << std::endl; << " -r HZ how many messages per second" << std::endl
std::cout << " -r HZ how many messages per second" << std::endl; << " -n non real-time mode. do not throttle output." << std::endl
std::cout << " -n non real-time mode. do not throttle output." << std::endl; << " -F HZ the frequency of the signal" << std::endl
std::cout << " -F HZ the frequency of the signal" << std::endl; << " -a FLT the amplitude" << std::endl
std::cout << " -a FLT the amplitude" << std::endl; << " -D FLT the standard deviation for 'random' signals" << std::endl
std::cout << " -D FLT the standard deviation for 'random' signals" << std::endl; << " -o OFF the DC bias" << std::endl
std::cout << " -o OFF the DC bias" << std::endl; << " -l NUM only send LIMIT messages and stop" << std::endl << std::endl;
std::cout << " -l NUM only send LIMIT messages and stop" << std::endl << std::endl;
print_copyright(); print_copyright();
} }

View file

@ -45,24 +45,24 @@ struct side {
void usage() void usage()
{ {
std::cout << "Usage: villas-test-cmp [OPTIONS] FILE1 FILE2 ... FILEn" << std::endl; std::cout << "Usage: villas-test-cmp [OPTIONS] FILE1 FILE2 ... FILEn" << std::endl
std::cout << " FILE a list of files to compare" << std::endl; << " FILE a list of files to compare" << std::endl
std::cout << " OPTIONS is one or more of the following options:" << std::endl; << " OPTIONS is one or more of the following options:" << std::endl
std::cout << " -d LVL adjust the debug level" << std::endl; << " -d LVL adjust the debug level" << std::endl
std::cout << " -e EPS set epsilon for floating point comparisons to EPS" << std::endl; << " -e EPS set epsilon for floating point comparisons to EPS" << std::endl
std::cout << " -v ignore data values" << std::endl; << " -v ignore data values" << std::endl
std::cout << " -t ignore timestamp" << std::endl; << " -t ignore timestamp" << std::endl
std::cout << " -s ignore sequence no" << std::endl; << " -s ignore sequence no" << std::endl
std::cout << " -f FMT file format for all files" << std::endl; << " -f FMT file format for all files" << std::endl
std::cout << " -h show this usage information" << std::endl; << " -h show this usage information" << std::endl
std::cout << " -V show the version of the tool" << std::endl << std::endl; << " -V show the version of the tool" << std::endl << std::endl
std::cout << "Return codes:" << std::endl; << "Return codes:" << std::endl
std::cout << " 0 files are equal" << std::endl; << " 0 files are equal" << std::endl
std::cout << " 1 file length not equal" << std::endl; << " 1 file length not equal" << std::endl
std::cout << " 2 sequence no not equal" << std::endl; << " 2 sequence no not equal" << std::endl
std::cout << " 3 timestamp not equal" << std::endl; << " 3 timestamp not equal" << std::endl
std::cout << " 4 number of values is not equal" << std::endl; << " 4 number of values is not equal" << std::endl
std::cout << " 5 data is not equal" << std::endl << std::endl; << " 5 data is not equal" << std::endl << std::endl;
print_copyright(); print_copyright();
} }

View file

@ -70,16 +70,16 @@ void quit(int signal, siginfo_t *sinfo, void *ctx)
void usage() void usage()
{ {
std::cout << "Usage: villas-test-rtt [OPTIONS] CONFIG NODE" << std::endl; std::cout << "Usage: villas-test-rtt [OPTIONS] CONFIG NODE" << std::endl
std::cout << " CONFIG path to a configuration file" << std::endl; << " CONFIG path to a configuration file" << std::endl
std::cout << " NODE name of the node which shoud be used" << std::endl; << " NODE name of the node which shoud be used" << std::endl
std::cout << " OPTIONS is one or more of the following options:" << std::endl; << " OPTIONS is one or more of the following options:" << std::endl
std::cout << " -c CNT send CNT messages" << std::endl; << " -c CNT send CNT messages" << std::endl
std::cout << " -f FD use file descriptor FD for result output instead of stdout" << std::endl; << " -f FD use file descriptor FD for result output instead of stdout" << std::endl
std::cout << " -b BKTS number of buckets for histogram" << std::endl; << " -b BKTS number of buckets for histogram" << std::endl
std::cout << " -w WMUP duration of histogram warmup phase" << std::endl; << " -w WMUP duration of histogram warmup phase" << std::endl
std::cout << " -h show this usage information" << std::endl; << " -h show this usage information" << std::endl
std::cout << " -V show the version of the tool" << std::endl << std::endl; << " -V show the version of the tool" << std::endl << std::endl;
print_copyright(); print_copyright();
} }