Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

 Enhancement of comparison functions

xpfExecuteFunction
The following functions will be enhanced with the options

xpxIGNORE_ALL_PATTERN_MATCHING_CHARS                                :  All defined pattern matching characters will be treated as ordinary (not pattern matching) characters
xpxIGNORE_ALL_PATTERN_MATCHING_CHARS_EXCEPT_STAR  :  Only the star "*" will be a pattern matching character, all other characters will be normal (not pattern matching) characters.

FUNCTION xpfLike (aString  : STRING;
                  pattern  : STRING;
                  options  : INTEGER)
                  matching : BOOLEAN;

FUNCTION xpxLike (aString  : STRING;
                  pattern  : STRING;
                  options  : INTEGER)
                  matching : BOOLEAN;
                                          

FUNCTION xpfAggrLike (aggrId            : GENERIC;
                      attributeName     : STRING;
                      pattern           : STRING;
                      options           : INTEGER)
                      matchingInstances : SET OF GENERIC;

FUNCTION xpfAggrLikeEx (aggrIdOrModelId               : GENERIC;
                        enityIdOrEntityName           : GENERIC;
                        attributeName                 : STRING;
                        pattern                       : STRING;
                        options                       : INTEGER;
                        VAR numberOfMatchingInstances : INTEGER)
                        matchingInstanceOrInstances   : GENERIC;

20160819 0160819 xpx Performance Counter functions (for performance measurement)

performance counter
The following new functions for performance measurement are implemented in EDMexpressX:

FUNCTION xpfGetQueryPerformanceCounter : INTEGER;  (* wrapper for Widows function: 
                                                      BOOL WINAPI QueryPerformanceCounter(
                                                  _Out_ LARGE_INTEGER *lpPerformanceCount
                                                );
                                              *)


FUNCTION xpfGetQueryPerformanceFrequency : INTEGER;  (* wrapper for Widows function: 
                                                         BOOL WINAPI QueryPerformanceFrequency(
                                                    _Out_ LARGE_INTEGER *lpFrequency
                                                  );
                                              *)

See Windows documentation for description


FUNCTION xpxGetQueryPerformanceUsed (startTime        : INTEGER;
                                     endTime          : INTEGER;
                                     VAR hours        : INTEGER;
                                     VAR minutes      : INTEGER;
                                     VAR seconds      : INTEGER;
                                     VAR milliseconds : INTEGER;
                                     VAR microseconds : INTEGER)
                                     rstat            : INTEGER;

This functions calculate the time difference between to time stamps returned by the xpfGetQueryPerformanceCounter function.

  • No labels