Dynalib Utils
src
Utilities
PrintUtils.h
Go to the documentation of this file.
1
//
2
// Created by Ken Kopelson on 3/11/17.
3
//
4
5
#ifndef ROBOCHEFEMULATOR_PRINTUTILS_H
6
#define ROBOCHEFEMULATOR_PRINTUTILS_H
7
8
#include <iostream>
9
#include <fstream>
10
using namespace
std
;
11
12
#include "
String.h
"
13
14
class
PrintUtils
{
15
static
bool
_printToFile;
16
static
ofstream outFile;
17
18
static
void
_sprintf(
char
* buffer,
size_t
maxLen,
String
format
, va_list args);
19
20
public
:
21
static
bool
printToConsole
;
22
23
static
void
openOutfile(
char
* fileName);
24
25
static
void
closeOutfile();
26
27
static
bool
isPrintToFile();
28
29
static
void
print(
String
text);
30
31
static
void
println();
32
33
static
void
println(
String
text);
34
35
static
void
printIndent(
String
text,
int
indent);
36
37
static
void
printLnIndent(
String
text,
int
indent);
38
39
static
void
sprintf(
char
* buffer,
size_t
maxLen,
String
format, ...);
40
41
static
void
printf(
String
format, ...);
42
};
43
44
#endif //ROBOCHEFEMULATOR_PRINTUTILS_H
std
date::format
auto format(const std::locale &loc, const CharT *fmt, const Streamable &tp) -> decltype(to_stream(std::declval< std::basic_ostream< CharT > &>(), fmt, tp), std::basic_string< CharT >
Definition:
date.h:5663
String
Definition:
String.h:60
PrintUtils
Definition:
PrintUtils.h:14
PrintUtils::printToConsole
static bool printToConsole
Definition:
PrintUtils.h:21
String.h
Generated by
1.8.13