C# Class OpenBveApi.Path

Provides structures, enumerations and functions for cross-platform file access.
Datei anzeigen Open project: leezer3/OpenBVE Class Usage Examples

Public Methods

Method Description
CombineDirectory ( string absolute, string relative ) : string

Combines a platform-specific absolute path with a platform-independent relative path that points to a directory.

CombineFile ( string absolute, string relative ) : string

Combines a platform-specific absolute path with a platform-independent relative path that points to a file.

SetPackageLookupDirectories ( string names, string directories, object authentication ) : object

Provides a list of package names and associated directories.

Private Methods

Method Description
IsAllPeriods ( string text ) : bool

Checks whether the specified string consists only of periods.

ResolvePackageReference ( string &absolute, string &relative ) : void

Resolves a package reference in the relative path and adjusts the absolute path if found.

Method Details

CombineDirectory() public static method

Combines a platform-specific absolute path with a platform-independent relative path that points to a directory.
Raised when combining the paths failed, for example due to malformed paths or due to unauthorized access.
public static CombineDirectory ( string absolute, string relative ) : string
absolute string The platform-specific absolute path.
relative string The platform-independent relative path.
return string

CombineFile() public static method

Combines a platform-specific absolute path with a platform-independent relative path that points to a file.
Raised when combining the paths failed, for example due to malformed paths or due to unauthorized access.
public static CombineFile ( string absolute, string relative ) : string
absolute string The platform-specific absolute path.
relative string The platform-independent relative path.
return string

SetPackageLookupDirectories() public static method

Provides a list of package names and associated directories.
Raised when the authentication failed.
public static SetPackageLookupDirectories ( string names, string directories, object authentication ) : object
names string The list of names.
directories string The list of fully qualified directories.
authentication object A null reference on the first process-wide call to this function, otherwise the object returned by this function in the previous call.
return object