C# Class ARUP.IssueTracker.Classes.IfcGuid

Conversion methods between an IFC encoded GUID string and a .NET GUID. This is a translation of the C code found here: http://www.iai-tech.org/ifc/IFC2x3/TC1/html/index.htm
Show file Open project: ArupAus/issue-tracker

Public Methods

Method Description
FromIfcGUID ( string guid ) : System.Guid

Reconstruction of the GUID from an IFC GUID string (base64)

ToIfcGuid ( System.Guid guid ) : string

Conversion of a GUID to a string representing the GUID

Private Methods

Method Description
cv_from_64 ( char str, int start, int len ) : uint

The reverse function to calculate the number from the characters

cv_to_64 ( uint number, char &result, int start, int len ) : void

Conversion of an integer into characters with base 64 using the table base64Chars

Method Details

FromIfcGUID() public static method

Reconstruction of the GUID from an IFC GUID string (base64)
public static FromIfcGUID ( string guid ) : System.Guid
guid string The GUID string to convert. Must be 22 characters long
return System.Guid

ToIfcGuid() public static method

Conversion of a GUID to a string representing the GUID
public static ToIfcGuid ( System.Guid guid ) : string
guid System.Guid The GUID to convert
return string