FUNCTION get_role

(* SCHEMA STRUCTURAL_FRAME_SCHEMA; *)

(* New for LPM/6 *)
FUNCTION get_role
  (obj : role_select) : object_role;
  LOCAL
  role_bag : BAG OF role_association:=
             (USEDIN (obj,
             'STRUCTURAL_FRAME_SCHEMA.' +
             'ROLE_ASSOCIATION.' +
             'ITEM_WITH_ROLE'));
  END_LOCAL;
  IF SIZEOF (role_bag) = 1
    THEN RETURN (role_bag[1].role);
    ELSE RETURN (?);
  END_IF;
END_FUNCTION; (* STEP Part 41 2nd edition *)

Referenced By

Defintion get_role is references by the following definitions:
DefinitionType
 group_assignment ENTITY


[Top Level Definitions] [Exit]

Generated by STEP Tools® EXPRESS to HTML Converter
2023-03-25T00:11:39-04:00