CoMD
A Mini-app for Co-Design of Classical Molecular Dynamics.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
mycommand.h File Reference

Handle command line arguments. More...

#include <stdio.h>
Include dependency graph for mycommand.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  CommandSt
 A structure to hold the value of every run-time parameter that can be read from the command line. More...
 

Typedefs

typedef struct CommandSt Command
 A structure to hold the value of every run-time parameter that can be read from the command line. More...
 

Functions

Command parseCommandLine (int argc, char **argv)
 Process command line arguments into an easy to handle structure. More...
 
void printCmdYaml (FILE *file, Command *cmd)
 Print run parameters in yaml format on the supplied output stream. More...
 

Detailed Description

Handle command line arguments.

Definition in file mycommand.h.

Typedef Documentation

typedef struct CommandSt Command

A structure to hold the value of every run-time parameter that can be read from the command line.

Function Documentation

Command parseCommandLine ( int  argc,
char **  argv 
)

Process command line arguments into an easy to handle structure.

Initialize a Command structure with default values, then parse any command line arguments that were supplied to overwrite defaults.

Parameters
[in]argcthe number of command line arguments
[in]argvthe command line arguments array

Definition at line 186 of file mycommand.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void printCmdYaml ( FILE *  file,
Command cmd 
)

Print run parameters in yaml format on the supplied output stream.

Definition at line 252 of file mycommand.c.

Here is the call graph for this function:

Here is the caller graph for this function: