Skip to main content

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.

AccessAbstractFinalExtendsImplements
INTERNALYesNoAbstractAssertion-

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 check
    • searchString (POINTER TO BYTE): string must be found in stringToCheck
    • lengthStringToCheck (UDINT): length of current string to check
    • lengthSearchString (UDINT): length of searchString
    • additionalText (Tc2_System.T_MaxString): just additional text if assert is false
    • message (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 check
    • searchString (POINTER TO BYTE): string must be found in stringToCheck
    • lengthStringToCheck (UDINT): length of current string to check
    • lengthSearchString (UDINT): length of searchString
    • additionalText (Tc2_System.T_MaxString): just additional text if assert is false
    • message (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