AURobotServers  4
Public Member Functions | List of all members
UVarMethodImplement Class Reference

#include <uvarmethod.h>

Inheritance diagram for UVarMethodImplement:
Inheritance graph

Public Member Functions

virtual bool methodCall (const char *name, const char *paramOrder, char **strings, const double *doubles, double *value, UDataBase **returnStruct=NULL, int *returnStructCnt=NULL)
 
virtual bool methodCallV (const char *name, const char *paramOrder, UVariable *params[], UDataBase **returnStruct, int *returnStructCnt)
 
virtual ~UVarMethodImplement ()
 

Detailed Description

This class implements a method call, that is, the interface definition of a method call

Constructor & Destructor Documentation

virtual UVarMethodImplement::~UVarMethodImplement ( )
inlinevirtual

References methodCall(), and methodCallV().

Member Function Documentation

bool UVarMethodImplement::methodCall ( const char *  name,
const char *  paramOrder,
char **  strings,
const double *  doubles,
double *  value,
UDataBase **  returnStruct = NULL,
int *  returnStructCnt = NULL 
)
virtual

Function to implement a var-pool method call.

Parameters
nameis the name of the called function
paramOrderis a string with one char for each parameter in the call - d is double, s is string, c is class object.
stringsis an array of string pointers for the string type parameters (may be NULL if not used)
doublesis an array with double typed parameters (may be NULL if not used)
valueis the (direct) result of the class, either a double value, or 0.0 for false 1.0 for true 2.0 for implicit stop if a controll call.
returnStructis an array of class object pointers that can be used as parameters or return objects (may be NULL)
returnStructCntis the number of objects in the returnStruct buffer
Returns
true if the method is recognised (exists), when false is returned a invalid name or parameter list is detected.

Reimplemented in UCmdExe, UResVarPool, UResPoseHist, UResKeep, UResPoly, UResLocater, UResSmrIf, UResDisp, UResCron, UResLaserIfRoad, UMisRuleState, UResAvoid, UResLaserIf, UResDrivePos, UResCamIf, UResRoadDrive, UResPcp, UFuncKinect, UResLaserIfObst, UResIf, UResSmrCtl, UFuncPpl, UFuncView, UFuncPiCam, UResDummy, and UResMapObst.

Referenced by ~UVarMethodImplement().

bool UVarMethodImplement::methodCallV ( const char *  name,
const char *  paramOrder,
UVariable params[],
UDataBase **  returnStruct,
int *  returnStructCnt 
)
virtual

Function to implement a var-pool method call.

Parameters
nameis the name of the called function
paramOrderis a string with one char for each parameter in the call - d is double, s is string, c is class object.
stringsis an array of string pointers for the string type parameters (may be NULL if not used)
doublesis an array with double typed parameters (may be NULL if not used)
valueis the (direct) result of the class, either a double value, or 0.0 for false 1.0 for true 2.0 for implicit stop if a controll call.
returnStructis an array of class object pointers that can be used as parameters or return objects (may be NULL)
returnStructCntis the number of objects in the returnStruct buffer
Returns
true if the method is recognised (exists), when false is returned a invalid name or parameter list is detected.

Reimplemented in UResRuleState, UResPoly, UResAvoid, UMisRuleState, UResPcp, UResLobst, UFuncKinect, UFuncPiCam, UResMapObst, and UResObstacle.

Referenced by ~UVarMethodImplement().


The documentation for this class was generated from the following files: