![]() |
3DCoat Core API
The 3DCoat API documentation.
|
Public Member Functions | |
logger () | |
create the logger object. You may call directTo later and flush the output there. Otherwise, the output will be directed to the Log.txt in case if you call flush(); | |
logger (const char *filename) | |
create the logger object and direct the output there | |
void | open () |
open the accumulated log in the default text editor | |
void | showMessage () |
show the accumulated log in the message box | |
logger & | directTo (const char *filename) |
Direct the log output to the file | |
str | getFullPath () |
Returns the absolute path to the log file. | |
logger & | operator<< (const char *) |
send the string to the output | |
logger & | operator<< (str &) |
send the string to the output | |
logger & | operator<< (const wchar_t *) |
send the Unicode string to the output | |
logger & | operator<< (int) |
send the integer value to the output | |
logger & | operator<< (float) |
send the float value to the output in correspondence with the current precission | |
logger & | operator<< (double) |
send the double value to the output in correspondence with the current precission | |
logger & | operator<< (const vec2 &) |
send the 2d vector to the output | |
logger & | operator<< (const vec3 &) |
send the 3d vector to the output | |
logger & | operator<< (const vec4 &) |
send the 4d vector to the output | |
logger & | operator<< (BaseClass *) |
send the BaseClass to the output as json | |
logger & | format (const char *format,...) |
send the formatted message | |
logger & | flush () |
save all acumulated text to the file | |
logger & | newline () |
start newline in the text file | |
logger & | timestamp () |
add the timestamp to the log as the | |
logger & | startTimer () |
start the timer to profile some operation | |
logger & | endTimer () |
stop the timer and output the time into the log as amount of microseconds | |
logger & | floatPrecission (int signs=2) |
set the precission of floating-point output | |
coat::logger::logger | ( | const char * | filename | ) |
create the logger object and direct the output there
filename | the filename to direct |
logger & coat::logger::directTo | ( | const char * | filename | ) |
Direct the log output to the file
filename | the filename to log there. The filename may be relative path. |
logger & coat::logger::endTimer | ( | ) |
stop the timer and output the time into the log as amount of microseconds
logger & coat::logger::floatPrecission | ( | int | signs = 2 | ) |
set the precission of floating-point output
logger & coat::logger::flush | ( | ) |
save all acumulated text to the file
logger & coat::logger::format | ( | const char * | format, |
... ) |
send the formatted message
format | |
... |
str coat::logger::getFullPath | ( | ) |
Returns the absolute path to the log file.
logger & coat::logger::newline | ( | ) |
start newline in the text file
send the BaseClass to the output as json
logger & coat::logger::operator<< | ( | const char * | ) |
send the string to the output
send the 2d vector to the output
send the 3d vector to the output
send the 4d vector to the output
logger & coat::logger::operator<< | ( | const wchar_t * | ) |
send the Unicode string to the output
logger & coat::logger::operator<< | ( | double | ) |
send the double value to the output in correspondence with the current precission
logger & coat::logger::operator<< | ( | float | ) |
send the float value to the output in correspondence with the current precission
logger & coat::logger::operator<< | ( | int | ) |
send the integer value to the output
logger & coat::logger::startTimer | ( | ) |
start the timer to profile some operation
logger & coat::logger::timestamp | ( | ) |
add the timestamp to the log as the