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 for bindings generation
 

Functions

MRMESH_API void MR::SetCurrentThreadName (const char *name)
 sets debug name for the current thread
 
MRMESH_API MR_BIND_IGNORE std::filesystem::path MR::GetExeDirectory ()
 returns path of current exe directory
 
MRMESH_API MR_BIND_IGNORE std::filesystem::path MR::GetResourcesDirectory ()
 
MRMESH_API MR_BIND_IGNORE std::filesystem::path MR::GetFontsDirectory ()
 
MRMESH_API MR_BIND_IGNORE std::filesystem::path MR::GetLibsDirectory ()
 
MRMESH_API MR_BIND_IGNORE std::filesystem::path MR::GetEmbeddedPythonDirectory ()
 
MRMESH_API std::filesystem::path MR::getUserConfigDir ()
 return path to the folder with user config file(s)
 
MRMESH_API std::filesystem::path MR::getUserConfigFilePath ()
 returns path of config file in APPDATA
 
MRMESH_API std::filesystem::path MR::GetTempDirectory ()
 returns temp directory
 
MRMESH_API std::filesystem::path MR::GetHomeDirectory ()
 returns home directory
 
MRMESH_API const char * MR::GetMRVersionString ()
 _WIN32
 
MRMESH_API void MR::OpenLink (const std::string &url)
 Opens given link in default browser.
 
MRMESH_API bool MR::OpenDocument (const std::filesystem::path &path)
 Opens given file (or directory) in associated application.
 
MRMESH_API std::string MR::GetCpuId ()
 returns string identification of the CPU
 
MRMESH_API std::string MR::GetDetailedOSName ()
 returns string with OS name with details
 
MRMESH_API std::string MR::getOSNoSpaces ()
 returns string identification of the OS
 
MRMESH_API void MR::setNewHandlerIfNeeded ()
 sets new handler for operator new if needed for some platforms
 
MRMESH_API std::string MR::getCurrentStacktrace ()
 returns string representation of the current stacktrace
 
MRMESH_API SystemMemory MR::getSystemMemory ()
 return information about memory available in the system
 
MRMESH_API void MR::setupLoggerByDefault (const std::function< void()> &customLogSinkAdder={})
 _WIN32