Write output to a file, using different level of indentation.
More...
#include <Logger.hpp>
|
enum | RealFormat { GENERAL =0,
FIXED =1,
ENGINEER =2
} |
| Print mode for double/float.
|
|
Write output to a file, using different level of indentation.
Definition at line 35 of file Logger.hpp.
SUNphi::Logger::Logger |
( |
const char * |
path, |
|
|
const bool & |
prependTime = true |
|
) |
| |
|
inline |
Create with a path.
- Parameters
-
path | Path to open |
prependTime | Prepend or not with time |
Definition at line 394 of file Logger.hpp.
template<typename... Ts>
decltype(auto) SUNphi::Logger::file |
( |
Ts &&... |
ts | ) |
|
|
inlineprivate |
Overload the file
const method passing all args
- Parameters
-
Definition at line 49 of file Logger.hpp.
void SUNphi::File::open |
( |
const char * |
path, |
|
|
const char * |
mode, |
|
|
const bool |
crashIfFail = true |
|
) |
| |
|
inlineinherited |
Open a file, crashing if impossible.
- Parameters
-
path | Path to open |
mode | Mode used to open |
crashIfFail | Crash or not if failing |
Definition at line 90 of file File.hpp.
template<typename T >
File& SUNphi::File::operator* |
( |
T && |
t | ) |
|
|
inlineinherited |
Prints after putting a space.
- Parameters
-
Definition at line 235 of file File.hpp.
File& SUNphi::File::operator<< |
( |
const char & |
c | ) |
|
|
inlineinherited |
Prints a char.
- Parameters
-
Definition at line 152 of file File.hpp.
File& SUNphi::File::operator<< |
( |
const int32_t & |
i | ) |
|
|
inlineinherited |
Prints an integer.
- Parameters
-
Definition at line 163 of file File.hpp.
File& SUNphi::File::operator<< |
( |
const uint32_t & |
i | ) |
|
|
inlineinherited |
Prints an unsigned integer.
- Parameters
-
i | Unsigned integer to write |
Definition at line 173 of file File.hpp.
File& SUNphi::File::operator<< |
( |
const int64_t & |
l | ) |
|
|
inlineinherited |
Prints a long integer.
- Parameters
-
Definition at line 183 of file File.hpp.
File& SUNphi::File::operator<< |
( |
const uint64_t & |
l | ) |
|
|
inlineinherited |
Prints a long unsigned integer.
- Parameters
-
l | Long unsigned integer to write |
Definition at line 193 of file File.hpp.
File& SUNphi::File::operator<< |
( |
const double & |
d | ) |
|
|
inlineinherited |
Prints a double.
String to print real numbers
The first component is signed or not The second component is the format
Definition at line 203 of file File.hpp.
template<typename T >
File& SUNphi::File::operator<< |
( |
const T * |
p | ) |
|
|
inlineinherited |
Prints a pointer.
- Parameters
-
Definition at line 224 of file File.hpp.
LoggerLine SUNphi::Logger::printVariadicMessage |
( |
const char * |
format, |
|
|
va_list |
ap |
|
) |
| |
|
inline |
Print a C-style variadic message.
- Parameters
-
format | Format to print |
ap | Variadic part |
Definition at line 386 of file Logger.hpp.
The documentation for this class was generated from the following files: