diff --git a/banner.png b/banner.png new file mode 100644 index 0000000..f06355e Binary files /dev/null and b/banner.png differ diff --git a/banner.xcf b/banner.xcf new file mode 100644 index 0000000..a20329d Binary files /dev/null and b/banner.xcf differ diff --git a/tests/t-demo-extravagant.cpp b/tests/t-demo-extravagant.cpp index 029b23b..3637924 100644 --- a/tests/t-demo-extravagant.cpp +++ b/tests/t-demo-extravagant.cpp @@ -2,35 +2,56 @@ #include "../clutchlog/clutchlog.h" -void i() +void dump_data() +{ + CLUTCHLOG(progress, "Dump parsed data..."); + CLUTCHLOG(debug, "Write in `data_dump.csv`"); + CLUTCHLOG(debug, "Data frame size: " << 0 << "x" << "150"); + CLUTCHLOG(xdebug, "Resolution: " << 0); +} + +void reset() { CLUTCHLOG(progress, "Reset data structures..."); CLUTCHLOG(debug, "OK"); CLUTCHLOG(info, "Reset functors..."); CLUTCHLOG(critical, "Impossible to reset, I cannot recover."); + dump_data(); } -void h() +void process() { CLUTCHLOG(note, "Filling up data of size: " << 0); CLUTCHLOG(error, "Cannot parse input, I will reset stuff."); - i(); + reset(); CLUTCHLOG(xdebug, "Last seen state: " << 0); } -void g() +void init_data() { - CLUTCHLOG(warning, "Input size < " << 1); - h(); + CLUTCHLOG(debug, "Data frame size: " << 2 << "x" << "150"); + CLUTCHLOG(xdebug, "Resolution: " << 0.001); + CLUTCHLOG(warning, "Input height < " << 3); } -void f() +void init_func() +{ + CLUTCHLOG(progress, "Allocate memory..."); + CLUTCHLOG(warning, "Dimension: " << 12); + CLUTCHLOG(debug, "OK"); +} + +void init() { CLUTCHLOG(progress, "Initialize data structures..."); + init_data(); CLUTCHLOG(debug, "OK"); CLUTCHLOG(progress, "Initialize functors..."); + init_func(); + CLUTCHLOG(debug, "OK"); + CLUTCHLOG(progress, "Process..."); + process(); CLUTCHLOG(debug, "OK"); - g(); } int main(const int argc, char* argv[]) @@ -97,8 +118,8 @@ int main(const int argc, char* argv[]) } } - CLUTCHLOG(progress,"Start something"); - f(); + CLUTCHLOG(progress,"Start analysis"); + init(); CLUTCHLOG(progress,"I have stopped"); }