X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=docs%2Fdoxygen%2Fuser%2Fusinglibrary.md;h=099417fde3b598dd32a28044283b4b87146dde17;hb=7a6907d2184cf7bf3ce09e83e9d902f9787a3eb0;hp=f3498d02a50ccb11fe6648e7211294ddcd92b230;hpb=9eb0581bed7c5147f8919ab19a7e2ed55e0e1514;p=alexxy%2Fgromacs.git diff --git a/docs/doxygen/user/usinglibrary.md b/docs/doxygen/user/usinglibrary.md index f3498d02a5..099417fde3 100644 --- a/docs/doxygen/user/usinglibrary.md +++ b/docs/doxygen/user/usinglibrary.md @@ -18,11 +18,11 @@ low-level functions. the facilities provided by \ref module_commandline. There are a few different alternatives, depending on how much control you want to give \Gromacs: - - For C++ code, you can implement gmx::CommandLineOptionsModuleInterface and + - For C++ code, you can implement gmx::ICommandLineOptionsModule and use gmx::runCommandLineModule() to execute it. This interface assumes the use of the gmx::Options mechanism for declaring command-line options (see \ref module_options). - For a lower-level interface, gmx::CommandLineModuleInterface can be used, + For a lower-level interface, gmx::ICommandLineModule can be used, but this requires you to implement `-h` output and command-line parsing yourself (possibly using classes that \Gromacs provides). - For C code, you can use gmx_run_cmain() to wrap an existing C main @@ -37,7 +37,7 @@ low-level functions. routines. This allows you to write your own handling for command line options from scratch. This is also discussed in \ref module_commandline. - For most control, you can use gmx::init() to do basic initialization, create - your own implementation for gmx::ProgramContextInterface, and set that using + your own implementation for gmx::IProgramContext, and set that using gmx::setProgramContext(). This allows you to customize how the \Gromacs library shows the name of the program in messages, as well as how it locates its own data files.