|
OpenMS
2.6.0
|
Go to the documentation of this file.
37 #include <OpenMS/build_config.h>
89 size_t bytes =
sizeof(size_t);
105 #if defined(WIN32) // Windows
107 #elif (defined(__MACH__) && defined(__APPLE__)) // MacOS
109 #elif (defined(__unix__)) //Linux/FreeBSD TODO make a difference?
111 #endif // else stays unknown
117 if (QSysInfo::WordSize == 32)
148 return OPENMS_BUILD_TYPE;
157 return omp_get_max_threads();
static Size getOpenMPMaxNumThreads()
Get the maximum number of threads that OpenMP will use (including hyperthreads) Note: This could also...
Definition: BuildInfo.h:154
static bool isOpenMPEnabled()
Checks if OpenMP was enabled during build, based on the _OPENMP macro.
Definition: BuildInfo.h:136
A more convenient string class.
Definition: String.h:59
Definition: BuildInfo.h:50
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
OpenMSOSInfo()
Definition: BuildInfo.h:62
Definition: BuildInfo.h:52
Definition: BuildInfo.h:50
static String getBinaryArchitecture()
Get Architecture of this binary (simply by looking at size of a pointer, i.e. size_t).
Definition: BuildInfo.h:87
std::string OpenMS_OSNames[]
Definition: BuildInfo.h:51
static String getBuildType()
Get the build type used during building the OpenMS library.
Definition: BuildInfo.h:146
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
Definition: BuildInfo.h:52
Definition: BuildInfo.h:50
Definition: BuildInfo.h:52
String os_version_
Definition: BuildInfo.h:58
OpenMS_Architecture arch_
Definition: BuildInfo.h:59
Definition: BuildInfo.h:50
String getArchAsString() const
Get the current architecture (32-bit or 64-bit)
Definition: BuildInfo.h:75
std::string OpenMS_ArchNames[]
Definition: BuildInfo.h:53
Struct with some static methods to get infos on the build configuration.
Definition: BuildInfo.h:132
String getOSAsString() const
Get the current operating system (Windows, MacOS, Linux)
Definition: BuildInfo.h:69
Definition: BuildInfo.h:55
OpenMS_Architecture
Definition: BuildInfo.h:52
OpenMS_OS
Definition: BuildInfo.h:50
String getOSVersionAsString() const
Get the OS version (e.g. 10.15 for macOS or 10 for Windows)
Definition: BuildInfo.h:81
OpenMS_OS os_
Definition: BuildInfo.h:57
static OpenMSOSInfo getOSInfo()
Constructs and returns an OpenMSOSInfo object.
Definition: BuildInfo.h:102