cpp-terminal 1.0.0
Small C++ library for writing multiplatform terminal applications
Loading...
Searching...
No Matches
file_initializer.hpp
Go to the documentation of this file.
1/*
2* cpp-terminal
3* C++ library for writing multi-platform terminal applications.
4*
5* SPDX-FileCopyrightText: 2019-2024 cpp-terminal
6*
7* SPDX-License-Identifier: MIT
8*/
9
10#pragma once
11
12#include <cstddef>
13
14namespace Term
15{
16
17namespace Private
18{
19
21{
22public:
23 ~FileInitializer() noexcept;
24 FileInitializer() noexcept;
29
30private:
31 static bool m_consoleCreated;
32 static std::size_t m_counter;
39 static void attachConsole() noexcept;
40
46 static void detachConsole() noexcept;
47
53 static void openStandardStreams() noexcept;
54};
55
56} // namespace Private
57
58} // namespace Term
FileInitializer(const FileInitializer &)=delete
FileInitializer & operator=(FileInitializer &&)=delete
static void attachConsole() noexcept
Attach the console.
static void openStandardStreams() noexcept
Open the standard streams.
static void detachConsole() noexcept
Detach the console.
FileInitializer & operator=(const FileInitializer &)=delete
FileInitializer(FileInitializer &&)=delete
Definition args.cpp:13