-
Notifications
You must be signed in to change notification settings - Fork 133
/
Copy pathXbimArchitectureConventions.cs
63 lines (54 loc) · 1.51 KB
/
XbimArchitectureConventions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
using System;
namespace Xbim.Geometry.Engine.Interop
{
/// <summary>
/// A class representing the conventions we use for processor specific Geometry Engine library
/// </summary>
internal class XbimArchitectureConventions
{
public XbimArchitectureConventions()
{
if (Is64BitProcess())
{
Suffix = "64";
}
else
{
Suffix = "32";
}
}
public string AssemblyName
{
get
{
return ModuleName + Suffix;
}
}
/// <summary>
/// The suffix we apply to platform-specific assemblys in the current process architecture
/// </summary>
public string Suffix { get; private set; }
///// <summary>
///// The default subfolder to look for platform-specific assemblys in the current process architecture
///// </summary>
//public string SubFolder { get; private set; }
/// <summary>
/// name of the dll that that holds the geometry functionality
/// </summary>
public string ModuleName
{
get
{
#if VS2015
return "Xbim.Geometry.Engine2015";
#else
return "Xbim.Geometry.Engine";
#endif
}
}
public static bool Is64BitProcess()
{
return (IntPtr.Size == 8);
}
}
}