#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.
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.