Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
correlation::cli Namespace Reference

Classes

struct  CliOptions
 All options that can be set via the command line. More...
struct  ConvertOptions
 Options for the convert CLI subcommand. More...

Functions

void printUsage (const char *program)
 Prints the usage / help message to stderr.
bool parseArgs (std::span< const char *const > argv, CliOptions &opts)
 Parses the command-line arguments into a CliOptions struct.
bool parseArgs (int argc, const char *const *argv, CliOptions &opts)
 C-style entry point overload forwarding to the span interface.
int executeConvert (const ConvertOptions &opts)
 Executes the structure format conversion workflow.

Function Documentation

◆ executeConvert()

int correlation::cli::executeConvert ( const ConvertOptions & opts)

Executes the structure format conversion workflow.

Parameters
[in]optsParsed convert options.
Returns
0 on success, non-zero on failure.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseArgs() [1/2]

bool correlation::cli::parseArgs ( int argc,
const char *const * argv,
CliOptions & opts )
inline

C-style entry point overload forwarding to the span interface.

Here is the call graph for this function:

◆ parseArgs() [2/2]

bool correlation::cli::parseArgs ( std::span< const char *const > argv,
CliOptions & opts )

Parses the command-line arguments into a CliOptions struct.

Parameters
argvArgument values.
opts[out] Filled on success.
Returns
true if parsing succeeded, false on error (message already printed).
Here is the call graph for this function:
Here is the caller graph for this function:

◆ printUsage()

void correlation::cli::printUsage ( const char * program)

Prints the usage / help message to stderr.

Parameters
programName of the executable (argv[0]).
Here is the caller graph for this function: