StormByte C++ Library 1.2.0
StormByte is a comprehensive, cross-platform C++ library aimed at easing system programming, configuration management, logging, and database handling tasks. This library provides a unified API that abstracts away the complexities and inconsistencies of different platforms (Windows, Linux).
Loading...
Searching...
No Matches
Namespaces | Functions
system.hxx File Reference
#include <StormByte/visibility.h>
#include <chrono>
#include <filesystem>
#include <string>
Include dependency graph for system.hxx:

Go to the source code of this file.

Namespaces

namespace  StormByte
 Root namespace of the StormByte suite.
 
namespace  StormByte::System
 Path and timing helpers that hide OS differences.
 

Functions

std::filesystem::path StormByte::System::TempFileName (const std::string &prefix="TMP")
 Creates a unique temporary file and returns its path.
 
std::filesystem::path StormByte::System::CurrentPath ()
 Current working directory.
 
std::filesystem::path StormByte::System::ExecutablePath ()
 Directory that contains the running executable.
 
template<typename Rep , typename Period >
void StormByte::System::Sleep (const std::chrono::duration< Rep, Period > &duration)
 Suspends the calling thread.