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

#include <urule.h>

Inheritance diagram for UMisBreak:
Inheritance graph

Public Member Functions

virtual const char * getDataType ()
 
const char * getParam ()
 
const char * getParamCopy (char *dest, const int destCnt)
 
bool isBreak ()
 
bool isContinue ()
 
virtual bool setLine (const int lineNum, const char *value, UVarCalc *calc)
 
 UMisBreak ()
 
virtual ~UMisBreak ()
 
- 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 * param
 
int paramCnt
 
- 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 non-block if statement

Constructor & Destructor Documentation

UMisBreak::UMisBreak ( )

Constructor

UMisBreak::~UMisBreak ( )
virtual

Constructor Destructor

Member Function Documentation

virtual const char* UMisBreak::getDataType ( )
inlinevirtual

Get (end) type of this structure

Reimplemented from UMisLineItem.

const char* UMisBreak::getParam ( )
inline

Get a pointer to the start of the parameter (first charanter) on the line, or a NULL if no parameter is available.

Referenced by UMisRuleState::runBreak().

const char * UMisBreak::getParamCopy ( char *  dest,
const int  destCnt 
)

Get a copy of just the break parameter

References mini().

Referenced by UMisRuleState::runBreak().

bool UMisBreak::isBreak ( )
inline

Is the call a continue

Returns
true if a continue statement
bool UMisBreak::isContinue ( )
inline

Is the call a continue

Returns
true if a continue statement
bool UMisBreak::setLine ( const int  lineNum,
const char *  value,
UVarCalc calc 
)
virtual

Member Data Documentation

const char* UMisBreak::param
protected

the parameter following the break keyword - is NULL if no parameter or just a comment

int UMisBreak::paramCnt
protected

length of the parameter - till first space or remark or end of line


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