Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

lcmaps_arguments.h File Reference

Public header file to be used by plugins. More...

Go to the source code of this file.

Data Structures

struct  lcmaps_argument_s
 structure representing an LCMAPS plugin run argument More...


Typedefs

typedef lcmaps_argument_s lcmaps_argument_t
 Type of LCMAPS plugin run argument (to be passed to the plugin by plugin_run()).


Functions

int lcmaps_setArgValue (char *argName, char *argType, void *value, int argcx, lcmaps_argument_t **argvx)
 Set the value of argument with name argName of argType to value.

void * lcmaps_getArgValue (char *argName, char *argType, int argcx, lcmaps_argument_t *argvx)
 Get the value of argument with name argName of argType.

int lcmaps_findArgName (char *argName, int argcx, lcmaps_argument_t *argvx)
 Get index of argument with name argName.

int lcmaps_findArgNameAndType (char *argName, char *argType, int argcx, lcmaps_argument_t *argvx)
 Get index of argument with name argName.

int lcmaps_cntArgs (lcmaps_argument_t *argvx)
 Count the number of arguments.


Detailed Description

Public header file to be used by plugins.

Author:
Martijn Steenbakkers and Oscar Koeroo for the EU DataGrid.
Routines to access the plugin arguments.

The interface is composed of:

  1. lcmaps_setArgValue(): Set the value of argument with name argName of argType to value
  2. lcmaps_getArgValue(): Get the value of argument with name argName of argType
  3. lcmaps_findArgName(): Get index of argument with name argName
  4. lcmaps_cntArgs(): Count the number of arguments

Definition in file lcmaps_arguments.h.


Function Documentation

lcmaps_cntArgs lcmaps_argument_t argvx  ) 
 

Count the number of arguments.

Count the number of arguments that are defined in a plug-in Returns this number.

Parameters:
argvx array of arguments structures
Returns:
the number of arguments

Definition at line 280 of file lcmaps_arguments.c.

References lcmaps_argument_s::argName, and lcmaps_argument_t.

Referenced by lcmaps_extractRunVars(), and plugin_introspect().

lcmaps_findArgName char *  argName,
int  argcx,
lcmaps_argument_t argvx
 

Get index of argument with name argName.

Search for argName in the arguments list. Returns the index to lcmaps_argument_t element.

Parameters:
argName name of argument
argcx number of arguments
argvx array of arguments structures
Returns:
index to lcmaps_argument_t element

Definition at line 186 of file lcmaps_arguments.c.

References lcmaps_argument_t.

lcmaps_findArgNameAndType char *  argName,
char *  argType,
int  argcx,
lcmaps_argument_t argvx
 

Get index of argument with name argName.

Search for argName in the arguments list. Returns the index to lcmaps_argument_t element.

Parameters:
argName name of argument
argType type of argument
argcx number of arguments
argvx array of arguments structures
Returns:
index to lcmaps_argument_t element

Definition at line 237 of file lcmaps_arguments.c.

References lcmaps_argument_t.

Referenced by lcmaps_getArgValue(), and lcmaps_setArgValue().

lcmaps_getArgValue char *  argName,
char *  argType,
int  argcx,
lcmaps_argument_t argvx
 

Get the value of argument with name argName of argType.

Set the value of argType on the reserved place in values. The place within values is determined by the place where argName is found in the arguments list Returns a void pointer to the value.

Parameters:
argName name of argument
argType type of argument
argcx number of arguments
argvx array of arguments structures
Returns:
void pointer to the value or NULL

Definition at line 138 of file lcmaps_arguments.c.

References lcmaps_argument_t, lcmaps_findArgNameAndType(), and lcmaps_argument_s::value.

Referenced by lcmaps_getRunVars(), plugin_run(), and print_lcmaps_plugin().

lcmaps_setArgValue char *  argName,
char *  argType,
void *  value,
int  argcx,
lcmaps_argument_t **  argvx
 

Set the value of argument with name argName of argType to value.

Fill the "value" field of the argument with name "argName" and type "argType" with value. The argument list is searched for the combination (argName,argType).

Parameters:
argName name of argument
argType type of argument
value a pointer to the value to which the argument should be set
argcx number of arguments
argvx array of arguments structures
Returns:
0 in case of succes

Definition at line 80 of file lcmaps_arguments.c.

References lcmaps_argument_t, and lcmaps_findArgNameAndType().

Referenced by lcmaps_setRunVars(), and runPluginManager().


Generated on Sun May 29 21:22:12 2005 for lcmaps by doxygen 1.3.5