Unit 'utility' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#os4units]

PackBoolTags

Builds a "flag" word from a tag list

Declaration

Source position: utility.pas line 258

function PackBoolTags(

  InitialFlags: LongWord;

  const TagList: PTagItem;

  const Boolmap: PTagItem

):LongWord;

Arguments

InitialFlags

  

A starting set of bit-flags which will be changed by the processing of True and False boolean tags in tagList.

TagList

  

A TagItem list which may contain several tag items defined to be boolean by their presence in boolMap. The logical value of ti_Data determines whether a tag item causes the bit-flag value related by boolMap to be set or cleared in the returned flag longword.

Boolmap

  

A tag list defining the boolean tags to be recognized, and the bit (or bits) in the returned longword that are to be set or cleared when a boolean Tag is found to be True or False in tagList.

Function result

The accumulated longword of bit-flags, starting with initialFlags and modified by each boolean tag item encountered.

Description

Picks out the boolean tag items in a tag list and converts them into bit-flag representations according to a correspondence defined by the tag list 'boolMap'.

A boolean tag item is one where only the logical value of the ti_Data is relevant. If this field is 0, the value is False, otherwise True.


Documentation generated on: 2021-07-30