#include <vector>#include <cstdlib>#include <string.h>#include "colvarproxy.h"#include "colvardeps.h"#include "colvarscript.h"#include "colvarscript_commands.h"Go to the source code of this file.
Defines | |||||
| #define | CVSCRIPT_COMM_FN(COMM, N_ARGS_MIN, N_ARGS_MAX, ARGS, FN_BODY) | ||||
| #define | CVSCRIPT(COMM, HELP, N_ARGS_MIN, N_ARGS_MAX, ARGS, FN_BODY) CVSCRIPT_COMM_FN(COMM,N_ARGS_MIN,N_ARGS_MAX,ARGS,FN_BODY) | ||||
| #define | COLVARSCRIPT_COMMANDS_GLOBAL | ||||
Functions | |||||
| int | cvscript_n_commands () | ||||
| Get the number of colvarscript commands. More... | |||||
| char const ** | cvscript_command_names () | ||||
| Get the names of all commands (array of strings). More... | |||||
| char const * | cvscript_command_help (char const *c) | ||||
Get the help summary of the given command
| |||||
| char const * | cvscript_command_rethelp (char const *c) | ||||
Get description of the return value of a command
| |||||
| char const * | cvscript_command_arghelp (char const *c, int i) | ||||
Get description of the arguments of a command (excluding prefix)
| |||||
| char const * | cvscript_command_full_help (char const *c) | ||||
Get the full help string of a command
| |||||
| int | cvscript_command_n_args_min (char const *c) | ||||
Get number of required arguments (excluding prefix)
| |||||
| int | cvscript_command_n_args_max (char const *c) | ||||
Get number of total arguments (excluding prefix)
| |||||
|
|
Definition at line 112 of file colvarscript_commands.C. |
|
|
Definition at line 108 of file colvarscript_commands.C. |
|
|
Value: int CVSCRIPT_COMM_FNAME(COMM)(void *pobj, \ int objc, unsigned char *const objv[]) \ { \ if (cvm::debug()) { \ cvm::log("Executing script function \""+std::string(#COMM)+"\""); \ } \ colvarscript *script = colvarscript_obj(); \ script->clear_str_result(); \ if (script->check_module_cmd_nargs(#COMM, \ objc, N_ARGS_MIN, N_ARGS_MAX) != \ COLVARSCRIPT_OK) { \ return COLVARSCRIPT_ERROR; \ } \ if (objc > 1) { \ \ (void) pobj; \ (void) objv[0]; \ } \ FN_BODY; \ } Definition at line 86 of file colvarscript_commands.C. |
|
||||||||||||
|
Get description of the arguments of a command (excluding prefix)
Definition at line 53 of file colvarscript_commands.C. References colvarscript_obj, and colvarscript::get_command_arghelp. |
|
|
Get the full help string of a command
Definition at line 61 of file colvarscript_commands.C. References colvarscript_obj, and colvarscript::get_command_full_help. |
|
|
Get the help summary of the given command
Definition at line 37 of file colvarscript_commands.C. References colvarscript_obj, and colvarscript::get_command_help. |
|
|
Get number of total arguments (excluding prefix)
Definition at line 77 of file colvarscript_commands.C. References colvarscript_obj, and colvarscript::get_command_n_args_max. |
|
|
Get number of required arguments (excluding prefix)
Definition at line 69 of file colvarscript_commands.C. References colvarscript_obj, and colvarscript::get_command_n_args_min. |
|
|
Get the names of all commands (array of strings).
Definition at line 29 of file colvarscript_commands.C. References colvarscript_obj, and colvarscript::get_command_names. Referenced by cvscript_command_full_help. |
|
|
Get description of the return value of a command
Definition at line 45 of file colvarscript_commands.C. References colvarscript_obj, and colvarscript::get_command_rethelp. |
|
|
Get the number of colvarscript commands.
Definition at line 22 of file colvarscript_commands.C. Referenced by cvscript_command_full_help. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002