.dhcSim.Utilities.getAbsolutePath

Information

This function returns the absolute path of the uniform resource identifier by searching for a file with the name

file://uri
modelica://uri
modelica://dhcSim/uri

The function returns the absolute path of the first file that is found, using the above search order. If the file is not found, then this function terminates with an assert.

This function has been introduced to allow users to specify the name of weather data files with a path that is relative to the library path. This allows users to change the current working directory while still being able to read the files.

Interface

function getAbsolutePath
  input String uri "A uri";
  output String path "The absolute path of the file pointed to by the URI";
end getAbsolutePath;

Revisions


Generated at 2024-11-23T19:25:52Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos