Modelica.Utilities.Types

Type definitions used in package Modelica.Utilities

Information


This package contains type definitions used in Modelica.Utilities.

Extends from Modelica.Icons.Package (Icon for standard packages).

Package Content

NameDescription
Compare Enumeration defining comparision of two strings
FileType Enumeration defining the type of a file
TokenType Enumeration defining the token type
Modelica.Utilities.Types.TokenValue TokenValue Value of token

Types and constants

  type Compare = enumeration(
    Less "String 1 is lexicographically less than string 2",
    Equal "String 1 is identical to string 2",
    Greater "String 1 is lexicographically greater than string 2") 
  "Enumeration defining comparision of two strings";

  type FileType = enumeration(
    NoFile "No file exists",
    RegularFile "Regular file",
    Directory "Directory",
    SpecialFile "Special file (pipe, FIFO, device, etc.)") 
  "Enumeration defining the type of a file";

  type TokenType = enumeration(
    RealToken,
    IntegerToken,
    BooleanToken,
    StringToken,
    IdentifierToken,
    DelimiterToken,
    NoToken) "Enumeration defining the token type";


Modelica.Utilities.Types.TokenValue Modelica.Utilities.Types.TokenValue

Value of token

Information



Extends from Modelica.Icons.Record (Icon for records).

Modelica definition

record TokenValue "Value of token"
   extends Modelica.Icons.Record;
   TokenType tokenType "Type of token";
   Real real "Value if tokenType == TokenType.RealToken";
   Integer integer "Value if tokenType == TokenType.IntegerToken";
   Boolean boolean "Value if tokenType == TokenType.BooleanToken";
   String string 
    "Value if tokenType == TokenType.StringToken/IdentifierToken/DelimiterToken";
end TokenValue;

Automatically generated Fri Nov 12 16:31:49 2010.