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

#include <urule.h>

Inheritance diagram for UMisAssign:
Inheritance graph

Public Member Functions

virtual ResultValue execute (UVarCalc *calc, int state)
 
virtual const char * getDataType ()
 
virtual bool setLine (const int lineNum, const char *value, UVarCalc *calc)
 
 UMisAssign ()
 
virtual ~UMisAssign ()
 
- 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
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 * assignment
 
const char * indexExpr
 
const char * name
 
int nameCnt
 
- 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 an assignment statement

Constructor & Destructor Documentation

UMisAssign::UMisAssign ( )

Constructor

UMisAssign::~UMisAssign ( )
virtual

Constructor DEstructor

Member Function Documentation

UMisItem::ResultValue UMisAssign::execute ( UVarCalc calc,
int  state 
)
virtual

execute item.

Parameters
calcis the calculateor - and scope for variables and methods
strateis an integer for the sequencer state (init, main or post) result of executing this line normal is RV_OK, an error ir RV_SYNTAX_ERROR. The error text is to be returned in the errTxt buffer.

Reimplemented from UMisItem.

References UVarCalc::evaluateV(), UVarCalc::getErrorTxt(), UVarCalc::getErrorTxtMaxCnt(), UVariable::getValued(), UMisRuleState::init, MAX_STRUCT_NAMES, MAX_VAR_NAME_SIZE, mini(), roundi(), UMisItem::RV_OK, UMisItem::RV_SYNTAX_ERROR, and UVarPool::setScopeVar().

virtual const char* UMisAssign::getDataType ( )
inlinevirtual

Get (end) type of this structure

Reimplemented from UMisLineItem.

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

Member Data Documentation

const char* UMisAssign::assignment
protected

the assigned value to be evaluated - a zero terminated string

const char* UMisAssign::indexExpr
protected

index expression to be evaluated before assignment

const char* UMisAssign::name
protected

the name to be assigned to - not zero terminated - use length

int UMisAssign::nameCnt
protected

name length


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