Shiokaze Framework
A research-oriented fluid solver for computer graphics
console.h File Reference
#include <shiokaze/core/common.h>
#include <string>

Go to the source code of this file.

Namespaces

 console
 Namespace that helps executing commands, dumping messages, writing log files.
 

Functions

std::string console::run (std::string format,...)
 Excecute a command and get result. More...
 
int console::system (std::string format,...)
 Excecute a command and get result. More...
 
std::string console::tstr (double msec)
 Convert time duration to string. More...
 
std::string console::nth (int num)
 Convert enumeration to string such as 1st, 2nd. More...
 
std::string console::size_str (size_t bytes)
 Convert byte size to string such as killo bytes and mega bytes. More...
 
std::string console::format_str (std::string format,...)
 Format string with given arguments. More...
 
void console::set_root_path (std::string path)
 Set path to export log files. More...
 
std::string console::get_root_path ()
 Get path to export log files. More...
 
void console::dump (std::string format,...)
 Print a log message in a single line. More...
 
void console::set_time (double time)
 Set a time for logging. More...
 
void console::write (std::string name, double number)
 Export number associated with the name as log file. More...