Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

colvarscript.C File Reference

#include <cstdlib>
#include <cstring>
#include <sstream>
#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_INIT(COMM, HELP, N_ARGS_MIN, N_ARGS_MAX, ARGHELP)
#define CVSCRIPT(COMM, HELP, N_ARGS_MIN, N_ARGS_MAX, ARGS, FN_BODY)   CVSCRIPT_COMM_INIT(COMM,HELP,N_ARGS_MIN,N_ARGS_MAX,ARGS)

Functions

int tcl_run_colvarscript_command (ClientData clientData, Tcl_Interp *interp_in, int objc, Tcl_Obj *const objv[])
 Run the script API via Tcl command-line interface
Parameters:
clientData  Not used
my_interp  Pointer to Tcl_Interp object (read from Colvars if NULL)
objc  Number of Tcl command parameters
objv  Array of command parameters
Returns:
Result of the script command.
More...


int run_colvarscript_command (int objc, unsigned char *const objv[])
 Generic wrapper for string-based scripting. More...

const char * get_colvarscript_result ()
 Get the string result of a script call. More...

int tcl_colvars_vmd_init (Tcl_Interp *interp, int molid)


Define Documentation

#define CVSCRIPT COMM,
HELP,
N_ARGS_MIN,
N_ARGS_MAX,
ARGS,
FN_BODY       CVSCRIPT_COMM_INIT(COMM,HELP,N_ARGS_MIN,N_ARGS_MAX,ARGS)
 

#define CVSCRIPT_COMM_INIT COMM,
HELP,
N_ARGS_MIN,
N_ARGS_MAX,
ARGHELP   
 

Value:

{   \
    init_command(COMM,#COMM,HELP,N_ARGS_MIN,N_ARGS_MAX,ARGHELP,&(CVSCRIPT_COMM_FNAME(COMM))); \
  }


Function Documentation

const char* get_colvarscript_result  
 

Get the string result of a script call.

Definition at line 1722 of file colvarscript.C.

int run_colvarscript_command int    objc,
unsigned char *const    objv[]
 

Generic wrapper for string-based scripting.

Definition at line 1707 of file colvarscript.C.

int tcl_colvars_vmd_init Tcl_Interp *    interp,
int    molid
 

Definition at line 56 of file colvarproxy_vmd.C.

int tcl_run_colvarscript_command ClientData    clientData,
Tcl_Interp *    interp_in,
int    objc,
Tcl_Obj *const    objv[]
 

Run the script API via Tcl command-line interface

Parameters:
clientData  Not used
my_interp  Pointer to Tcl_Interp object (read from Colvars if NULL)
objc  Number of Tcl command parameters
objv  Array of command parameters
Returns:
Result of the script command.

Definition at line 1757 of file colvarscript.C.

Referenced by tcl_colvars.


Generated on Thu Apr 18 02:45:59 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002