AbstractStringPointerAssertions
Short summary
Abstract class that provides methods for checking if an assert statement with contains or contains not, makes sense based on the string lengths.
| Access | Abstract | Final | Extends | Implements |
|---|---|---|---|---|
| INTERNAL | Yes | No | AbstractAssertion | - |
UML Diagram
Parameters
none
Properties
className
Type: CNM_AbstractObject.ClassName
This abstract property returns the class name of the concrete object, …
Methods
isContainsCheckNecessary
- Parameters:
stringToCheck(POINTER TO BYTE): current string to checksearchString(POINTER TO BYTE): string must be found instringToChecklengthStringToCheck(UDINT): length of current string to checklengthSearchString(UDINT): length ofsearchStringadditionalText(Tc2_System.T_MaxString): just additional text if assert is falsemessage(AssertMessage): message if the assertion is false
- Return type:
BOOL
Methods for checking if an assert statement with contains or contains not,…
isContainsNoCheckNecessary
- Parameters:
stringToCheck(POINTER TO BYTE): current string to checksearchString(POINTER TO BYTE): string must be found instringToChecklengthStringToCheck(UDINT): length of current string to checklengthSearchString(UDINT): length ofsearchStringadditionalText(Tc2_System.T_MaxString): just additional text if assert is falsemessage(AssertMessage): message if the assertion is false
- Return type:
BOOL
Methods for checking if an assert statement with contains or contains not, …
Code
Declaration
{attribute 'reflection'}
FUNCTION_BLOCK INTERNAL ABSTRACT AbstractStringPointerAssertions EXTENDS AbstractAssertion
VAR
END_VAR