AURobotServers  4
Public Member Functions | Protected Attributes | List of all members
UMisCall Class Reference

#include <urule.h>

Inheritance diagram for UMisCall:
Inheritance graph

Public Member Functions

virtual const char * getDataType ()
 
const char * getName ()
 
int getNameCnt ()
 
const char * getNameCopy (char *dest, const int destCnt)
 
const char * getParameters ()
 
bool isA (const char *thisName)
 
virtual bool setLine (const int lineNum, const char *value, UVarCalc *calc)
 
 UMisCall ()
 
virtual ~UMisCall ()
 
- Public Member Functions inherited from UMisLineItem
const char * getLine ()
 
virtual const char * print (const char *preStr, char *buf, const int bufCnt)
 
 UMisLineItem ()
 
virtual ~UMisLineItem ()
 
- Public Member Functions inherited from UMisItem
virtual ResultValue execute (UVarCalc *calc, int state)
 
const char * findStopChar (const char *source, char stop)
 
int getLineNumber ()
 
bool isA (const char *matchType)
 
void setLineNumber (const int line)
 
 UMisItem ()
 
virtual ~UMisItem ()
 
- Public Member Functions inherited from UDataBase
bool isA (const char *typeString)
 
virtual bool isAlsoA (const char *typeString)
 
virtual void snprint (const char *preString, char *buff, const int buffCnt)
 
 UDataBase ()
 
virtual ~UDataBase ()
 

Protected Attributes

const char * name
 
int nameCnt
 
const char * parameters
 
- Protected Attributes inherited from UMisLineItem
char * line
 
- Protected Attributes inherited from UMisItem
int lineNumber
 

Additional Inherited Members

- Public Types inherited from UMisItem
enum  ResultValue {
  RV_EMPTY, RV_OK, RV_OK_FALSE, RV_OK_AGAIN,
  RV_SYNTAX_ERROR, RV_FAILED, RV_IF_TRUE, RV_IF_FALSE
}
 
- Static Public Member Functions inherited from UMisItem
static bool isRem (const char *r)
 
- Public Attributes inherited from UMisItem
UMisItemnext
 
- Protected Member Functions inherited from UMisItem
int symbolLength (const char *exp)
 

Detailed Description

Class that holds a simple function call statement

Constructor & Destructor Documentation

UMisCall::UMisCall ( )

Constructor

UMisCall::~UMisCall ( )
virtual

Constructor DEstructor

Member Function Documentation

virtual const char* UMisCall::getDataType ( )
inlinevirtual

Get (end) type of this structure

Reimplemented from UMisLineItem.

Reimplemented in UMisControl.

const char* UMisCall::getName ( )
inline

Get a pointer to the function or method name. NB! not zero terminated - use nameCnt

int UMisCall::getNameCnt ( )
inline

Get number of characters in the name

const char * UMisCall::getNameCopy ( char *  dest,
const int  destCnt 
)

Get a zero terminated copy of name to this char buffer

Parameters
destis an array of character.
destCntis the size of the provided buffer
Returns
a zero terminated string in the buffer, and if the buffer is of sufficient length (name length + 1) then the full name is in the buffer

References mini().

Referenced by UMisRuleState::initCall().

const char* UMisCall::getParameters ( )
inline

Get a pointer to the actual parameters of the call

Referenced by UMisRuleState::initCall().

bool UMisCall::isA ( const char *  thisName)

Does the name match this name

Referenced by UMisRuleState::runControl().

bool UMisCall::setLine ( const int  lineNum,
const char *  value,
UVarCalc calc 
)
virtual

Member Data Documentation

const char* UMisCall::name
protected

the call identifier - not zero terminated - use nameCnt

int UMisCall::nameCnt
protected

name length

const char* UMisCall::parameters
protected

Parameters - a pointer to the '('


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