MeshLib C++ Docs
Loading...
Searching...
No Matches
MRSystem.h File Reference
#include "MRPch/MRBindingMacros.h"
#include "MRMeshFwd.h"
#include "MRColor.h"
#include <filesystem>
#include <string>

Go to the source code of this file.

Classes

struct  MR::SystemMemory

Namespaces

namespace  MR
 Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).

Functions

std::string MR::getProductName ()
 The name of the current application.
void MR::SetCurrentThreadName (const char *name)
 sets debug name for the current thread
std::filesystem::path MR::GetExeDirectory ()
 returns path of current exe directory
std::filesystem::path MR::GetResourcesDirectory ()
std::filesystem::path MR::GetFontsDirectory ()
std::filesystem::path MR::GetLibsDirectory ()
std::filesystem::path MR::GetEmbeddedPythonDirectory ()
std::filesystem::path MR::getUserConfigDir ()
 return path to the folder with user config file(s)
std::filesystem::path MR::getUserConfigFilePath ()
 returns path of config file in APPDATA
std::filesystem::path MR::GetTempDirectory ()
 returns temp directory
std::filesystem::path MR::GetHomeDirectory ()
 returns home directory
const char * MR::GetMRVersionString ()
 returns version of MR
void MR::OpenLink (const std::string &url)
 Opens given link in default browser.
bool MR::OpenDocument (const std::filesystem::path &path)
 Opens given file (or directory) in associated application.
std::string MR::GetCpuId ()
 returns string identification of the CPU
std::string MR::GetDetailedOSName ()
 returns string with OS name with details
std::string MR::getOSNoSpaces ()
 returns string identification of the OS and, on Arm (or any macOS), of the CPU architecture, e.g. Windows_arm64
void MR::setNewHandlerIfNeeded ()
 sets new handler for operator new if needed for some platforms
std::string MR::getCurrentStacktrace ()
 returns string representation of the current stacktrace
void MR::setStacktraceProvider (std::string(*provider)())
SystemMemory MR::getSystemMemory ()
 return information about memory available in the system
std::uint32_t MR::getCurrentProcessId ()
 return the current process's id (or 0 for Wasm)
std::string MR::getLocalTimeZone ()
 returns the current offset of the local time zone from UTC, e.g. "UTC+03:00", or an empty string if it is unknown
void MR::setupLoggerByDefault (const std::function< void()> &customLogSinkAdder={})