DarkflameServer/dCommon/Diagnostics.h

32 lines
644 B
C
Raw Permalink Normal View History

#pragma once
#include <string>
class Diagnostics
{
public:
2022-07-28 13:39:57 +00:00
static void Initialize();
2022-07-28 13:39:57 +00:00
static void SetProcessName(const std::string& name);
2022-07-28 13:39:57 +00:00
static void SetProcessFileName(const std::string& name);
2022-07-28 13:39:57 +00:00
static void SetOutDirectory(const std::string& path);
2022-07-28 13:39:57 +00:00
static void SetProduceMemoryDump(bool value);
2022-07-28 13:39:57 +00:00
static const std::string& GetProcessName();
2022-07-28 13:39:57 +00:00
static const std::string& GetProcessFileName();
2022-07-28 13:39:57 +00:00
static const std::string& GetOutDirectory();
2022-07-28 13:39:57 +00:00
static bool GetProduceMemoryDump();
private:
2022-07-28 13:39:57 +00:00
static std::string m_ProcessName;
static std::string m_ProcessFileName;
static std::string m_OutDirectory;
static bool m_ProduceMemoryDump;
};