Programming Reference for VirtualLab Fusion  2026.1
Loading...
Searching...
No Matches
ImportSupportFunctions Class Reference

This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
Provides static import functions. More...

Static Public Member Functions

static Encoding GetFileEncoding (string filePath)
 Detects the encoding of a file using a C# port of the Mozilla Universal Charset Detector. Note that this method reads the complete file which might be performance critical.
 
static SampledInterface ImportSampledHeightProfile ()
 Asks for a XML file and imports the data specified in said XML file into a SampledInterface.
 

Static Public Attributes

static int DefaultNonUnicodeCodePage
 The code page used for non-unicode text files. Unless changed, it is code page 1252 is the "Western European" code page, often referred to as "ANSI". (https://en.wikipedia.org/wiki/Windows-1252)
 

Detailed Description

This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
Provides static import functions.

Member Function Documentation

◆ GetFileEncoding()

static Encoding GetFileEncoding ( string filePath)
static

Detects the encoding of a file using a C# port of the Mozilla Universal Charset Detector. Note that this method reads the complete file which might be performance critical.

Parameters
filePathFull file path of the text file for which the encoding is to be detected.
Returns
The appropriate encoding. DefaultNonUnicodeCodePage is used as fallback.

◆ ImportSampledHeightProfile()

static SampledInterface ImportSampledHeightProfile ( )
static

Asks for a XML file and imports the data specified in said XML file into a SampledInterface.

Returns
The imported SampledInterface.