 |
Shiokaze Framework
A research-oriented fluid solver for computer graphics
|
|
Go to the documentation of this file.
25 #ifndef SHKZ_CONSOLE_H
26 #define SHKZ_CONSOLE_H
45 std::string
run( std::string format, ...);
54 int system( std::string format, ...);
63 std::string
tstr(
double msec);
72 std::string
nth(
int num);
81 std::string
size_str(
size_t bytes );
90 std::string
format_str( std::string format, ...);
111 void dump(std::string format, ...);
127 void write( std::string name,
double number );
void dump(std::string format,...)
Print a log message in a single line.
std::string format_str(std::string format,...)
Format string with given arguments.
void set_time(double time)
Set a time for logging.
void write(std::string name, double number)
Export number associated with the name as log file.
void set_root_path(std::string path)
Set path to export log files.
std::string get_root_path()
Get path to export log files.
#define SHKZ_BEGIN_NAMESPACE
Name space beggining definition for shiokaze.
Definition: common.h:39
std::string size_str(size_t bytes)
Convert byte size to string such as killo bytes and mega bytes.
Namespace that helps executing commands, dumping messages, writing log files.
Definition: console.h:36
int system(std::string format,...)
Excecute a command and get result.
std::string run(std::string format,...)
Excecute a command and get result.
std::string nth(int num)
Convert enumeration to string such as 1st, 2nd.
#define SHKZ_END_NAMESPACE
Name space end definition for shiokaze.
Definition: common.h:44
std::string tstr(double msec)
Convert time duration to string.