KIDS  ver-0.0.1
KIDS : Kernel Integrated Dynamics Simulator
Loading...
Searching...
No Matches
fmt.h
Go to the documentation of this file.
1
28#ifndef KIDS_FMT_H
29#define KIDS_FMT_H
30
31#include <iomanip>
32#include <iostream>
33
34namespace PROJECT_NS {
35
39constexpr inline int FMT_WIDTH(int X) { return X + 7; }
40#define FMT(X) \
41 " " << std::setiosflags(std::ios::scientific) /*scientific notation*/ \
42 << std::setprecision(X) /*precision*/ \
43 << std::right /*alignment*/ \
44 << std::setw(FMT_WIDTH(X)) /*width of text*/
45
49#define LOC() (std::string(basename(__FILE__)) + ":" + std::to_string(__LINE__))
50
51}; // namespace PROJECT_NS
52
53#endif // KIDS_FMT_H
< http://warp.povusers.org/FunctionParser/fparser.html
Definition Context.h:39
constexpr int FMT_WIDTH(int X)
control the io printing format
Definition fmt.h:39