forked from ItsBranK/UE3SDKGenerator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPrinter.hpp
27 lines (25 loc) · 1.15 KB
/
Printer.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once
#include <iostream>
#include <iomanip>
#include <sstream>
#include <fstream>
#include <string>
#include <filesystem>
#include <cstdarg>
namespace Printer
{
void Empty(std::ostringstream& stream);
void FillRight(std::ostringstream& stream, const char& fill, uint64_t width);
void FillLeft(std::ostringstream& stream, const char& fill, uint64_t width);
void FillRight(std::ofstream& stream, const char& fill, uint64_t width);
void FillLeft(std::ofstream& stream, const char& fill, uint64_t width);
std::string Hex(uintptr_t address, uint64_t width);
std::string Decimal(uintptr_t address, uint64_t width);
std::string Precision(float value, uint64_t precision);
void Header(std::ostringstream& stream, const std::string& fileName, const std::string& fileExtension, bool pragmaPush);
void Header(std::ofstream& stream, const std::string& fileName, const std::string& fileExtension, bool pragmaPush);
void Section(std::ostringstream& stream, const std::string& sectionName);
void Section(std::ofstream& stream, const std::string& sectionName);
void Footer(std::ostringstream& stream, bool pragmaPop);
void Footer(std::ofstream& stream, bool pragmaPop);
}