From fee6c601763fd4b2d861b28a9b3c68388ae52c35 Mon Sep 17 00:00:00 2001 From: nojhan Date: Mon, 23 Jan 2023 17:40:22 +0100 Subject: [PATCH] bump to v0.13 --- CMakeLists.txt | 2 +- docs/annotated.html | 15 +- docs/classclutchlog-members.html | 2 +- docs/classclutchlog.html | 20 +- docs/classclutchlog_1_1fmt-members.html | 55 +- docs/classclutchlog_1_1fmt.html | 284 ++- docs/classclutchlog_1_1fmt__coll__graph.map | 10 + docs/classclutchlog_1_1fmt__coll__graph.md5 | 1 + docs/classclutchlog_1_1fmt__coll__graph.svg | 237 +++ ...classclutchlog_1_1fmt__coll__graph_org.svg | 149 ++ docs/classes.html | 31 +- docs/clutchlog_8h.html | 25 +- docs/clutchlog_8h__dep__incl.map | 13 +- docs/clutchlog_8h__dep__incl.md5 | 2 +- docs/clutchlog_8h__dep__incl.svg | 193 +- docs/clutchlog_8h__dep__incl_org.svg | 157 ++ docs/clutchlog_8h_source.html | 1817 ++++++++++------- docs/dir_000001_000000.html | 4 +- .../dir_59425e443f801f1f2fd8bbe4959a3ccf.html | 2 +- ...r_59425e443f801f1f2fd8bbe4959a3ccf_dep.map | 2 +- ...r_59425e443f801f1f2fd8bbe4959a3ccf_dep.md5 | 2 +- ...r_59425e443f801f1f2fd8bbe4959a3ccf_dep.svg | 4 +- .../dir_c318bd5cf14aaa5601e6029e0b5b4048.html | 2 +- docs/files.html | 13 +- docs/files_dup.js | 3 + docs/functions.html | 96 +- docs/functions_enum.html | 12 +- docs/functions_func.html | 83 +- docs/functions_rela.html | 5 +- docs/functions_vars.html | 66 +- docs/globals.html | 2 +- docs/globals_defs.html | 2 +- docs/graph_legend.html | 2 +- docs/group___default_config.html | 2 +- docs/group___formating.html | 2 +- docs/group___formating.js | 85 +- docs/group___main.html | 2 +- docs/group___main.js | 10 +- docs/group___use_macros.html | 2 +- docs/group__colors16.html | 185 ++ docs/group__colors16.js | 9 + docs/group__colors256__16_m.html | 150 ++ docs/group__colors256__16_m.js | 58 + docs/hierarchy.html | 118 ++ docs/hierarchy.js | 16 + docs/index.html | 202 +- docs/inherit_graph_0.map | 3 + docs/inherit_graph_0.md5 | 1 + docs/inherit_graph_0.svg | 22 + docs/inherit_graph_1.map | 3 + docs/inherit_graph_1.md5 | 1 + docs/inherit_graph_1.svg | 22 + docs/inherit_graph_2.map | 9 + docs/inherit_graph_2.md5 | 1 + docs/inherit_graph_2.svg | 112 + docs/inherit_graph_3.map | 3 + docs/inherit_graph_3.md5 | 1 + docs/inherit_graph_3.svg | 22 + docs/inherits.html | 110 + docs/menudata.js | 29 +- docs/modules.html | 4 +- docs/modules.js | 4 +- docs/navtreedata.js | 37 +- docs/navtreeindex0.js | 213 +- docs/navtreeindex1.js | 37 + docs/search/all_1.js | 3 +- docs/search/all_10.html | 30 + docs/search/all_10.js | 4 + docs/search/all_2.js | 23 +- docs/search/all_3.js | 34 +- docs/search/all_4.js | 18 +- docs/search/all_5.js | 13 +- docs/search/all_6.js | 9 +- docs/search/all_7.js | 3 +- docs/search/all_8.js | 6 +- docs/search/all_9.js | 9 +- docs/search/all_a.js | 4 +- docs/search/all_b.js | 7 +- docs/search/all_c.js | 4 +- docs/search/all_d.js | 3 +- docs/search/all_e.html | 30 + docs/search/all_e.js | 7 + docs/search/all_f.html | 30 + docs/search/all_f.js | 7 + docs/search/classes_0.js | 3 +- docs/search/classes_1.js | 5 +- docs/search/classes_2.js | 4 +- docs/search/classes_3.html | 30 + docs/search/classes_3.js | 4 + docs/search/defines_0.js | 6 +- docs/search/defines_1.js | 2 +- docs/search/enums_0.js | 2 +- docs/search/enums_1.js | 2 +- docs/search/enums_2.js | 2 +- docs/search/enums_3.js | 2 +- docs/search/enums_4.html | 30 + docs/search/enums_4.js | 4 + docs/search/enums_5.html | 30 + docs/search/enums_5.js | 4 + docs/search/enumvalues_0.html | 30 + docs/search/enumvalues_0.js | 6 + docs/search/files_0.js | 2 +- docs/search/functions_0.js | 3 +- docs/search/functions_1.js | 8 +- docs/search/functions_2.js | 8 +- docs/search/functions_3.js | 9 +- docs/search/functions_4.js | 2 +- docs/search/functions_5.js | 8 +- docs/search/functions_6.js | 5 +- docs/search/functions_7.js | 2 +- docs/search/functions_8.html | 8 +- docs/search/functions_8.js | 2 +- docs/search/functions_9.html | 30 + docs/search/functions_9.js | 6 + docs/search/functions_a.html | 30 + docs/search/functions_a.js | 4 + docs/search/groups_0.js | 2 +- docs/search/groups_1.js | 2 +- docs/search/groups_2.js | 2 +- docs/search/groups_3.js | 2 +- docs/search/groups_4.html | 8 +- docs/search/groups_4.js | 2 +- docs/search/groups_5.html | 8 +- docs/search/groups_5.js | 2 +- docs/search/pages_0.js | 2 +- docs/search/related_0.js | 2 +- docs/search/searchdata.js | 37 +- docs/search/variables_0.js | 22 +- docs/search/variables_1.js | 4 +- docs/search/variables_2.js | 16 +- docs/search/variables_3.js | 4 +- docs/search/variables_4.js | 2 +- docs/search/variables_5.js | 4 +- docs/search/variables_6.js | 2 +- docs/search/variables_7.html | 30 + docs/search/variables_7.js | 5 + docs/search/variables_8.html | 30 + docs/search/variables_8.js | 5 + ...tclutchlog_1_1fmt_1_1bg__16_m-members.html | 121 ++ docs/structclutchlog_1_1fmt_1_1bg__16_m.html | 322 +++ ...tchlog_1_1fmt_1_1bg__16_m__coll__graph.map | 5 + ...tchlog_1_1fmt_1_1bg__16_m__coll__graph.md5 | 1 + ...tchlog_1_1fmt_1_1bg__16_m__coll__graph.svg | 52 + ...log_1_1fmt_1_1bg__16_m__inherit__graph.map | 5 + ...log_1_1fmt_1_1bg__16_m__inherit__graph.md5 | 1 + ...log_1_1fmt_1_1bg__16_m__inherit__graph.svg | 52 + ...ctclutchlog_1_1fmt_1_1bg__256-members.html | 117 ++ docs/structclutchlog_1_1fmt_1_1bg__256.html | 254 +++ ...utchlog_1_1fmt_1_1bg__256__coll__graph.map | 5 + ...utchlog_1_1fmt_1_1bg__256__coll__graph.md5 | 1 + ...utchlog_1_1fmt_1_1bg__256__coll__graph.svg | 52 + ...hlog_1_1fmt_1_1bg__256__inherit__graph.map | 5 + ...hlog_1_1fmt_1_1bg__256__inherit__graph.md5 | 1 + ...hlog_1_1fmt_1_1bg__256__inherit__graph.svg | 52 + ...ructclutchlog_1_1fmt_1_1color-members.html | 112 + docs/structclutchlog_1_1fmt_1_1color.html | 216 ++ ...utchlog_1_1fmt_1_1color__16_m-members.html | 117 ++ ...structclutchlog_1_1fmt_1_1color__16_m.html | 357 ++++ ...log_1_1fmt_1_1color__16_m__coll__graph.map | 4 + ...log_1_1fmt_1_1color__16_m__coll__graph.md5 | 1 + ...log_1_1fmt_1_1color__16_m__coll__graph.svg | 37 + ..._1_1fmt_1_1color__16_m__inherit__graph.map | 6 + ..._1_1fmt_1_1color__16_m__inherit__graph.md5 | 1 + ..._1_1fmt_1_1color__16_m__inherit__graph.svg | 67 + ...lutchlog_1_1fmt_1_1color__256-members.html | 114 ++ .../structclutchlog_1_1fmt_1_1color__256.html | 284 +++ ...hlog_1_1fmt_1_1color__256__coll__graph.map | 4 + ...hlog_1_1fmt_1_1color__256__coll__graph.md5 | 1 + ...hlog_1_1fmt_1_1color__256__coll__graph.svg | 37 + ...g_1_1fmt_1_1color__256__inherit__graph.map | 6 + ...g_1_1fmt_1_1color__256__inherit__graph.md5 | 1 + ...g_1_1fmt_1_1color__256__inherit__graph.svg | 67 + ...tchlog_1_1fmt_1_1color__inherit__graph.map | 9 + ...tchlog_1_1fmt_1_1color__inherit__graph.md5 | 1 + ...tchlog_1_1fmt_1_1color__inherit__graph.svg | 112 + ...tclutchlog_1_1fmt_1_1fg__16_m-members.html | 121 ++ docs/structclutchlog_1_1fmt_1_1fg__16_m.html | 322 +++ ...tchlog_1_1fmt_1_1fg__16_m__coll__graph.map | 5 + ...tchlog_1_1fmt_1_1fg__16_m__coll__graph.md5 | 1 + ...tchlog_1_1fmt_1_1fg__16_m__coll__graph.svg | 52 + ...log_1_1fmt_1_1fg__16_m__inherit__graph.map | 5 + ...log_1_1fmt_1_1fg__16_m__inherit__graph.md5 | 1 + ...log_1_1fmt_1_1fg__16_m__inherit__graph.svg | 52 + ...ctclutchlog_1_1fmt_1_1fg__256-members.html | 117 ++ docs/structclutchlog_1_1fmt_1_1fg__256.html | 254 +++ ...utchlog_1_1fmt_1_1fg__256__coll__graph.map | 5 + ...utchlog_1_1fmt_1_1fg__256__coll__graph.md5 | 1 + ...utchlog_1_1fmt_1_1fg__256__coll__graph.svg | 52 + ...hlog_1_1fmt_1_1fg__256__inherit__graph.map | 5 + ...hlog_1_1fmt_1_1fg__256__inherit__graph.md5 | 1 + ...hlog_1_1fmt_1_1fg__256__inherit__graph.svg | 52 + docs/structclutchlog_1_1scope__t-members.html | 2 +- docs/structclutchlog_1_1scope__t.html | 4 +- docs/t-assert_8cpp_source.html | 2 +- docs/t-color16_m_8cpp_source.html | 154 ++ docs/t-color256_8cpp_source.html | 153 ++ docs/t-color_8cpp_source.html | 14 +- docs/t-demo_8cpp_source.html | 4 +- docs/t-dump_8cpp_source.html | 2 +- docs/t-fmt-constructors_8cpp_source.html | 152 ++ docs/t-log_8cpp_source.html | 2 +- docs/t-one-line-if_8cpp_source.html | 2 +- 202 files changed, 8391 insertions(+), 1264 deletions(-) create mode 100644 docs/classclutchlog_1_1fmt__coll__graph.map create mode 100644 docs/classclutchlog_1_1fmt__coll__graph.md5 create mode 100644 docs/classclutchlog_1_1fmt__coll__graph.svg create mode 100644 docs/classclutchlog_1_1fmt__coll__graph_org.svg create mode 100644 docs/clutchlog_8h__dep__incl_org.svg create mode 100644 docs/group__colors16.html create mode 100644 docs/group__colors16.js create mode 100644 docs/group__colors256__16_m.html create mode 100644 docs/group__colors256__16_m.js create mode 100644 docs/hierarchy.html create mode 100644 docs/hierarchy.js create mode 100644 docs/inherit_graph_0.map create mode 100644 docs/inherit_graph_0.md5 create mode 100644 docs/inherit_graph_0.svg create mode 100644 docs/inherit_graph_1.map create mode 100644 docs/inherit_graph_1.md5 create mode 100644 docs/inherit_graph_1.svg create mode 100644 docs/inherit_graph_2.map create mode 100644 docs/inherit_graph_2.md5 create mode 100644 docs/inherit_graph_2.svg create mode 100644 docs/inherit_graph_3.map create mode 100644 docs/inherit_graph_3.md5 create mode 100644 docs/inherit_graph_3.svg create mode 100644 docs/inherits.html create mode 100644 docs/navtreeindex1.js create mode 100644 docs/search/all_10.html create mode 100644 docs/search/all_10.js create mode 100644 docs/search/all_e.html create mode 100644 docs/search/all_e.js create mode 100644 docs/search/all_f.html create mode 100644 docs/search/all_f.js create mode 100644 docs/search/classes_3.html create mode 100644 docs/search/classes_3.js create mode 100644 docs/search/enums_4.html create mode 100644 docs/search/enums_4.js create mode 100644 docs/search/enums_5.html create mode 100644 docs/search/enums_5.js create mode 100644 docs/search/enumvalues_0.html create mode 100644 docs/search/enumvalues_0.js create mode 100644 docs/search/functions_9.html create mode 100644 docs/search/functions_9.js create mode 100644 docs/search/functions_a.html create mode 100644 docs/search/functions_a.js create mode 100644 docs/search/variables_7.html create mode 100644 docs/search/variables_7.js create mode 100644 docs/search/variables_8.html create mode 100644 docs/search/variables_8.js create mode 100644 docs/structclutchlog_1_1fmt_1_1bg__16_m-members.html create mode 100644 docs/structclutchlog_1_1fmt_1_1bg__16_m.html create mode 100644 docs/structclutchlog_1_1fmt_1_1bg__16_m__coll__graph.map create mode 100644 docs/structclutchlog_1_1fmt_1_1bg__16_m__coll__graph.md5 create mode 100644 docs/structclutchlog_1_1fmt_1_1bg__16_m__coll__graph.svg create mode 100644 docs/structclutchlog_1_1fmt_1_1bg__16_m__inherit__graph.map create mode 100644 docs/structclutchlog_1_1fmt_1_1bg__16_m__inherit__graph.md5 create mode 100644 docs/structclutchlog_1_1fmt_1_1bg__16_m__inherit__graph.svg create mode 100644 docs/structclutchlog_1_1fmt_1_1bg__256-members.html create mode 100644 docs/structclutchlog_1_1fmt_1_1bg__256.html create mode 100644 docs/structclutchlog_1_1fmt_1_1bg__256__coll__graph.map create mode 100644 docs/structclutchlog_1_1fmt_1_1bg__256__coll__graph.md5 create mode 100644 docs/structclutchlog_1_1fmt_1_1bg__256__coll__graph.svg create mode 100644 docs/structclutchlog_1_1fmt_1_1bg__256__inherit__graph.map create mode 100644 docs/structclutchlog_1_1fmt_1_1bg__256__inherit__graph.md5 create mode 100644 docs/structclutchlog_1_1fmt_1_1bg__256__inherit__graph.svg create mode 100644 docs/structclutchlog_1_1fmt_1_1color-members.html create mode 100644 docs/structclutchlog_1_1fmt_1_1color.html create mode 100644 docs/structclutchlog_1_1fmt_1_1color__16_m-members.html create mode 100644 docs/structclutchlog_1_1fmt_1_1color__16_m.html create mode 100644 docs/structclutchlog_1_1fmt_1_1color__16_m__coll__graph.map create mode 100644 docs/structclutchlog_1_1fmt_1_1color__16_m__coll__graph.md5 create mode 100644 docs/structclutchlog_1_1fmt_1_1color__16_m__coll__graph.svg create mode 100644 docs/structclutchlog_1_1fmt_1_1color__16_m__inherit__graph.map create mode 100644 docs/structclutchlog_1_1fmt_1_1color__16_m__inherit__graph.md5 create mode 100644 docs/structclutchlog_1_1fmt_1_1color__16_m__inherit__graph.svg create mode 100644 docs/structclutchlog_1_1fmt_1_1color__256-members.html create mode 100644 docs/structclutchlog_1_1fmt_1_1color__256.html create mode 100644 docs/structclutchlog_1_1fmt_1_1color__256__coll__graph.map create mode 100644 docs/structclutchlog_1_1fmt_1_1color__256__coll__graph.md5 create mode 100644 docs/structclutchlog_1_1fmt_1_1color__256__coll__graph.svg create mode 100644 docs/structclutchlog_1_1fmt_1_1color__256__inherit__graph.map create mode 100644 docs/structclutchlog_1_1fmt_1_1color__256__inherit__graph.md5 create mode 100644 docs/structclutchlog_1_1fmt_1_1color__256__inherit__graph.svg create mode 100644 docs/structclutchlog_1_1fmt_1_1color__inherit__graph.map create mode 100644 docs/structclutchlog_1_1fmt_1_1color__inherit__graph.md5 create mode 100644 docs/structclutchlog_1_1fmt_1_1color__inherit__graph.svg create mode 100644 docs/structclutchlog_1_1fmt_1_1fg__16_m-members.html create mode 100644 docs/structclutchlog_1_1fmt_1_1fg__16_m.html create mode 100644 docs/structclutchlog_1_1fmt_1_1fg__16_m__coll__graph.map create mode 100644 docs/structclutchlog_1_1fmt_1_1fg__16_m__coll__graph.md5 create mode 100644 docs/structclutchlog_1_1fmt_1_1fg__16_m__coll__graph.svg create mode 100644 docs/structclutchlog_1_1fmt_1_1fg__16_m__inherit__graph.map create mode 100644 docs/structclutchlog_1_1fmt_1_1fg__16_m__inherit__graph.md5 create mode 100644 docs/structclutchlog_1_1fmt_1_1fg__16_m__inherit__graph.svg create mode 100644 docs/structclutchlog_1_1fmt_1_1fg__256-members.html create mode 100644 docs/structclutchlog_1_1fmt_1_1fg__256.html create mode 100644 docs/structclutchlog_1_1fmt_1_1fg__256__coll__graph.map create mode 100644 docs/structclutchlog_1_1fmt_1_1fg__256__coll__graph.md5 create mode 100644 docs/structclutchlog_1_1fmt_1_1fg__256__coll__graph.svg create mode 100644 docs/structclutchlog_1_1fmt_1_1fg__256__inherit__graph.map create mode 100644 docs/structclutchlog_1_1fmt_1_1fg__256__inherit__graph.md5 create mode 100644 docs/structclutchlog_1_1fmt_1_1fg__256__inherit__graph.svg create mode 100644 docs/t-color16_m_8cpp_source.html create mode 100644 docs/t-color256_8cpp_source.html create mode 100644 docs/t-fmt-constructors_8cpp_source.html diff --git a/CMakeLists.txt b/CMakeLists.txt index 90fce70..1415c98 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.10 FATAL_ERROR) project("clutchlog" - VERSION 0.12 + VERSION 0.13 DESCRIPTION "A logging system which targets versatile debugging") enable_language(CXX) # C++ diff --git a/docs/annotated.html b/docs/annotated.html index 6ccc27a..02b8c9e 100644 --- a/docs/annotated.html +++ b/docs/annotated.html @@ -28,7 +28,7 @@ Logo
clutchlog -  0.12 +  0.13
@@ -89,10 +89,17 @@ $(document).ready(function(){initNavTree('annotated.html',''); initResizable();
Here are the classes, structs, unions and interfaces with brief descriptions:
-
[detail level 12]
+
[detail level 123]
- - + + + + + + + + +
 CclutchlogThe single class which holds everything
 CfmtColor and style formatter for ANSI terminal escape sequences
 Cscope_tStructure holding a location matching
 CfmtColor and style formatter for ANSI terminal escape sequences
 Cbg_16MBackground in 256-colors mode
 Cbg_256Background in 256-colors mode
 CcolorInterface class for colors representation
 Ccolor_16MAbstract base class for 16M colors objects (24-bits ANSI)
 Ccolor_256Abstract base class for 256 colors objects (8-bits ANSI)
 Cfg_16MForeground in 256-colors mode
 Cfg_256Foreground in 256-colors mode
 Cscope_tStructure holding a location matching
diff --git a/docs/classclutchlog-members.html b/docs/classclutchlog-members.html index e2ac279..f400b16 100644 --- a/docs/classclutchlog-members.html +++ b/docs/classclutchlog-members.html @@ -28,7 +28,7 @@ Logo
clutchlog -  0.12 +  0.13
diff --git a/docs/classclutchlog.html b/docs/classclutchlog.html index 4ea2c00..c1a310e 100644 --- a/docs/classclutchlog.html +++ b/docs/classclutchlog.html @@ -28,7 +28,7 @@ Logo
clutchlog -  0.12 +  0.13
@@ -381,11 +381,11 @@ void operator= (Return the log level tag corresponding to the given pre-configured name.

Note
This is case sensitive, see the pre-configured _level_word.
-

Definition at line 618 of file clutchlog.h.

+

Definition at line 1002 of file clutchlog.h.

-

References _word_level.

+

References _word_level.

-

Referenced by threshold().

+

Referenced by threshold().

@@ -428,11 +428,11 @@ template<class ... FMT>

Set the style (color and typo) of the given log level.

This version accept style arguments as if they were passed to clutchlog::fmt.

-

Definition at line 652 of file clutchlog.h.

+

Definition at line 1036 of file clutchlog.h.

-

References style().

+

References style().

-

Referenced by style().

+

Referenced by style().

@@ -480,9 +480,9 @@ template<class ... FMT>
log.replace("{greet} {world}", "\\{greet\\}", "hello");
// returns "hello {world}"
-

Definition at line 741 of file clutchlog.h.

+

Definition at line 1125 of file clutchlog.h.

-

Referenced by dump(), format(), and replace().

+

Referenced by dump(), format(), and replace().

@@ -491,7 +491,7 @@ template<class ... FMT> -
void log(const level &stage, const std::string &what, const std::string &file, const std::string &func, size_t line) const
Print a log message IF the location matches the given one.
Definition: clutchlog.h:903
+
void log(const level &stage, const std::string &what, const std::string &file, const std::string &func, size_t line) const
Print a log message IF the location matches the given one.
Definition: clutchlog.h:1287
static clutchlog & logger()
Get the logger instance.
Definition: clutchlog.h:296
diff --git a/docs/classclutchlog_1_1fmt.html b/docs/classclutchlog_1_1fmt.html index fe445ce..11c15d1 100644 --- a/docs/classclutchlog_1_1fmt.html +++ b/docs/classclutchlog_1_1fmt.html @@ -28,7 +28,7 @@ Logo
clutchlog -  0.12 +  0.13
@@ -88,6 +88,8 @@ $(document).ready(function(){initNavTree('classclutchlog_1_1fmt.html',''); initR Public Member Functions | Public Attributes | Protected Member Functions | +Protected Attributes | +Classes | Public Types | Friends | List of all members @@ -100,17 +102,64 @@ $(document).ready(function(){initNavTree('classclutchlog_1_1fmt.html',''); initR More...

#include <clutchlog.h>

+
+ + Collaboration diagram for clutchlog::fmt:
+
+
+

Detailed Description

Color and style formatter for ANSI terminal escape sequences.

-
Note
All styles may not be supported by a given terminal/operating system.
+

The formatter supports typographic "styles" and colors. Typographic styles are available as named tag in fmt::typo.

+

The formatter supports the three ANSI modes, which are automatically selected depending the argument types:

+

For 16-colors mode, colors are named tag in:

+
Note
The order in which you pass foreground, background and style does not matter in 16-colors mode.
+

The following colors are available for both foregrounds (see fmt::fg) and backgrounds (see fmt::bg):

+
Note
Some terminal are configured to display colored text set in bold using the bright color counterpart.
+

For 256-colors mode, colors are expected to be passed as integers in [-1,255] or the fg::none and bg::none tags.

+
Note
In 256-colors mode, if you want to only encode the background color, you cannot just omit the foreground color, you have to bass a fg::none tag as first argument.
+

For 16M-colors mode, colors can be encoded as:

+
Note
In 16M-colors mode, if you want to only encode the background color, you cannot just omit the foreground color, you have to bass a fg::none tag as first argument.
+
+All styles may not be supported by a given terminal/operating system.
-

Definition at line 314 of file clutchlog.h.

+

Definition at line 366 of file clutchlog.h.

- + @@ -119,40 +168,79 @@ Public Member Functions std::string  - + +  +  +  +  +  +  + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

 fmt ()
  Empty constructor, only useful for a no-op formatter.
 Empty constructor, only useful for a no-op formatter.
 
std::string operator() (const std::string &msg) const
 Format the given string with the currently encoded format. More...
str () const
 Return the formatting code as a string.
 
All combination of constructors with different parameters orders.
All combination of 16-colors mode constructors with different parameters orders.
fmt (fg f, bg b=bg::none, typo s=typo::none)
fmt (fg f, bg b=bg::none, typo s=typo::none)
 
fmt (fg f, typo s, bg b=bg::none)
fmt (fg f, typo s, bg b=bg::none)
 
fmt (bg b, fg f=fg::none, typo s=typo::none)
fmt (bg b, fg f=fg::none, typo s=typo::none)
 
fmt (bg b, typo s, fg f=fg::none)
fmt (bg b, typo s, fg f=fg::none)
 
fmt (typo s, fg f=fg::none, bg b=bg::none)
fmt (typo s, fg f=fg::none, bg b=bg::none)
 
fmt (typo s, bg b, fg f=fg::none)
fmt (typo s, bg b, fg f=fg::none)
 
All combination of 256-colors mode constructors with different parameters orders.
fmt (fg_256 f, bg_256 b, typo s=typo::none)
 
fmt (fg_256 f, typo s=typo::none)
 
fmt (fg, bg_256 b, typo s=typo::none)
 
All combination of 16M-colors mode constructors with different parameters orders.
fmt (const short fr, const short fg, const short fb, const short gr, const short gg, const short gb, typo s=typo::none)
 
fmt (fg, const short gr, const short gg, const short gb, typo s=typo::none)
 
fmt (const short fr, const short fg, const short fb, bg, typo s=typo::none)
 
fmt (const short fr, const short fg, const short fb, typo s=typo::none)
 
fmt (const std::string &f, const std::string &b, typo s=typo::none)
 
fmt (fg, const std::string &b, typo s=typo::none)
 
fmt (const std::string &f, bg, typo s=typo::none)
 
fmt (const std::string &f, typo s=typo::none)
 
- - - - - - + + + + + + + + +

Public Attributes

-enum clutchlog::fmt::fg fore
 Foreground color.
 
-enum clutchlog::fmt::bg back
 Background color.
 
+enum clutchlog::fmt::ansi mode
 Current ANSI color mode.
 
enum clutchlog::fmt::typo style
 Typographic style.
 
+enum clutchlog::fmt::fg fore
 Foreground color.
 
+enum clutchlog::fmt::bg back
 Background color.
 
@@ -161,9 +249,69 @@ std::ostream & 

Protected Member Functions

 Print the currently encoded format escape code on the given output stream.
 
+ + + + + + + + + + + + + +

+Protected Attributes

+clutchlog::fmt::fg_256 fore_256
 Current foreground in 256-colors mode.
 
+clutchlog::fmt::bg_256 back_256
 Current background in 256-colors mode.
 
+clutchlog::fmt::fg_16M fore_16M
 Current foreground in 16M-colors mode.
 
+clutchlog::fmt::bg_16M back_16M
 Current background in 16M-colors mode.
 
+ + + + + + + + + + + + + + + + + + + + + + +

+Classes

struct  bg_16M
 background in 256-colors mode. More...
 
struct  bg_256
 Background in 256-colors mode. More...
 
struct  color
 Interface class for colors representation. More...
 
struct  color_16M
 Abstract base class for 16M colors objects (24-bits ANSI). More...
 
struct  color_256
 Abstract base class for 256 colors objects (8-bits ANSI). More...
 
struct  fg_16M
 Foreground in 256-colors mode. More...
 
struct  fg_256
 Foreground in 256-colors mode. More...
 
- + + + + + +cyan = 36, white = 37,
-  none +  bright_black = 90, +bright_red = 91, +bright_green = 92, +bright_yellow = 93, +
+  bright_blue = 94, +bright_magenta = 95, +bright_cyan = 96, +bright_white = 97, +
+  none = -1
} - - - + +cyan = 46, white = 47,
-  none +  bright_black = 100, +bright_red = 101, +bright_green = 102, +bright_yellow = 103, +
+  bright_blue = 104, +bright_magenta = 105, +bright_cyan = 106, +bright_white = 107, +
+  none = -1
} - - - - - + +

Public Types

enum  fg {
+
enum  ansi { ansi::colors_16 = -1, +ansi::colors_256 = 5, +ansi::colors_16M = 2 + }
 ANSI code configuring the available number of colors. More...
 
enum  typo {
+  reset = 0, +bold = 1, +underline = 4, +inverse = 7, +
+  none = -1 +
+ }
 Typographic style codes.
 
enum  fg {
  black = 30, red = 31, green = 32, @@ -174,12 +322,22 @@ Public Types
 Foreground color codes.
 
enum  bg {
+
 Foreground color codes.
 
enum  bg {
  black = 40, red = 41, green = 42, @@ -190,25 +348,32 @@ Public Types
 Background color codes.
 
enum  typo {
-  reset = 0, -bold = 1, -underline = 4, -inverse = 7, -
-  none -
- }
 Typographic style codes.
 
 Background color codes.
 
+ + + + + + @@ -243,9 +408,9 @@ Friends
std::cout << error("ERROR") << std::endl;
Note
A formatter called this way WILL output a reset escape code at the end.
-

Definition at line 411 of file clutchlog.h.

+

Definition at line 795 of file clutchlog.h.

-

References print_on().

+

References print_on().

@@ -290,7 +455,42 @@ Friends
std::cout << error << "ERROR" << end << std::endl;
Note
An formatter called this way will NOT output a reset escape code.
-

Definition at line 396 of file clutchlog.h.

+

Definition at line 780 of file clutchlog.h.

+ + + +

Member Enumeration Documentation

+ +

◆ ansi

+ +
+
+

Friends

+std::ostream & operator<< (std::ostream &os, const std::tuple< fg, bg, typo > &fbs)
 Output stream operator for a 3-tuple of 16-colors mode tags.
 
+std::ostream & operator<< (std::ostream &os, const typo &s)
 Output stream operator for a typo tag alone, in 16-colors mode.
 
std::ostream & operator<< (std::ostream &os, const fmt &fmt)
 Output stream overload. More...
 
+ + + + +
+ + + + +
enum clutchlog::fmt::ansi
+
+strong
+
+ +

ANSI code configuring the available number of colors.

+ + + + +
Enumerator
colors_16 

16 colors mode.

+
colors_256 

256 colors mode.

+
colors_16M 

16 millions ("true") colors mode.

+
+ +

Definition at line 369 of file clutchlog.h.

@@ -299,7 +499,7 @@ Friends -
Color and style formatter for ANSI terminal escape sequences.
Definition: clutchlog.h:314
+
Color and style formatter for ANSI terminal escape sequences.
Definition: clutchlog.h:366
-
c | f | s
+
b | c | f | s
- - + + + + + + + + - - - + + + + + + + +
  c  
-
  f  
+
  b  
clutchlog::fmt::color   clutchlog::fmt::fg_256   
clutchlog::fmt::color_16M   clutchlog::fmt   
clutchlog::fmt::bg_16M   clutchlog::fmt::color_256   
  s  
clutchlog   clutchlog::fmt   
clutchlog::fmt::bg_256   
  f  
+
  c  
+
clutchlog::scope_t   
clutchlog::fmt::fg_16M   
clutchlog   
-
c | f | s
+
b | c | f | s
diff --git a/docs/clutchlog_8h.html b/docs/clutchlog_8h.html index cef3212..4212c44 100644 --- a/docs/clutchlog_8h.html +++ b/docs/clutchlog_8h.html @@ -28,7 +28,7 @@ Logo
clutchlog -  0.12 +  0.13
@@ -114,7 +114,7 @@ $(document).ready(function(){initNavTree('clutchlog_8h.html',''); initResizable(

Go to the source code of this file.

@@ -127,6 +127,27 @@ Classes class  clutchlog::fmt  Color and style formatter for ANSI terminal escape sequences. More...
  +struct  clutchlog::fmt::color + Interface class for colors representation. More...
+  +struct  clutchlog::fmt::color_256 + Abstract base class for 256 colors objects (8-bits ANSI). More...
+  +struct  clutchlog::fmt::fg_256 + Foreground in 256-colors mode. More...
+  +struct  clutchlog::fmt::bg_256 + Background in 256-colors mode. More...
+  +struct  clutchlog::fmt::color_16M + Abstract base class for 16M colors objects (24-bits ANSI). More...
+  +struct  clutchlog::fmt::fg_16M + Foreground in 256-colors mode. More...
+  +struct  clutchlog::fmt::bg_16M + background in 256-colors mode. More...
+  struct  clutchlog::scope_t  Structure holding a location matching. More...
  diff --git a/docs/clutchlog_8h__dep__incl.map b/docs/clutchlog_8h__dep__incl.map index f881e9b..b05ba40 100644 --- a/docs/clutchlog_8h__dep__incl.map +++ b/docs/clutchlog_8h__dep__incl.map @@ -1,9 +1,12 @@ - + - - - - + + + + + + + diff --git a/docs/clutchlog_8h__dep__incl.md5 b/docs/clutchlog_8h__dep__incl.md5 index e459537..dc19e87 100644 --- a/docs/clutchlog_8h__dep__incl.md5 +++ b/docs/clutchlog_8h__dep__incl.md5 @@ -1 +1 @@ -14cb45843b5774232b14fc381bb80084 \ No newline at end of file +78a9f951c605f1508d314cfbf6ab9ace \ No newline at end of file diff --git a/docs/clutchlog_8h__dep__incl.svg b/docs/clutchlog_8h__dep__incl.svg index 4916a62..1b05166 100644 --- a/docs/clutchlog_8h__dep__incl.svg +++ b/docs/clutchlog_8h__dep__incl.svg @@ -4,17 +4,63 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + clutchlog.h - + Node1 - -clutchlog.h + +clutchlog.h @@ -30,8 +76,8 @@ Node1->Node2 - - + + @@ -45,68 +91,155 @@ Node1->Node3 - - + + Node4 - - -t-demo.cpp + + +t-color16M.cpp Node1->Node4 - - + + Node5 - - -t-dump.cpp + + +t-color256.cpp Node1->Node5 - - + + Node6 - - -t-log.cpp + + +t-demo.cpp Node1->Node6 - - + + Node7 - - -t-one-line-if.cpp + + +t-dump.cpp Node1->Node7 - - + + + + + +Node8 + + +t-fmt-constructors.cpp + + + + + +Node1->Node8 + + + + + +Node9 + + +t-log.cpp + + + + + +Node1->Node9 + + + + + +Node10 + + +t-one-line-if.cpp + + + + + +Node1->Node10 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/clutchlog_8h__dep__incl_org.svg b/docs/clutchlog_8h__dep__incl_org.svg new file mode 100644 index 0000000..38a50e3 --- /dev/null +++ b/docs/clutchlog_8h__dep__incl_org.svg @@ -0,0 +1,157 @@ + + + + + + +clutchlog.h + + + +Node1 + + +clutchlog.h + + + + + +Node2 + + +t-assert.cpp + + + + + +Node1->Node2 + + + + + +Node3 + + +t-color.cpp + + + + + +Node1->Node3 + + + + + +Node4 + + +t-color16M.cpp + + + + + +Node1->Node4 + + + + + +Node5 + + +t-color256.cpp + + + + + +Node1->Node5 + + + + + +Node6 + + +t-demo.cpp + + + + + +Node1->Node6 + + + + + +Node7 + + +t-dump.cpp + + + + + +Node1->Node7 + + + + + +Node8 + + +t-fmt-constructors.cpp + + + + + +Node1->Node8 + + + + + +Node9 + + +t-log.cpp + + + + + +Node1->Node9 + + + + + +Node10 + + +t-one-line-if.cpp + + + + + +Node1->Node10 + + + + + diff --git a/docs/clutchlog_8h_source.html b/docs/clutchlog_8h_source.html index a58c8ef..5de3275 100644 --- a/docs/clutchlog_8h_source.html +++ b/docs/clutchlog_8h_source.html @@ -28,7 +28,7 @@ Logo
clutchlog -  0.12 +  0.13
@@ -334,781 +334,1116 @@ $(document).ready(function(){initNavTree('clutchlog_8h_source.html',''); initRes
301 
303  enum level {critical=0, error=1, warning=2, progress=3, note=4, info=5, debug=6, xdebug=7};
304 
-
314  class fmt {
-
315  public:
-
317  enum class fg {
-
318  black = 30,
-
319  red = 31,
-
320  green = 32,
-
321  yellow = 33,
-
322  blue = 34,
-
323  magenta = 35,
-
324  cyan = 36,
-
325  white = 37,
-
326  none
-
327  } fore;
-
328 
-
330  enum class bg {
-
331  black = 40,
-
332  red = 41,
-
333  green = 42,
-
334  yellow = 43,
-
335  blue = 44,
-
336  magenta = 45,
-
337  cyan = 46,
-
338  white = 47,
-
339  none
-
340  } back;
-
341 
-
343  enum class typo {
-
344  reset = 0,
-
345  bold = 1,
-
346  underline = 4,
-
347  inverse = 7,
-
348  none
-
349  } style;
-
350 
-
352  fmt() : fore(fg::none), back(bg::none), style(typo::none) {}
-
353 
-
356  fmt( fg f, bg b = bg::none, typo s = typo::none) : fore(f), back(b), style(s) {}
-
357  fmt( fg f, typo s , bg b = bg::none) : fore(f), back(b), style(s) {}
-
358  fmt( bg b, fg f = fg::none, typo s = typo::none) : fore(f), back(b), style(s) {}
-
359  fmt( bg b, typo s , fg f = fg::none) : fore(f), back(b), style(s) {}
-
360  fmt(typo s, fg f = fg::none, bg b = bg::none) : fore(f), back(b), style(s) {}
-
361  fmt(typo s, bg b , fg f = fg::none) : fore(f), back(b), style(s) {}
-
364  protected:
-
366  std::ostream& print_on( std::ostream& os) const
-
367  {
-
368  std::vector<int> codes; codes.reserve(3);
-
369  if(this->fore != fg::none) { codes.push_back(static_cast<int>(this->fore ));}
-
370  if(this->back != bg::none) { codes.push_back(static_cast<int>(this->back ));}
-
371  if(this->style != typo::none) { codes.push_back(static_cast<int>(this->style));}
-
372  if(codes.size() == 0) {return os;}
-
373 
-
374  os << "\033[";
-
375  assert(codes.size() > 0);
-
376  os << codes[0];
-
377  for(size_t i=1; i < codes.size(); ++i) {
-
378  os << ";" << codes[i];
-
379  }
-
380  os << "m";
-
381  return os;
-
382  }
-
383 
-
384  public:
-
396  friend std::ostream& operator<<(std::ostream& os, const fmt& fmt)
-
397  {
-
398  return fmt.print_on(os);
-
399  }
-
400 
-
411  std::string operator()( const std::string& msg ) const
-
412  {
-
413  std::ostringstream os;
-
414  this->print_on(os);
-
415  fmt reset(fmt::typo::reset);
-
416  os << msg;
-
417  reset.print_on(os);
-
418  return os.str();
-
419  }
-
420 
-
423  std::string str() const
-
424  {
-
425  std::ostringstream os;
-
426  this->print_on(os);
-
427  return os.str();
-
428  }
-
429  }; // fmt class
+
366  class fmt {
+
367  public:
+
369  enum class ansi {
+
371  colors_16 = -1, // Not supposed to be casted.
+
373  colors_256 = 5, // Casted as short in color::operator<<.
+
375  colors_16M = 2 // Casted as short in color::operator<<
+
376  } mode;
+
377 
+
379  enum class typo {
+
380  reset = 0,
+
381  bold = 1,
+
382  underline = 4,
+
383  inverse = 7,
+
384  none = -1
+
385  } style;
+
386 
+
389  enum class fg {
+
391  black = 30,
+
392  red = 31,
+
393  green = 32,
+
394  yellow = 33,
+
395  blue = 34,
+
396  magenta = 35,
+
397  cyan = 36,
+
398  white = 37,
+
399  bright_black = 90,
+
400  bright_red = 91,
+
401  bright_green = 92,
+
402  bright_yellow = 93,
+
403  bright_blue = 94,
+
404  bright_magenta = 95,
+
405  bright_cyan = 96,
+
406  bright_white = 97,
+
407  none = -1
+
408  } fore;
+
409 
+
411  enum class bg {
+
412  black = 40,
+
413  red = 41,
+
414  green = 42,
+
415  yellow = 43,
+
416  blue = 44,
+
417  magenta = 45,
+
418  cyan = 46,
+
419  white = 47,
+
420  bright_black = 100,
+
421  bright_red = 101,
+
422  bright_green = 102,
+
423  bright_yellow = 103,
+
424  bright_blue = 104,
+
425  bright_magenta = 105,
+
426  bright_cyan = 106,
+
427  bright_white = 107,
+
428  none = -1
+
429  } back;
430 
-
436  public:
-
437  clutchlog(clutchlog const&) = delete;
-
438  void operator=(clutchlog const&) = delete;
-
439 
-
440  private:
-
441  clutchlog() :
-
442  // system, main, log
-
443  _strip_calls(clutchlog::default_strip_calls),
-
444  _level_word({
-
445  {level::critical,"Critical"},
-
446  {level::error ,"Error"},
-
447  {level::warning ,"Warning"},
-
448  {level::progress,"Progress"},
-
449  {level::note ,"Note"},
-
450  {level::info ,"Info"},
-
451  {level::debug ,"Debug"},
-
452  {level::xdebug ,"XDebug"}
-
453  }),
-
454  _level_fmt({
-
455  {level::critical,fmt(fmt::fg::red, fmt::typo::underline)},
-
456  {level::error ,fmt(fmt::fg::red, fmt::typo::bold)},
-
457  {level::warning ,fmt(fmt::fg::magenta, fmt::typo::bold)},
-
458  {level::progress,fmt()},
-
459  {level::note ,fmt()},
-
460  {level::info ,fmt()},
-
461  {level::debug ,fmt()},
-
462  {level::xdebug ,fmt()}
-
463  }),
-
464  _format_log(clutchlog::default_format),
-
465  _format_dump(clutchlog::dump_default_format),
-
466  #if CLUTCHLOG_HAVE_UNIX_SYSIOCTL
-
467  _hfill_char(clutchlog::default_hfill_char),
-
468  _hfill_fmt(fmt::fg::none),
-
469  _hfill_max(clutchlog::default_hfill_max),
-
470  _hfill_min(clutchlog::default_hfill_min),
-
471  #endif
-
472  _out(&std::clog),
-
473  #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
-
474  _depth(std::numeric_limits<size_t>::max() - _strip_calls),
-
475  _depth_mark(clutchlog::default_depth_mark),
-
476  #endif
-
477  _stage(level::error),
-
478  _in_file(".*"),
-
479  _in_func(".*"),
-
480  _in_line(".*")
-
481  {
-
482  // Reverse the level->word map into a word->level map.
-
483  for(auto& lw : _level_word) {
-
484  _word_level[lw.second] = lw.first;
-
485  }
-
486 #if CLUTCHLOG_HAVE_UNIX_SYSIOCTL
-
487  struct winsize w;
-
488  ioctl(STDERR_FILENO, TIOCGWINSZ, &w);
-
489  _nb_columns = std::max(std::min((size_t)w.ws_col, default_hfill_max), default_hfill_min);
-
490 #endif
-
491  }
-
492 
-
493  protected:
-
495  size_t _strip_calls;
-
497  const std::map<level,std::string> _level_word;
-
499  std::map<std::string,level> _word_level;
-
501  std::map<level,fmt> _level_fmt;
-
503  std::string _format_log;
-
505  std::string _format_dump;
-
506  #if CLUTCHLOG_HAVE_UNIX_SYSIOCTL
+
431  protected:
+
433  friend std::ostream& operator<<(std::ostream& os, const std::tuple<fg,bg,typo>& fbs)
+
434  {
+
435  auto [f,b,s] = fbs;
+
436  std::vector<short> codes; codes.reserve(3);
+
437  if(f != fg::none) { codes.push_back(static_cast<short>(f));}
+
438  if(b != bg::none) { codes.push_back(static_cast<short>(b));}
+
439  if(s != typo::none) { codes.push_back(static_cast<short>(s));}
+
440  if(codes.size() == 0) {
+
441  return os;
+
442 
+
443  } else {
+
444  os << "\033[";
+
445  os << codes[0];
+
446  for(size_t i=1; i < codes.size(); ++i) {
+
447  os << ";" << codes[i];
+
448  }
+
449  os << "m";
+
450  }
+
451  return os;
+
452  }
+
453 
+
455  friend std::ostream& operator<<(std::ostream& os, const typo& s)
+
456  {
+
457  if(s != typo::none) {
+
458  os << "\033[" << static_cast<short>(s) << "m";
+
459  }
+
460  return os;
+
461  }
+
462 
+
465  protected:
+
470  struct color {
+
471  ansi mode; // Not const to allow for the implicit copy assignemnt operator.
+
472 
+
474  enum class ground { // idem.
+
475  fore = 38,
+
476  back = 48
+
477  } type;
+
478 
+
484  color(ansi a, ground g) : mode(a), type(g) {}
+
485 
+
487  virtual bool is_set() const = 0;
+
488 
+
490  virtual std::ostream& print_on( std::ostream& os) const = 0;
+
491 
+
493  friend std::ostream& operator<<(std::ostream& os, const color& c)
+
494  {
+
495  if(c.is_set()) {
+
496  os << "\033[" << static_cast<short>(c.type) << ";" << static_cast<short>(c.mode) << ";";
+
497  c.print_on(os);
+
498  os << "m";
+
499  }
+
500  return os;
+
501  }
+
502  };
+
503 
+
504  // There is no color_16 because it would be the same as color_256, only with different indices,
+
505  // hence making it more complicated for the user to select the right constructor.
+
506  // Here, we just use enum for 16 colors, and indices for 256 colors.
507 
-
508  char _hfill_char;
-
510  fmt _hfill_fmt;
-
512  size_t _hfill_max;
-
514  size_t _hfill_min;
-
515  #endif
-
516 
-
517  std::ostream* _out;
-
518  #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
+
509  struct color_256 : public color {
+
513  short index;
+
514 
+
518  color_256(ground t) : color(ansi::colors_256, t), index(-1) {}
519 
-
520  size_t _depth;
-
522  std::string _depth_mark;
-
523  #endif
-
524 
-
525  level _stage;
-
527  std::regex _in_file;
-
529  std::regex _in_func;
-
531  std::regex _in_line;
-
532 
-
533 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
-
534 
-
535  static const size_t _max_buffer = 4096;
-
536 #endif
+
525  color_256(ground t, const short i) : color(ansi::colors_256, t), index(i) {assert(-1 <= i and i <= 255);}
+
526 
+
528  bool is_set() const {return index > -1;}
+
529 
+
531  std::ostream& print_on( std::ostream& os) const
+
532  {
+
533  os << index;
+
534  return os;
+
535  }
+
536  };
537 
-
538 #if CLUTCHLOG_HAVE_UNIX_SYSIOCTL
-
539 
-
540  size_t _nb_columns;
-
541 #endif
+
539  struct fg_256 : public color_256 {
+
541  fg_256() : color_256(ground::fore) {}
542 
-
544  public:
-
545 
-
549  void format(const std::string& format) {_format_log = format;}
-
552  std::string format() const {return _format_log;}
-
553 
-
555  void format_comment(const std::string& format) {_format_dump = format;}
-
557  std::string format_comment() const {return _format_dump;}
-
558 
-
560  void out(std::ostream& out) {_out = &out;}
-
562  std::ostream& out() {return *_out;}
-
563 
-
564 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
-
565  void depth(size_t d) {_depth = d;}
-
568  size_t depth() const {return _depth;}
+
546  fg_256(const short f) : color_256(ground::fore, f) {}
+
547 
+
551  fg_256(const fg&) : color_256(ground::fore, -1) {}
+
552 
+
553  } fore_256;
+
554 
+
556  struct bg_256 : public color_256 {
+
558  bg_256() : color_256(ground::back) {}
+
559 
+
563  bg_256(const short b) : color_256(ground::back, b) {}
+
564 
+
568  bg_256(const bg&) : color_256(ground::back, -1) {}
569 
-
571  void depth_mark(const std::string mark) {_depth_mark = mark;}
-
573  std::string depth_mark() const {return _depth_mark;}
-
574 
-
576  void strip_calls(const size_t n) {_strip_calls = n;}
-
578  size_t strip_calls() const {return _strip_calls;}
-
579 #endif
-
580 #if CLUTCHLOG_HAVE_UNIX_SYSIOCTL == 1
-
581  void hfill_mark(const char mark) {_hfill_char = mark;}
-
584  char hfill_mark() const {return _hfill_char;}
-
586  void hfill_style(fmt style) {_hfill_fmt = style;}
-
591  template<class ... FMT>
-
592  void hfill_style(FMT... styles) { this->hfill_style(fmt(styles...)); }
-
594  fmt hfill_style() const {return _hfill_fmt;}
-
596  void hfill_max(const size_t nmax) {_hfill_max = nmax;}
-
598  size_t hfill_max() {return _hfill_max;}
-
600  void hfill_min(const size_t nmin) {_hfill_min = nmin;}
-
602  size_t hfill_min() {return _hfill_min;}
-
603 #endif
-
604 
-
606  void threshold(level l) {_stage = l;}
-
608  void threshold(const std::string& l) {_stage = this->level_of(l);}
-
610  level threshold() const {return _stage;}
-
612  const std::map<std::string,level>& levels() const { return _word_level;}
-
613 
-
618  level level_of(const std::string name)
-
619  {
-
620  const auto ilevel = _word_level.find(name);
-
621  if( ilevel != std::end(_word_level)) {
-
622  return ilevel->second;
-
623  } else {
-
624  throw std::out_of_range("'" + name + "' is not a valid log level name");
-
625  }
-
626  }
-
627 
-
629  void file(std::string file) {_in_file = file;}
-
631  void func(std::string func) {_in_func = func;}
-
633  void line(std::string line) {_in_line = line;}
-
634 
-
636  void location(
-
637  const std::string& in_file,
-
638  const std::string& in_function=".*",
-
639  const std::string& in_line=".*"
-
640  )
-
641  {
-
642  file(in_file);
-
643  func(in_function);
-
644  line(in_line);
-
645  }
-
646 
-
651  template<class ... FMT>
-
652  void style(level stage, FMT... styles) { this->style(stage,fmt(styles...)); }
-
654  void style(level stage, fmt style) { _level_fmt.at(stage) = style; }
-
656  fmt style(level stage) const { return _level_fmt.at(stage); }
-
657 
-
660  public:
-
661 
-
665  struct scope_t {
-
668  bool matches;
-
670  level stage;
-
671 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
-
672 
-
673  size_t depth;
-
674 #endif
-
675 
-
676  bool there;
-
678  scope_t() :
-
679  matches(false),
-
680  stage(level::xdebug),
-
681 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
-
682  depth(0),
-
683 #endif
-
684  there(false)
-
685  {}
-
686  }; // scope_t
-
687 
-
688 
-
690  scope_t locate(
-
691  const level& stage,
-
692  const std::string& file,
-
693  const std::string& func,
-
694  const size_t line
-
695  ) const
-
696  {
-
697  scope_t scope; // False scope by default.
+
570  } back_256;
+
571 
+
573  struct color_16M : public color {
+
577  short red, green, blue;
+
578 
+
582  color_16M(ground t) : color(ansi::colors_16M, t), red(-1), green(-1), blue(-1) {}
+
583 
+
591  color_16M(ground t, short r, short g, short b)
+
592  : color(ansi::colors_16M, t), red(r), green(g), blue(b) {}
+
593 
+
601  color_16M(ground t, const std::string& srgb) : color(ansi::colors_16M, t)
+
602  {
+
603  assert(srgb.size() == 7);
+
604  if(srgb.size() != 7) {
+
605  red = -1;
+
606  green = -1;
+
607  blue = -1;
+
608  } else {
+
609  char i = 0;
+
610  if(srgb.at(0) == '#') {
+
611  i = 1;
+
612  }
+
613  std::istringstream(srgb.substr(0+i,2)) >> std::hex >> red;
+
614  std::istringstream(srgb.substr(2+i,2)) >> std::hex >> green;
+
615  std::istringstream(srgb.substr(4+i,2)) >> std::hex >> blue;
+
616  }
+
617  assert(-1 <= red and red <= 255);
+
618  assert(-1 <= green and green <= 255);
+
619  assert(-1 <= blue and blue <= 255);
+
620  }
+
621 
+
623  bool is_set() const {return red > -1 and green > -1 and blue > -1;}
+
624 
+
626  std::ostream& print_on( std::ostream& os) const
+
627  {
+
628  os << red << ";" << green << ";" << blue;
+
629  return os;
+
630  }
+
631  };
+
632 
+
634  struct fg_16M : public color_16M {
+
636  fg_16M() : color_16M(ground::fore) {}
+
637 
+
646  fg_16M(short r, short g, short b) : color_16M(ground::fore, r,g,b) {}
+
647 
+
654  fg_16M(const std::string& srgb) : color_16M(ground::fore, srgb) {}
+
655 
+
659  fg_16M(const fg&) : color_16M(ground::fore, -1,-1,-1) {}
+
660 
+
661  } fore_16M;
+
662 
+
664  struct bg_16M : public color_16M {
+
666  bg_16M() : color_16M(ground::back) {}
+
667 
+
676  bg_16M(short r, short g, short b) : color_16M(ground::back, r,g,b) {}
+
677 
+
684  bg_16M(const std::string& srgb) : color_16M(ground::back, srgb) {}
+
685 
+
689  bg_16M(const bg&) : color_16M(ground::back, -1,-1,-1) {}
+
690 
+
691  } back_16M;
+
692 
+
695  public:
+
697  fmt() : mode(ansi::colors_16), style(typo::none), fore(fg::none), back(bg::none) {}
698 
-
699  /***** Log level stage *****/
-
700  // Test stage first, because it's fastest.
-
701  scope.stage = stage;
-
702  if(not (scope.stage <= _stage)) {
-
703  // Bypass useless computations if no match
-
704  // because of the stage.
-
705  return scope;
-
706  }
-
707 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
-
708  /***** Stack depth *****/
-
709  // Backtrace in second, quite fast.
-
710  size_t stack_depth;
-
711  void *buffer[_max_buffer];
-
712  stack_depth = backtrace(buffer, _max_buffer);
-
713  scope.depth = stack_depth;
-
714  if(not (scope.depth <= _depth + _strip_calls)) {
-
715  // Bypass if no match.
-
716  return scope;
-
717  }
-
718 #endif
-
719 
-
720  /***** Location *****/
-
721  // Location last, slowest.
-
722  std::ostringstream sline; sline << line;
-
723  scope.there =
-
724  std::regex_search(file, _in_file)
-
725  and std::regex_search(func, _in_func)
-
726  and std::regex_search(sline.str(), _in_line);
-
727 
-
728  // No need to retest stage and depth, which are true here.
-
729  scope.matches = scope.there;
-
730 
-
731  return scope;
-
732  } // locate
-
733 
-
741  std::string replace(
-
742  const std::string& form,
-
743  const std::string& mark,
-
744  const std::string& tag
-
745  ) const
-
746  {
-
747  // Useless debug code, unless something fancy would be done with name tags.
-
748  // std::regex re;
-
749  // try {
-
750  // re = std::regex(mark);
-
751  //
-
752  // } catch(const std::regex_error& e) {
-
753  // std::cerr << "ERROR with a regular expression \"" << mark << "\": ";
-
754  // switch(e.code()) {
-
755  // case std::regex_constants::error_collate:
-
756  // std::cerr << "the expression contains an invalid collating element name";
-
757  // break;
-
758  // case std::regex_constants::error_ctype:
-
759  // std::cerr << "the expression contains an invalid character class name";
-
760  // break;
-
761  // case std::regex_constants::error_escape:
-
762  // std::cerr << "the expression contains an invalid escaped character or a trailing escape";
-
763  // break;
-
764  // case std::regex_constants::error_backref:
-
765  // std::cerr << "the expression contains an invalid back reference";
-
766  // break;
-
767  // case std::regex_constants::error_brack:
-
768  // std::cerr << "the expression contains mismatched square brackets ('[' and ']')";
-
769  // break;
-
770  // case std::regex_constants::error_paren:
-
771  // std::cerr << "the expression contains mismatched parentheses ('(' and ')')";
-
772  // break;
-
773  // case std::regex_constants::error_brace:
-
774  // std::cerr << "the expression contains mismatched curly braces ('{' and '}')";
-
775  // break;
-
776  // case std::regex_constants::error_badbrace:
-
777  // std::cerr << "the expression contains an invalid range in a {} expression";
-
778  // break;
-
779  // case std::regex_constants::error_range:
-
780  // std::cerr << "the expression contains an invalid character range (e.g. [b-a])";
-
781  // break;
-
782  // case std::regex_constants::error_space:
-
783  // std::cerr << "there was not enough memory to convert the expression into a finite state machine";
-
784  // break;
-
785  // case std::regex_constants::error_badrepeat:
-
786  // std::cerr << "one of *?+{ was not preceded by a valid regular expression";
-
787  // break;
-
788  // case std::regex_constants::error_complexity:
-
789  // std::cerr << "the complexity of an attempted match exceeded a predefined level";
-
790  // break;
-
791  // case std::regex_constants::error_stack:
-
792  // std::cerr << "there was not enough memory to perform a match";
-
793  // break;
-
794  // default:
-
795  // std::cerr << "unknown error";
-
796  // }
-
797  // std::cerr << std::endl;
-
798  // throw;
-
799  // } // catch
-
800 
-
801  const std::regex re(mark);
-
802  return std::regex_replace(form, re, tag);
-
803  }
+
701  fmt( fg f, bg b = bg::none, typo s = typo::none) : mode(ansi::colors_16), style(s), fore(f), back(b) {}
+
702  fmt( fg f, typo s , bg b = bg::none) : mode(ansi::colors_16), style(s), fore(f), back(b) {}
+
703  fmt( bg b, fg f = fg::none, typo s = typo::none) : mode(ansi::colors_16), style(s), fore(f), back(b) {}
+
704  fmt( bg b, typo s , fg f = fg::none) : mode(ansi::colors_16), style(s), fore(f), back(b) {}
+
705  fmt(typo s, fg f = fg::none, bg b = bg::none) : mode(ansi::colors_16), style(s), fore(f), back(b) {}
+
706  fmt(typo s, bg b , fg f = fg::none) : mode(ansi::colors_16), style(s), fore(f), back(b) {}
+
711  fmt(fg_256 f, bg_256 b, typo s = typo::none) : mode(ansi::colors_256), style(s), fore_256(f), back_256(b) {}
+
712  fmt(fg_256 f, typo s = typo::none) : mode(ansi::colors_256), style(s), fore_256(f), back_256(bg::none) {}
+
713  fmt(fg, bg_256 b, typo s = typo::none) : mode(ansi::colors_256), style(s), fore_256(fg::none), back_256(b) {}
+
718  fmt(const short fr, const short fg, const short fb,
+
719  const short gr, const short gg, const short gb,
+
720  typo s = typo::none)
+
721  : mode(ansi::colors_16M), style(s), fore_16M(fr,fg,fb), back_16M(gr,gg,gb) {}
+
722  fmt(fg,
+
723  const short gr, const short gg, const short gb,
+
724  typo s = typo::none)
+
725  : mode(ansi::colors_16M), style(s), fore_16M(fg::none), back_16M(gr,gg,gb) {}
+
726  fmt(const short fr, const short fg, const short fb,
+
727  bg, typo s = typo::none)
+
728  : mode(ansi::colors_16M), style(s), fore_16M(fr,fg,fb), back_16M(bg::none) {}
+
729  fmt(const short fr, const short fg, const short fb,
+
730  typo s = typo::none)
+
731  : mode(ansi::colors_16M), style(s), fore_16M(fr,fg,fb), back_16M(bg::none) {}
+
732 
+
733  fmt(const std::string& f, const std::string& b, typo s = typo::none)
+
734  : mode(ansi::colors_16M), style(s), fore_16M(f), back_16M(b) {}
+
735  fmt(fg, const std::string& b, typo s = typo::none)
+
736  : mode(ansi::colors_16M), style(s), fore_16M(fg::none), back_16M(b) {}
+
737  fmt(const std::string& f, bg, typo s = typo::none)
+
738  : mode(ansi::colors_16M), style(s), fore_16M(f), back_16M(bg::none) {}
+
739  fmt(const std::string& f, typo s = typo::none)
+
740  : mode(ansi::colors_16M), style(s), fore_16M(f), back_16M(bg::none) {}
+
743  protected:
+
744 
+
746  std::ostream& print_on( std::ostream& os) const
+
747  {
+
748  if(mode == ansi::colors_16) {
+
749  // Print all in a single escape.
+
750  os << std::make_tuple(fore,back,style);
+
751 
+
752  } else {
+
753  // 256 or 16M: always print separated escapes for foreground/background.
+
754  if(mode == ansi::colors_256) {
+
755  os << fore_256;
+
756  os << back_256;
+
757 
+
758  } else if(mode == ansi::colors_16M) {
+
759  os << fore_16M;
+
760  os << back_16M;
+
761  }
+
762  // In any case, print the style separately.
+
763  os << style;
+
764  }
+
765  return os;
+
766  }
+
767 
+
768  public:
+
780  friend std::ostream& operator<<(std::ostream& os, const fmt& fmt)
+
781  {
+
782  return fmt.print_on(os);
+
783  }
+
784 
+
795  std::string operator()( const std::string& msg ) const
+
796  {
+
797  std::ostringstream os;
+
798  this->print_on(os);
+
799  fmt reset(fmt::typo::reset);
+
800  os << msg;
+
801  reset.print_on(os);
+
802  return os.str();
+
803  }
804 
-
806  std::string replace(
-
807  const std::string& form,
-
808  const std::string& mark,
-
809  const size_t tag
-
810  ) const
-
811  {
-
812  std::ostringstream stag; stag << tag;
-
813  return replace(form, mark, stag.str());
-
814  }
-
815 
-
817  std::string format(
-
818  std::string row,
-
819  const std::string& what,
-
820 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
-
821  const std::string& name,
-
822 #endif
-
823  const level& stage,
-
824  const std::string& file,
-
825  const std::string& func,
-
826  const size_t line
-
827 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
-
828  ,
-
829  const size_t depth
-
830 #endif
-
831  ) const
-
832  {
-
833  row = replace(row, "\\{msg\\}", what);
-
834  row = replace(row, "\\{file\\}", file);
-
835  row = replace(row, "\\{func\\}", func);
-
836  row = replace(row, "\\{line\\}", line);
-
837 
-
838  row = replace(row, "\\{level\\}", _level_word.at(stage));
-
839  std::string letter(1, _level_word.at(stage).at(0)); // char -> string
-
840  row = replace(row, "\\{level_letter\\}", letter);
-
841 
-
842 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
-
843  row = replace(row, "\\{name\\}", name);
-
844  row = replace(row, "\\{depth\\}", depth - _strip_calls);
-
845 
-
846  std::ostringstream chevrons;
-
847  for(size_t i = _strip_calls; i < depth; ++i) {
-
848  chevrons << _depth_mark;
-
849  }
-
850  row = replace(row, "\\{depth_marks\\}", chevrons.str());
-
851 #endif
-
852 
-
853  row = replace(row, "\\{level_fmt\\}", _level_fmt.at(stage).str());
-
854 
-
855 #if CLUTCHLOG_HAVE_UNIX_SYSIOCTL
-
856  // hfill is replaced last to allow for correct line width estimation.
-
857  const std::string raw_row = replace(row, "\\x1B\\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]", "");
-
858  const std::string hfill_tag = "{hfill}";
-
859  const size_t hfill_pos = row.find(hfill_tag);
-
860  const size_t raw_hfill_pos = raw_row.find(hfill_tag);
-
861  const size_t nb_columns = std::max(std::min((size_t)_nb_columns, _hfill_max), _hfill_min);
-
862  if(hfill_pos != std::string::npos) {
-
863  assert(raw_hfill_pos != std::string::npos);
-
864  if(nb_columns > 0) {
-
865  const size_t left_len = raw_hfill_pos;
-
866  const size_t right_len = raw_row.size() - raw_hfill_pos - hfill_tag.size();
-
867  if(right_len+left_len > nb_columns) {
-
868  // The right part would go over the terminal width: add a new row.
-
869  if(right_len < nb_columns) {
-
870  // There is room for the right part on a new line.
-
871  const std::string hfill(std::max((size_t)0, nb_columns-right_len), _hfill_char);
-
872  const std::string hfill_styled = _hfill_fmt(hfill);
-
873  row = replace(row, "\\{hfill\\}", "\n"+hfill_styled);
-
874  } else {
-
875  // Right part still goes over columns: let it go.
-
876  const std::string hfill(1, _hfill_char);
-
877  const std::string hfill_styled = _hfill_fmt(hfill);
-
878  row = replace(row, "\\{hfill\\}", "\n"+hfill_styled);
-
879  }
-
880  } else {
-
881  // There is some space in between left and right parts.
-
882  const std::string hfill(std::max((size_t)0, nb_columns - (right_len+left_len)), _hfill_char);
-
883  const std::string hfill_styled = _hfill_fmt(hfill);
-
884  row = replace(row, "\\{hfill\\}", hfill_styled);
-
885  }
-
886  } else {
-
887  // We don't know the terminal width.
-
888  const std::string hfill(1, _hfill_char);
-
889  const std::string hfill_styled = _hfill_fmt(hfill);
-
890  row = replace(row, "\\{hfill\\}", hfill_styled);
-
891  }
-
892  }
-
893 #else
-
894  // We cannot know the terminal width.
-
895  const std::string hfill(1, _hfill_char);
-
896  const std::string hfill_styled = _hfill_fmt(hfill);
-
897  row = replace(row, "\\{hfill\\}", hfill_styled);
-
898 #endif
-
899  return _level_fmt.at(stage)(row);
-
900  }
-
901 
-
903  void log(
-
904  const level& stage,
-
905  const std::string& what,
-
906  const std::string& file, const std::string& func, size_t line
-
907  ) const
-
908  {
-
909  scope_t scope = locate(stage, file, func, line);
-
910 
-
911  if(scope.matches) {
-
912 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
-
913  *_out << format(_format_log, what, basename(getenv("_")),
-
914  stage, file, func,
-
915  line, scope.depth );
-
916 #else
-
917  *_out << format(_format_log, what,
-
918  stage, file, func,
-
919  line );
-
920 
-
921 #endif
-
922  _out->flush();
-
923  } // if scopes.matches
-
924  }
-
925 
-
927  template<class In>
-
928  void dump(
-
929  const level& stage,
-
930  const In container_begin, const In container_end,
-
931  const std::string& file, const std::string& func, size_t line,
-
932  const std::string& filename_template = "dump_{n}.dat",
-
933  const std::string sep = dump_default_sep
-
934  ) const
-
935  {
-
936  scope_t scope = locate(stage, file, func, line);
+
807  std::string str() const
+
808  {
+
809  std::ostringstream os;
+
810  this->print_on(os);
+
811  return os.str();
+
812  }
+
813  }; // fmt class
+
814 
+
820  public:
+
821  clutchlog(clutchlog const&) = delete;
+
822  void operator=(clutchlog const&) = delete;
+
823 
+
824  private:
+
825  clutchlog() :
+
826  // system, main, log
+
827  _strip_calls(clutchlog::default_strip_calls),
+
828  _level_word({
+
829  {level::critical,"Critical"},
+
830  {level::error ,"Error"},
+
831  {level::warning ,"Warning"},
+
832  {level::progress,"Progress"},
+
833  {level::note ,"Note"},
+
834  {level::info ,"Info"},
+
835  {level::debug ,"Debug"},
+
836  {level::xdebug ,"XDebug"}
+
837  }),
+
838  _level_fmt({
+
839  {level::critical,fmt(fmt::fg::red, fmt::typo::underline)},
+
840  {level::error ,fmt(fmt::fg::red, fmt::typo::bold)},
+
841  {level::warning ,fmt(fmt::fg::magenta, fmt::typo::bold)},
+
842  {level::progress,fmt()},
+
843  {level::note ,fmt()},
+
844  {level::info ,fmt()},
+
845  {level::debug ,fmt()},
+
846  {level::xdebug ,fmt()}
+
847  }),
+
848  _format_log(clutchlog::default_format),
+
849  _format_dump(clutchlog::dump_default_format),
+
850  #if CLUTCHLOG_HAVE_UNIX_SYSIOCTL
+
851  _hfill_char(clutchlog::default_hfill_char),
+
852  _hfill_fmt(fmt::fg::none),
+
853  _hfill_max(clutchlog::default_hfill_max),
+
854  _hfill_min(clutchlog::default_hfill_min),
+
855  #endif
+
856  _out(&std::clog),
+
857  #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
+
858  _depth(std::numeric_limits<size_t>::max() - _strip_calls),
+
859  _depth_mark(clutchlog::default_depth_mark),
+
860  #endif
+
861  _stage(level::error),
+
862  _in_file(".*"),
+
863  _in_func(".*"),
+
864  _in_line(".*")
+
865  {
+
866  // Reverse the level->word map into a word->level map.
+
867  for(auto& lw : _level_word) {
+
868  _word_level[lw.second] = lw.first;
+
869  }
+
870 #if CLUTCHLOG_HAVE_UNIX_SYSIOCTL
+
871  struct winsize w;
+
872  ioctl(STDERR_FILENO, TIOCGWINSZ, &w);
+
873  _nb_columns = std::max(std::min((size_t)w.ws_col, default_hfill_max), default_hfill_min);
+
874 #endif
+
875  }
+
876 
+
877  protected:
+
879  size_t _strip_calls;
+
881  const std::map<level,std::string> _level_word;
+
883  std::map<std::string,level> _word_level;
+
885  std::map<level,fmt> _level_fmt;
+
887  std::string _format_log;
+
889  std::string _format_dump;
+
890  #if CLUTCHLOG_HAVE_UNIX_SYSIOCTL
+
891 
+
892  char _hfill_char;
+
894  fmt _hfill_fmt;
+
896  size_t _hfill_max;
+
898  size_t _hfill_min;
+
899  #endif
+
900 
+
901  std::ostream* _out;
+
902  #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
+
903 
+
904  size_t _depth;
+
906  std::string _depth_mark;
+
907  #endif
+
908 
+
909  level _stage;
+
911  std::regex _in_file;
+
913  std::regex _in_func;
+
915  std::regex _in_line;
+
916 
+
917 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
+
918 
+
919  static const size_t _max_buffer = 4096;
+
920 #endif
+
921 
+
922 #if CLUTCHLOG_HAVE_UNIX_SYSIOCTL
+
923 
+
924  size_t _nb_columns;
+
925 #endif
+
926 
+
928  public:
+
929 
+
933  void format(const std::string& format) {_format_log = format;}
+
936  std::string format() const {return _format_log;}
937 
-
938  if(scope.matches) {
-
939  const std::string tag = "\\{n\\}";
-
940  const std::regex re(tag);
-
941  std::string outfile = "";
+
939  void format_comment(const std::string& format) {_format_dump = format;}
+
941  std::string format_comment() const {return _format_dump;}
942 
-
943  // If the file name template has the {n} tag.
-
944  if(std::regex_search(filename_template, re)) {
-
945  // Increment n until a free one is found.
-
946  size_t n = 0;
-
947  do {
-
948  outfile = replace(filename_template, tag, n);
-
949  n++;
-
950  } while( fs::exists( outfile ) );
-
951 
-
952  } else {
-
953  // Use the parameter as is.
-
954  outfile = filename_template;
-
955  }
-
956 
-
957  std::ofstream fd(outfile);
+
944  void out(std::ostream& out) {_out = &out;}
+
946  std::ostream& out() {return *_out;}
+
947 
+
948 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
+
949  void depth(size_t d) {_depth = d;}
+
952  size_t depth() const {return _depth;}
+
953 
+
955  void depth_mark(const std::string mark) {_depth_mark = mark;}
+
957  std::string depth_mark() const {return _depth_mark;}
958 
-
959  if(_format_dump.size() > 0) {
-
960 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
-
961  fd << format(_format_dump, "", basename(getenv("_")),
-
962  stage, file, func,
-
963  line, scope.depth );
-
964 #else
-
965  fd << format(_format_dump, "",
-
966  stage, file, func,
-
967  line );
-
968 #endif
-
969  fd << sep; // sep after comment line.
-
970  }
-
971 
-
972  std::copy(container_begin, container_end,
-
973  std::ostream_iterator<typename In::value_type>(fd, sep.c_str()));
-
974 
-
975  fd.close();
-
976  } // if scopes.matches
-
977  }
-
978 
-
980 };
-
981 
-
984 #else // not WITH_CLUTCHLOG
-
985 
-
986 
-
987 /**********************************************************************
-
988  * Fake implementation
-
989  **********************************************************************/
-
990 
-
991 // Equivalent class with empty methods, will be optimized out
-
992 // while allowing to actually have calls implemented without WITH_CLUTCHLOG guards.
-
993 #pragma GCC diagnostic push
-
994 #pragma GCC diagnostic ignored "-Wreturn-type"
-
995 class clutchlog
-
996 {
-
997  public:
-
998  static clutchlog& logger() {}
-
999  enum level {critical=0, error=1, warning=2, progress=3, note=4, info=5, debug=6, xdebug=7};
-
1000  class fmt {
-
1001  public:
-
1002  enum class fg { black, red, green, yellow, blue, magenta, cyan, white, none } fore;
-
1003  enum class bg { black, red, green, yellow, blue, magenta, cyan, white, none } back;
-
1004  enum class typo { reset, bold, underline, inverse, none } style;
-
1005  fmt() : fore(fg::none), back(bg::none), style(typo::none) {}
-
1006  fmt( fg f, bg b = bg::none, typo s = typo::none) : fore(f), back(b), style(s) {}
-
1007  fmt( fg f, typo s , bg b = bg::none) : fore(f), back(b), style(s) {}
-
1008  fmt( bg b, fg f = fg::none, typo s = typo::none) : fore(f), back(b), style(s) {}
-
1009  fmt( bg b, typo s , fg f = fg::none) : fore(f), back(b), style(s) {}
-
1010  fmt(typo s, fg f = fg::none, bg b = bg::none) : fore(f), back(b), style(s) {}
-
1011  fmt(typo s, bg b , fg f = fg::none) : fore(f), back(b), style(s) {}
-
1012  protected:
-
1013  std::ostream& print_on(std::ostream&) const {}
-
1014  public:
-
1015  friend std::ostream& operator<<(std::ostream&, const fmt&) {}
-
1016  std::string operator()(const std::string&) const {}
-
1017  };
-
1018  public:
-
1019  clutchlog(clutchlog const&) = delete;
-
1020  void operator=(clutchlog const&) = delete;
-
1021  private:
-
1022  clutchlog() {}
-
1023  protected:
-
1024  struct scope_t {};
-
1025  scope_t locate(
-
1026  const level&,
-
1027  const std::string&,
-
1028  const std::string&,
-
1029  const size_t
-
1030  ) const
-
1031  {}
-
1032  public:
-
1033  void format(const std::string&) {}
-
1034  std::string format() const {}
-
1035 
-
1036  void format_comment(const std::string&) {}
-
1037  std::string format_comment() const {}
-
1038 
-
1039  void out(std::ostream&) {}
-
1040  std::ostream& out() {}
+
960  void strip_calls(const size_t n) {_strip_calls = n;}
+
962  size_t strip_calls() const {return _strip_calls;}
+
963 #endif
+
964 #if CLUTCHLOG_HAVE_UNIX_SYSIOCTL == 1
+
965  void hfill_mark(const char mark) {_hfill_char = mark;}
+
968  char hfill_mark() const {return _hfill_char;}
+
970  void hfill_style(fmt style) {_hfill_fmt = style;}
+
975  template<class ... FMT>
+
976  void hfill_style(FMT... styles) { this->hfill_style(fmt(styles...)); }
+
978  fmt hfill_style() const {return _hfill_fmt;}
+
980  void hfill_max(const size_t nmax) {_hfill_max = nmax;}
+
982  size_t hfill_max() {return _hfill_max;}
+
984  void hfill_min(const size_t nmin) {_hfill_min = nmin;}
+
986  size_t hfill_min() {return _hfill_min;}
+
987 #endif
+
988 
+
990  void threshold(level l) {_stage = l;}
+
992  void threshold(const std::string& l) {_stage = this->level_of(l);}
+
994  level threshold() const {return _stage;}
+
996  const std::map<std::string,level>& levels() const { return _word_level;}
+
997 
+
1002  level level_of(const std::string name)
+
1003  {
+
1004  const auto ilevel = _word_level.find(name);
+
1005  if( ilevel != std::end(_word_level)) {
+
1006  return ilevel->second;
+
1007  } else {
+
1008  throw std::out_of_range("'" + name + "' is not a valid log level name");
+
1009  }
+
1010  }
+
1011 
+
1013  void file(std::string file) {_in_file = file;}
+
1015  void func(std::string func) {_in_func = func;}
+
1017  void line(std::string line) {_in_line = line;}
+
1018 
+
1020  void location(
+
1021  const std::string& in_file,
+
1022  const std::string& in_function=".*",
+
1023  const std::string& in_line=".*"
+
1024  )
+
1025  {
+
1026  file(in_file);
+
1027  func(in_function);
+
1028  line(in_line);
+
1029  }
+
1030 
+
1035  template<class ... FMT>
+
1036  void style(level stage, FMT... styles) { this->style(stage,fmt(styles...)); }
+
1038  void style(level stage, fmt style) { _level_fmt.at(stage) = style; }
+
1040  fmt style(level stage) const { return _level_fmt.at(stage); }
1041 
-
1042 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
-
1043  void depth(size_t) {}
-
1044  size_t depth() const {}
+
1044  public:
1045 
-
1046  void depth_mark(const std::string) {}
-
1047  std::string depth_mark() const {}
-
1048  void strip_calls(const size_t) {}
-
1049  size_t strip_calls() const {}
-
1050 #endif
-
1051 #if CLUTCHLOG_HAVE_UNIX_SYSIOCTL == 1
-
1052  void hfill_mark(const char) {}
-
1053  char hfill_mark() const {}
-
1054  void hfill_fmt(fmt) {}
-
1055  fmt hfill_fmt() const {}
-
1056  void hfill_min(const size_t) {}
-
1057  size_t hfill_min() {}
-
1058  void hfill_max(const size_t) {}
-
1059  size_t hfill_max() {}
-
1060 #endif
-
1061 
-
1062  void threshold(level) {}
-
1063  void threshold(const std::string&) {}
-
1064  level threshold() const {}
-
1065  const std::map<std::string,level> levels() const {}
-
1066  level level_of(const std::string) {}
-
1067 
-
1068  void file(std::string) {}
-
1069  void func(std::string) {}
-
1070  void line(std::string) {}
+
1049  struct scope_t {
+
1052  bool matches;
+
1054  level stage;
+
1055 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
+
1056 
+
1057  size_t depth;
+
1058 #endif
+
1059 
+
1060  bool there;
+
1062  scope_t() :
+
1063  matches(false),
+
1064  stage(level::xdebug),
+
1065 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
+
1066  depth(0),
+
1067 #endif
+
1068  there(false)
+
1069  {}
+
1070  }; // scope_t
1071 
-
1072 #pragma GCC diagnostic push
-
1073 #pragma GCC diagnostic ignored "-Wunused-parameter"
-
1074  void location(
-
1075  const std::string&,
-
1076  const std::string& in_function=".*",
-
1077  const std::string& in_line=".*"
-
1078  )
-
1079  {}
-
1080 #pragma GCC diagnostic pop
-
1081  template<class ... FMT>
-
1082  void style(level, FMT...) {}
-
1083  void style(level, fmt) {}
-
1084  fmt style(level) const {}
-
1085  public:
-
1086  std::string replace(
-
1087  const std::string&,
-
1088  const std::string&,
-
1089  const std::string&
-
1090  ) const
-
1091  {}
-
1092 
-
1093  std::string replace(
-
1094  const std::string&,
-
1095  const std::string&,
-
1096  const size_t
-
1097  ) const
-
1098  {}
-
1099 
-
1100  std::string format(
-
1101  std::string,
-
1102  const std::string&,
-
1103 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
-
1104  const std::string&,
-
1105 #endif
-
1106  const level&,
-
1107  const std::string&,
-
1108  const std::string&,
-
1109  const size_t
-
1110 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
-
1111  ,
-
1112  const size_t
-
1113 #endif
-
1114  ) const
-
1115  {}
-
1116 
-
1117  void log(
-
1118  const level&,
-
1119  const std::string&,
-
1120  const std::string&, const std::string&, size_t
-
1121  ) const
-
1122  {}
-
1123 
-
1124  template<class In>
-
1125  void dump(
-
1126  const level&,
-
1127  const In, const In,
-
1128  const std::string&, const std::string&, size_t,
-
1129  const std::string&,
-
1130  const std::string
-
1131  ) const
-
1132  {}
-
1133 };
-
1134 #pragma GCC diagnostic pop
-
1135 #endif // WITH_CLUTCHLOG
-
1136 
-
1137 #endif // CLUTCHLOG_H
+
1072 
+
1074  scope_t locate(
+
1075  const level& stage,
+
1076  const std::string& file,
+
1077  const std::string& func,
+
1078  const size_t line
+
1079  ) const
+
1080  {
+
1081  scope_t scope; // False scope by default.
+
1082 
+
1083  /***** Log level stage *****/
+
1084  // Test stage first, because it's fastest.
+
1085  scope.stage = stage;
+
1086  if(not (scope.stage <= _stage)) {
+
1087  // Bypass useless computations if no match
+
1088  // because of the stage.
+
1089  return scope;
+
1090  }
+
1091 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
+
1092  /***** Stack depth *****/
+
1093  // Backtrace in second, quite fast.
+
1094  size_t stack_depth;
+
1095  void *buffer[_max_buffer];
+
1096  stack_depth = backtrace(buffer, _max_buffer);
+
1097  scope.depth = stack_depth;
+
1098  if(not (scope.depth <= _depth + _strip_calls)) {
+
1099  // Bypass if no match.
+
1100  return scope;
+
1101  }
+
1102 #endif
+
1103 
+
1104  /***** Location *****/
+
1105  // Location last, slowest.
+
1106  std::ostringstream sline; sline << line;
+
1107  scope.there =
+
1108  std::regex_search(file, _in_file)
+
1109  and std::regex_search(func, _in_func)
+
1110  and std::regex_search(sline.str(), _in_line);
+
1111 
+
1112  // No need to retest stage and depth, which are true here.
+
1113  scope.matches = scope.there;
+
1114 
+
1115  return scope;
+
1116  } // locate
+
1117 
+
1125  std::string replace(
+
1126  const std::string& form,
+
1127  const std::string& mark,
+
1128  const std::string& tag
+
1129  ) const
+
1130  {
+
1131  // Useless debug code, unless something fancy would be done with name tags.
+
1132  // std::regex re;
+
1133  // try {
+
1134  // re = std::regex(mark);
+
1135  //
+
1136  // } catch(const std::regex_error& e) {
+
1137  // std::cerr << "ERROR with a regular expression \"" << mark << "\": ";
+
1138  // switch(e.code()) {
+
1139  // case std::regex_constants::error_collate:
+
1140  // std::cerr << "the expression contains an invalid collating element name";
+
1141  // break;
+
1142  // case std::regex_constants::error_ctype:
+
1143  // std::cerr << "the expression contains an invalid character class name";
+
1144  // break;
+
1145  // case std::regex_constants::error_escape:
+
1146  // std::cerr << "the expression contains an invalid escaped character or a trailing escape";
+
1147  // break;
+
1148  // case std::regex_constants::error_backref:
+
1149  // std::cerr << "the expression contains an invalid back reference";
+
1150  // break;
+
1151  // case std::regex_constants::error_brack:
+
1152  // std::cerr << "the expression contains mismatched square brackets ('[' and ']')";
+
1153  // break;
+
1154  // case std::regex_constants::error_paren:
+
1155  // std::cerr << "the expression contains mismatched parentheses ('(' and ')')";
+
1156  // break;
+
1157  // case std::regex_constants::error_brace:
+
1158  // std::cerr << "the expression contains mismatched curly braces ('{' and '}')";
+
1159  // break;
+
1160  // case std::regex_constants::error_badbrace:
+
1161  // std::cerr << "the expression contains an invalid range in a {} expression";
+
1162  // break;
+
1163  // case std::regex_constants::error_range:
+
1164  // std::cerr << "the expression contains an invalid character range (e.g. [b-a])";
+
1165  // break;
+
1166  // case std::regex_constants::error_space:
+
1167  // std::cerr << "there was not enough memory to convert the expression into a finite state machine";
+
1168  // break;
+
1169  // case std::regex_constants::error_badrepeat:
+
1170  // std::cerr << "one of *?+{ was not preceded by a valid regular expression";
+
1171  // break;
+
1172  // case std::regex_constants::error_complexity:
+
1173  // std::cerr << "the complexity of an attempted match exceeded a predefined level";
+
1174  // break;
+
1175  // case std::regex_constants::error_stack:
+
1176  // std::cerr << "there was not enough memory to perform a match";
+
1177  // break;
+
1178  // default:
+
1179  // std::cerr << "unknown error";
+
1180  // }
+
1181  // std::cerr << std::endl;
+
1182  // throw;
+
1183  // } // catch
+
1184 
+
1185  const std::regex re(mark);
+
1186  return std::regex_replace(form, re, tag);
+
1187  }
+
1188 
+
1190  std::string replace(
+
1191  const std::string& form,
+
1192  const std::string& mark,
+
1193  const size_t tag
+
1194  ) const
+
1195  {
+
1196  std::ostringstream stag; stag << tag;
+
1197  return replace(form, mark, stag.str());
+
1198  }
+
1199 
+
1201  std::string format(
+
1202  std::string row,
+
1203  const std::string& what,
+
1204 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
+
1205  const std::string& name,
+
1206 #endif
+
1207  const level& stage,
+
1208  const std::string& file,
+
1209  const std::string& func,
+
1210  const size_t line
+
1211 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
+
1212  ,
+
1213  const size_t depth
+
1214 #endif
+
1215  ) const
+
1216  {
+
1217  row = replace(row, "\\{msg\\}", what);
+
1218  row = replace(row, "\\{file\\}", file);
+
1219  row = replace(row, "\\{func\\}", func);
+
1220  row = replace(row, "\\{line\\}", line);
+
1221 
+
1222  row = replace(row, "\\{level\\}", _level_word.at(stage));
+
1223  std::string letter(1, _level_word.at(stage).at(0)); // char -> string
+
1224  row = replace(row, "\\{level_letter\\}", letter);
+
1225 
+
1226 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
+
1227  row = replace(row, "\\{name\\}", name);
+
1228  row = replace(row, "\\{depth\\}", depth - _strip_calls);
+
1229 
+
1230  std::ostringstream chevrons;
+
1231  for(size_t i = _strip_calls; i < depth; ++i) {
+
1232  chevrons << _depth_mark;
+
1233  }
+
1234  row = replace(row, "\\{depth_marks\\}", chevrons.str());
+
1235 #endif
+
1236 
+
1237  row = replace(row, "\\{level_fmt\\}", _level_fmt.at(stage).str());
+
1238 
+
1239 #if CLUTCHLOG_HAVE_UNIX_SYSIOCTL
+
1240  // hfill is replaced last to allow for correct line width estimation.
+
1241  const std::string raw_row = replace(row, "\\x1B\\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]", "");
+
1242  const std::string hfill_tag = "{hfill}";
+
1243  const size_t hfill_pos = row.find(hfill_tag);
+
1244  const size_t raw_hfill_pos = raw_row.find(hfill_tag);
+
1245  const size_t nb_columns = std::max(std::min((size_t)_nb_columns, _hfill_max), _hfill_min);
+
1246  if(hfill_pos != std::string::npos) {
+
1247  assert(raw_hfill_pos != std::string::npos);
+
1248  if(nb_columns > 0) {
+
1249  const size_t left_len = raw_hfill_pos;
+
1250  const size_t right_len = raw_row.size() - raw_hfill_pos - hfill_tag.size();
+
1251  if(right_len+left_len > nb_columns) {
+
1252  // The right part would go over the terminal width: add a new row.
+
1253  if(right_len < nb_columns) {
+
1254  // There is room for the right part on a new line.
+
1255  const std::string hfill(std::max((size_t)0, nb_columns-right_len), _hfill_char);
+
1256  const std::string hfill_styled = _hfill_fmt(hfill);
+
1257  row = replace(row, "\\{hfill\\}", "\n"+hfill_styled);
+
1258  } else {
+
1259  // Right part still goes over columns: let it go.
+
1260  const std::string hfill(1, _hfill_char);
+
1261  const std::string hfill_styled = _hfill_fmt(hfill);
+
1262  row = replace(row, "\\{hfill\\}", "\n"+hfill_styled);
+
1263  }
+
1264  } else {
+
1265  // There is some space in between left and right parts.
+
1266  const std::string hfill(std::max((size_t)0, nb_columns - (right_len+left_len)), _hfill_char);
+
1267  const std::string hfill_styled = _hfill_fmt(hfill);
+
1268  row = replace(row, "\\{hfill\\}", hfill_styled);
+
1269  }
+
1270  } else {
+
1271  // We don't know the terminal width.
+
1272  const std::string hfill(1, _hfill_char);
+
1273  const std::string hfill_styled = _hfill_fmt(hfill);
+
1274  row = replace(row, "\\{hfill\\}", hfill_styled);
+
1275  }
+
1276  }
+
1277 #else
+
1278  // We cannot know the terminal width.
+
1279  const std::string hfill(1, _hfill_char);
+
1280  const std::string hfill_styled = _hfill_fmt(hfill);
+
1281  row = replace(row, "\\{hfill\\}", hfill_styled);
+
1282 #endif
+
1283  return _level_fmt.at(stage)(row);
+
1284  }
+
1285 
+
1287  void log(
+
1288  const level& stage,
+
1289  const std::string& what,
+
1290  const std::string& file, const std::string& func, size_t line
+
1291  ) const
+
1292  {
+
1293  scope_t scope = locate(stage, file, func, line);
+
1294 
+
1295  if(scope.matches) {
+
1296 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
+
1297  *_out << format(_format_log, what, basename(getenv("_")),
+
1298  stage, file, func,
+
1299  line, scope.depth );
+
1300 #else
+
1301  *_out << format(_format_log, what,
+
1302  stage, file, func,
+
1303  line );
+
1304 
+
1305 #endif
+
1306  _out->flush();
+
1307  } // if scopes.matches
+
1308  }
+
1309 
+
1311  template<class In>
+
1312  void dump(
+
1313  const level& stage,
+
1314  const In container_begin, const In container_end,
+
1315  const std::string& file, const std::string& func, size_t line,
+
1316  const std::string& filename_template = "dump_{n}.dat",
+
1317  const std::string sep = dump_default_sep
+
1318  ) const
+
1319  {
+
1320  scope_t scope = locate(stage, file, func, line);
+
1321 
+
1322  if(scope.matches) {
+
1323  const std::string tag = "\\{n\\}";
+
1324  const std::regex re(tag);
+
1325  std::string outfile = "";
+
1326 
+
1327  // If the file name template has the {n} tag.
+
1328  if(std::regex_search(filename_template, re)) {
+
1329  // Increment n until a free one is found.
+
1330  size_t n = 0;
+
1331  do {
+
1332  outfile = replace(filename_template, tag, n);
+
1333  n++;
+
1334  } while( fs::exists( outfile ) );
+
1335 
+
1336  } else {
+
1337  // Use the parameter as is.
+
1338  outfile = filename_template;
+
1339  }
+
1340 
+
1341  std::ofstream fd(outfile);
+
1342 
+
1343  if(_format_dump.size() > 0) {
+
1344 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
+
1345  fd << format(_format_dump, "", basename(getenv("_")),
+
1346  stage, file, func,
+
1347  line, scope.depth );
+
1348 #else
+
1349  fd << format(_format_dump, "",
+
1350  stage, file, func,
+
1351  line );
+
1352 #endif
+
1353  fd << sep; // sep after comment line.
+
1354  }
+
1355 
+
1356  std::copy(container_begin, container_end,
+
1357  std::ostream_iterator<typename In::value_type>(fd, sep.c_str()));
+
1358 
+
1359  fd.close();
+
1360  } // if scopes.matches
+
1361  }
+
1362 
+
1364 };
+
1365 
+
1368 #else // not WITH_CLUTCHLOG
+
1369 
+
1370 
+
1371 /**********************************************************************
+
1372  * Fake implementation
+
1373  **********************************************************************/
+
1374 
+
1375 // Equivalent class with empty methods, will be optimized out
+
1376 // while allowing to actually have calls implemented without WITH_CLUTCHLOG guards.
+
1377 #pragma GCC diagnostic push
+
1378 #pragma GCC diagnostic ignored "-Wreturn-type"
+
1379 class clutchlog
+
1380 {
+
1381  public:
+
1382  static clutchlog& logger() {}
+
1383  enum level {critical=0, error=1, warning=2, progress=3, note=4, info=5, debug=6, xdebug=7};
+
1384  class fmt {
+
1385  public:
+
1386  enum class ansi { colors_16, colors_256, colors_16M} mode;
+
1387  enum class typo { reset, bold, underline, inverse, none} style;
+
1388  enum class fg { black, red, green, yellow, blue, magenta, cyan, white, bright_black, bright_red, bright_green, bright_yellow, bright_blue, bright_magenta, bright_cyan, bright_white, none} fore;
+
1389  enum class bg { black, red, green, yellow, blue, magenta, cyan, white, bright_black, bright_red, bright_green, bright_yellow, bright_blue, bright_magenta, bright_cyan, bright_white, none } back;
+
1390  protected:
+
1391  friend std::ostream& operator<<(std::ostream&, const std::tuple<fg,bg,typo>&) {}
+
1392  friend std::ostream& operator<<(std::ostream&, const typo&) {}
+
1393  protected:
+
1394  struct color {
+
1395  ansi mode;
+
1396  enum class ground { fore, back } type;
+
1397  color(ansi a, ground g) : mode(a), type(g) {}
+
1398  virtual bool is_set() const = 0;
+
1399  virtual std::ostream& print_on( std::ostream&) const = 0;
+
1400  friend std::ostream& operator<<(std::ostream&, const color&) {}
+
1401  };
+
1402  struct color_256 : public color {
+
1403  short index;
+
1404  color_256(ground t) : color(ansi::colors_256, t), index(-1) {}
+
1405  color_256(ground t, const short i) : color(ansi::colors_256, t), index(i) {}
+
1406  bool is_set() const {}
+
1407  std::ostream& print_on( std::ostream&) const {}
+
1408  };
+
1409  struct fg_256 : public color_256 {
+
1410  fg_256() : color_256(ground::fore) {}
+
1411  fg_256(const short f) : color_256(ground::fore, f) {}
+
1412  fg_256(const fg&) : color_256(ground::fore, -1) {}
+
1413  } fore_256;
+
1414  struct bg_256 : public color_256 {
+
1415  bg_256() : color_256(ground::back) {}
+
1416  bg_256(const short b) : color_256(ground::back, b) {}
+
1417  bg_256(const bg&) : color_256(ground::back, -1) {}
+
1418  } back_256;
+
1419  struct color_16M : public color {
+
1420  short red, green, blue;
+
1421  color_16M(ground t) : color(ansi::colors_16M, t), red(-1), green(-1), blue(-1) {}
+
1422  color_16M(ground t, short r, short g, short b) : color(ansi::colors_16M, t), red(r), green(g), blue(b) {}
+
1423  color_16M(ground t, const std::string&) : color(ansi::colors_16M, t) {}
+
1424  bool is_set() const {return red > -1 and green > -1 and blue > -1;}
+
1425  std::ostream& print_on( std::ostream&) const {}
+
1426  };
+
1427  struct fg_16M : public color_16M {
+
1428  fg_16M() : color_16M(ground::fore) {}
+
1429  fg_16M(short r, short g, short b) : color_16M(ground::fore, r,g,b) {}
+
1430  fg_16M(const std::string& srgb) : color_16M(ground::fore, srgb) {}
+
1431  fg_16M(const fg&) : color_16M(ground::fore, -1,-1,-1) {}
+
1432  } fore_16M;
+
1433  struct bg_16M : public color_16M {
+
1434  bg_16M() : color_16M(ground::back) {}
+
1435  bg_16M(short r, short g, short b) : color_16M(ground::back, r,g,b) {}
+
1436  bg_16M(const std::string& srgb) : color_16M(ground::back, srgb) {}
+
1437  bg_16M(const bg&) : color_16M(ground::back, -1,-1,-1) {}
+
1438  } back_16M;
+
1439  public:
+
1440  fmt() : mode(ansi::colors_16), style(typo::none), fore(fg::none), back(bg::none) {}
+
1441  fmt( fg f, bg b = bg::none, typo s = typo::none) : mode(ansi::colors_16), style(s), fore(f), back(b) {}
+
1442  fmt( fg f, typo s , bg b = bg::none) : mode(ansi::colors_16), style(s), fore(f), back(b) {}
+
1443  fmt( bg b, fg f = fg::none, typo s = typo::none) : mode(ansi::colors_16), style(s), fore(f), back(b) {}
+
1444  fmt( bg b, typo s , fg f = fg::none) : mode(ansi::colors_16), style(s), fore(f), back(b) {}
+
1445  fmt(typo s, fg f = fg::none, bg b = bg::none) : mode(ansi::colors_16), style(s), fore(f), back(b) {}
+
1446  fmt(typo s, bg b , fg f = fg::none) : mode(ansi::colors_16), style(s), fore(f), back(b) {}
+
1447  fmt(fg_256 f, bg_256 b, typo s = typo::none) : mode(ansi::colors_256), style(s), fore_256(f), back_256(b) {}
+
1448  fmt(fg_256 f, typo s = typo::none) : mode(ansi::colors_256), style(s), fore_256(f), back_256(bg::none) {}
+
1449  fmt(fg, bg_256 b, typo s = typo::none) : mode(ansi::colors_256), style(s), fore_256(fg::none), back_256(b) {}
+
1450  fmt(const short fr, const short fg, const short fb,
+
1451  const short gr, const short gg, const short gb,
+
1452  typo s = typo::none)
+
1453  : mode(ansi::colors_16M), style(s), fore_16M(fr,fg,fb), back_16M(gr,gg,gb) {}
+
1454  fmt(fg,
+
1455  const short gr, const short gg, const short gb,
+
1456  typo s = typo::none)
+
1457  : mode(ansi::colors_16M), style(s), fore_16M(fg::none), back_16M(gr,gg,gb) {}
+
1458  fmt(const short fr, const short fg, const short fb,
+
1459  bg, typo s = typo::none)
+
1460  : mode(ansi::colors_16M), style(s), fore_16M(fr,fg,fb), back_16M(bg::none) {}
+
1461  fmt(const short fr, const short fg, const short fb,
+
1462  typo s = typo::none)
+
1463  : mode(ansi::colors_16M), style(s), fore_16M(fr,fg,fb), back_16M(bg::none) {}
+
1464 
+
1465  fmt(const std::string& f, const std::string& b, typo s = typo::none)
+
1466  : mode(ansi::colors_16M), style(s), fore_16M(f), back_16M(b) {}
+
1467  fmt(fg, const std::string& b, typo s = typo::none)
+
1468  : mode(ansi::colors_16M), style(s), fore_16M(fg::none), back_16M(b) {}
+
1469  fmt(const std::string& f, bg, typo s = typo::none)
+
1470  : mode(ansi::colors_16M), style(s), fore_16M(f), back_16M(bg::none) {}
+
1471  fmt(const std::string& f, typo s = typo::none)
+
1472  : mode(ansi::colors_16M), style(s), fore_16M(f), back_16M(bg::none) {}
+
1473  protected:
+
1474  std::ostream& print_on( std::ostream&) const {}
+
1475  public:
+
1476  friend std::ostream& operator<<(std::ostream&, const fmt&) {}
+
1477  std::string operator()( const std::string&) const {}
+
1478  std::string str() const {}
+
1479  };
+
1480  public:
+
1481  clutchlog(clutchlog const&) = delete;
+
1482  void operator=(clutchlog const&) = delete;
+
1483  private:
+
1484  clutchlog() {}
+
1485  protected:
+
1486  struct scope_t {};
+
1487  scope_t locate(
+
1488  const level&,
+
1489  const std::string&,
+
1490  const std::string&,
+
1491  const size_t
+
1492  ) const
+
1493  {}
+
1494  public:
+
1495  void format(const std::string&) {}
+
1496  std::string format() const {}
+
1497 
+
1498  void format_comment(const std::string&) {}
+
1499  std::string format_comment() const {}
+
1500 
+
1501  void out(std::ostream&) {}
+
1502  std::ostream& out() {}
+
1503 
+
1504 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
+
1505  void depth(size_t) {}
+
1506  size_t depth() const {}
+
1507 
+
1508  void depth_mark(const std::string) {}
+
1509  std::string depth_mark() const {}
+
1510  void strip_calls(const size_t) {}
+
1511  size_t strip_calls() const {}
+
1512 #endif
+
1513 #if CLUTCHLOG_HAVE_UNIX_SYSIOCTL == 1
+
1514  void hfill_mark(const char) {}
+
1515  char hfill_mark() const {}
+
1516  void hfill_fmt(fmt) {}
+
1517  fmt hfill_fmt() const {}
+
1518  void hfill_min(const size_t) {}
+
1519  size_t hfill_min() {}
+
1520  void hfill_max(const size_t) {}
+
1521  size_t hfill_max() {}
+
1522 #endif
+
1523 
+
1524  void threshold(level) {}
+
1525  void threshold(const std::string&) {}
+
1526  level threshold() const {}
+
1527  const std::map<std::string,level> levels() const {}
+
1528  level level_of(const std::string) {}
+
1529 
+
1530  void file(std::string) {}
+
1531  void func(std::string) {}
+
1532  void line(std::string) {}
+
1533 
+
1534 #pragma GCC diagnostic push
+
1535 #pragma GCC diagnostic ignored "-Wunused-parameter"
+
1536  void location(
+
1537  const std::string&,
+
1538  const std::string& in_function=".*",
+
1539  const std::string& in_line=".*"
+
1540  )
+
1541  {}
+
1542 #pragma GCC diagnostic pop
+
1543  template<class ... FMT>
+
1544  void style(level, FMT...) {}
+
1545  void style(level, fmt) {}
+
1546  fmt style(level) const {}
+
1547  public:
+
1548  std::string replace(
+
1549  const std::string&,
+
1550  const std::string&,
+
1551  const std::string&
+
1552  ) const
+
1553  {}
+
1554 
+
1555  std::string replace(
+
1556  const std::string&,
+
1557  const std::string&,
+
1558  const size_t
+
1559  ) const
+
1560  {}
+
1561 
+
1562  std::string format(
+
1563  std::string,
+
1564  const std::string&,
+
1565 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
+
1566  const std::string&,
+
1567 #endif
+
1568  const level&,
+
1569  const std::string&,
+
1570  const std::string&,
+
1571  const size_t
+
1572 #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
+
1573  ,
+
1574  const size_t
+
1575 #endif
+
1576  ) const
+
1577  {}
+
1578 
+
1579  void log(
+
1580  const level&,
+
1581  const std::string&,
+
1582  const std::string&, const std::string&, size_t
+
1583  ) const
+
1584  {}
+
1585 
+
1586  template<class In>
+
1587  void dump(
+
1588  const level&,
+
1589  const In, const In,
+
1590  const std::string&, const std::string&, size_t,
+
1591  const std::string&,
+
1592  const std::string
+
1593  ) const
+
1594  {}
+
1595 };
+
1596 #pragma GCC diagnostic pop
+
1597 #endif // WITH_CLUTCHLOG
+
1598 
+
1599 #endif // CLUTCHLOG_H
+
friend std::ostream & operator<<(std::ostream &os, const std::tuple< fg, bg, typo > &fbs)
Output stream operator for a 3-tuple of 16-colors mode tags.
Definition: clutchlog.h:433
static std::string default_depth_mark
Default mark for stack depth.
Definition: clutchlog.h:249
-
std::string _format_log
Current format of the standard output.
Definition: clutchlog.h:503
-
std::map< level, fmt > _level_fmt
Dictionary of level identifier to their format.
Definition: clutchlog.h:501
-
void log(const level &stage, const std::string &what, const std::string &file, const std::string &func, size_t line) const
Print a log message IF the location matches the given one.
Definition: clutchlog.h:903
-
std::string str() const
Return the formatting code as a string.
Definition: clutchlog.h:423
-
void line(std::string line)
Set the regular expression filtering the line location.
Definition: clutchlog.h:633
+
std::string _format_log
Current format of the standard output.
Definition: clutchlog.h:887
+
color_16M(ground t, const std::string &srgb)
Hex triplet string constructor.
Definition: clutchlog.h:601
+
std::map< level, fmt > _level_fmt
Dictionary of level identifier to their format.
Definition: clutchlog.h:885
+
void log(const level &stage, const std::string &what, const std::string &file, const std::string &func, size_t line) const
Print a log message IF the location matches the given one.
Definition: clutchlog.h:1287
+
enum clutchlog::fmt::bg back
Background color.
+
std::string str() const
Return the formatting code as a string.
Definition: clutchlog.h:807
+
Foreground in 256-colors mode.
Definition: clutchlog.h:539
+
void line(std::string line)
Set the regular expression filtering the line location.
Definition: clutchlog.h:1017
+
friend std::ostream & operator<<(std::ostream &os, const color &c)
Print the actually encoded escaped color sequence on the given stream.
Definition: clutchlog.h:493
+
friend std::ostream & operator<<(std::ostream &os, const typo &s)
Output stream operator for a typo tag alone, in 16-colors mode.
Definition: clutchlog.h:455
static std::string dump_default_format
Default format of the comment line in file dump.
Definition: clutchlog.h:235
-
void out(std::ostream &out)
Set the output stream on which to print.
Definition: clutchlog.h:560
+
void out(std::ostream &out)
Set the output stream on which to print.
Definition: clutchlog.h:944
+
bool is_set() const
Returns true if the underying representation encodes an existing color.
Definition: clutchlog.h:623
+
fg_16M(const fg &)
Conversion constructor from 16-colors mode.
Definition: clutchlog.h:659
static std::string dump_default_sep
Default item separator for dump.
Definition: clutchlog.h:242
-
std::string format(std::string row, const std::string &what, const level &stage, const std::string &file, const std::string &func, const size_t line) const
Substitute all tags in the format string with the corresponding information and apply the style corre...
Definition: clutchlog.h:817
+
std::string format(std::string row, const std::string &what, const level &stage, const std::string &file, const std::string &func, const size_t line) const
Substitute all tags in the format string with the corresponding information and apply the style corre...
Definition: clutchlog.h:1201
+
Background in 256-colors mode.
Definition: clutchlog.h:556
#define CLUTCHLOG_DEFAULT_DEPTH_MARK
Compile-time default mark for stack depth.
Definition: clutchlog.h:246
static unsigned int default_strip_calls
Number of call stack levels to remove from depth display by default.
Definition: clutchlog.h:256
static size_t default_hfill_min
Default minimum width (number of characters) at which to fill for right-aligning the right part of me...
Definition: clutchlog.h:277
-
std::string replace(const std::string &form, const std::string &mark, const std::string &tag) const
Replace mark by tag in form.
Definition: clutchlog.h:741
-
enum clutchlog::fmt::bg back
Background color.
-
fg
Foreground color codes.
Definition: clutchlog.h:317
-
enum clutchlog::fmt::fg fore
Foreground color.
+
std::string replace(const std::string &form, const std::string &mark, const std::string &tag) const
Replace mark by tag in form.
Definition: clutchlog.h:1125
+
color_256(ground t)
Constructor.
Definition: clutchlog.h:518
+
clutchlog::fmt::bg_16M back_16M
Current background in 16M-colors mode.
+
Interface class for colors representation.
Definition: clutchlog.h:470
+
@ colors_16
16 colors mode.
+
background in 256-colors mode.
Definition: clutchlog.h:664
static char default_hfill_char
Default character used as a filling for right-align the right part of messages with "{hfill}".
Definition: clutchlog.h:263
-
bool matches
Everything is compatible.
Definition: clutchlog.h:668
+
bool matches
Everything is compatible.
Definition: clutchlog.h:1052
enum clutchlog::fmt::typo style
Typographic style.
-
void format_comment(const std::string &format)
Set the template string for dumps.
Definition: clutchlog.h:555
-
void file(std::string file)
Set the regular expression filtering the file location.
Definition: clutchlog.h:629
-
scope_t locate(const level &stage, const std::string &file, const std::string &func, const size_t line) const
Gather information on the current location of the call.
Definition: clutchlog.h:690
-
fmt()
&#160;Empty constructor, only useful for a no-op formatter.
Definition: clutchlog.h:352
-
void style(level stage, fmt style)
Set the style (color and typo) of the given log level, passing a fmt instance.
Definition: clutchlog.h:654
-
void threshold(level l)
Set the log level (below which logs are not printed) with an identifier.
Definition: clutchlog.h:606
-
level threshold() const
Get the log level below which logs are not printed.
Definition: clutchlog.h:610
+
Abstract base class for 16M colors objects (24-bits ANSI).
Definition: clutchlog.h:573
+
fg_256(const fg &)
Conversion constructor from 16-colors mode.
Definition: clutchlog.h:551
+
void format_comment(const std::string &format)
Set the template string for dumps.
Definition: clutchlog.h:939
+
bg_16M(const std::string &srgb)
Hex triplet string constructor.
Definition: clutchlog.h:684
+
void file(std::string file)
Set the regular expression filtering the file location.
Definition: clutchlog.h:1013
+
scope_t locate(const level &stage, const std::string &file, const std::string &func, const size_t line) const
Gather information on the current location of the call.
Definition: clutchlog.h:1074
+
clutchlog::fmt::fg_16M fore_16M
Current foreground in 16M-colors mode.
+
Abstract base class for 256 colors objects (8-bits ANSI).
Definition: clutchlog.h:509
+
fmt()
Empty constructor, only useful for a no-op formatter.
Definition: clutchlog.h:697
+
void style(level stage, fmt style)
Set the style (color and typo) of the given log level, passing a fmt instance.
Definition: clutchlog.h:1038
+
void threshold(level l)
Set the log level (below which logs are not printed) with an identifier.
Definition: clutchlog.h:990
+
level threshold() const
Get the log level below which logs are not printed.
Definition: clutchlog.h:994
+
virtual bool is_set() const =0
Should return true if the underying representation encodes an existing color.
level
Available log levels.
Definition: clutchlog.h:303
+
color_256(ground t, const short i)
Constructor.
Definition: clutchlog.h:525
+
std::ostream & print_on(std::ostream &os) const
Print the color index on the given stream.
Definition: clutchlog.h:531
+
color_16M(ground t)
Constructor.
Definition: clutchlog.h:582
static size_t default_hfill_max
Default maximum width (number of characters) for which to fill for right-aligning the right part of m...
Definition: clutchlog.h:275
-
scope_t()
Constructor.
Definition: clutchlog.h:678
-
std::regex _in_func
Current function location filter.
Definition: clutchlog.h:529
-
bg
Background color codes.
Definition: clutchlog.h:330
+
scope_t()
Constructor.
Definition: clutchlog.h:1062
+
std::regex _in_func
Current function location filter.
Definition: clutchlog.h:913
static std::string default_format
Default format of the messages.
Definition: clutchlog.h:213
+
bg_16M(short r, short g, short b)
Numeric triplet constructor.
Definition: clutchlog.h:676
static clutchlog & logger()
Get the logger instance.
Definition: clutchlog.h:296
-
void dump(const level &stage, const In container_begin, const In container_end, const std::string &file, const std::string &func, size_t line, const std::string &filename_template="dump_{n}.dat", const std::string sep=dump_default_sep) const
Dump a serializable container after a comment line with log information.
Definition: clutchlog.h:928
-
Color and style formatter for ANSI terminal escape sequences.
Definition: clutchlog.h:314
-
void func(std::string func)
Set the regular expression filtering the function location.
Definition: clutchlog.h:631
-
std::string format() const
Get the template string.
Definition: clutchlog.h:552
-
std::regex _in_file
Current file location filter.
Definition: clutchlog.h:527
-
void style(level stage, FMT... styles)
Set the style (color and typo) of the given log level.
Definition: clutchlog.h:652
-
level level_of(const std::string name)
Return the log level tag corresponding to the given pre-configured name.
Definition: clutchlog.h:618
-
const std::map< level, std::string > _level_word
Dictionary of level identifier to their string representation.
Definition: clutchlog.h:497
-
std::string operator()(const std::string &msg) const
Format the given string with the currently encoded format.
Definition: clutchlog.h:411
+
Foreground in 256-colors mode.
Definition: clutchlog.h:634
+
void dump(const level &stage, const In container_begin, const In container_end, const std::string &file, const std::string &func, size_t line, const std::string &filename_template="dump_{n}.dat", const std::string sep=dump_default_sep) const
Dump a serializable container after a comment line with log information.
Definition: clutchlog.h:1312
+
clutchlog::fmt::fg_256 fore_256
Current foreground in 256-colors mode.
+
enum clutchlog::fmt::fg fore
Foreground color.
+
enum clutchlog::fmt::color::ground type
Type of color (foreground or background).
+
Color and style formatter for ANSI terminal escape sequences.
Definition: clutchlog.h:366
+
short index
The encoded color index in 4-bits ANSI.
Definition: clutchlog.h:513
+
bg_256()
Empty constructor: no color.
Definition: clutchlog.h:558
+
void func(std::string func)
Set the regular expression filtering the function location.
Definition: clutchlog.h:1015
+
std::string format() const
Get the template string.
Definition: clutchlog.h:936
+
std::regex _in_file
Current file location filter.
Definition: clutchlog.h:911
+
void style(level stage, FMT... styles)
Set the style (color and typo) of the given log level.
Definition: clutchlog.h:1036
+
bg_256(const bg &)
Conversion constructor from 16-colors mode.
Definition: clutchlog.h:568
+
fg_16M()
Empty constructor: no color.
Definition: clutchlog.h:636
+
level level_of(const std::string name)
Return the log level tag corresponding to the given pre-configured name.
Definition: clutchlog.h:1002
+
const std::map< level, std::string > _level_word
Dictionary of level identifier to their string representation.
Definition: clutchlog.h:881
+
std::string operator()(const std::string &msg) const
Format the given string with the currently encoded format.
Definition: clutchlog.h:795
+
color_16M(ground t, short r, short g, short b)
Numeric triplet constructor.
Definition: clutchlog.h:591
+
std::ostream & print_on(std::ostream &os) const
Print the color RGB triplet on the given stream.
Definition: clutchlog.h:626
+
bg
Background color codes.
Definition: clutchlog.h:411
#define CLUTCHLOG_DEFAULT_FORMAT
Compile-time default format of the messages (debug mode: with absolute location).
Definition: clutchlog.h:198
-
std::regex _in_line
Current line location filter.
Definition: clutchlog.h:531
-
std::string replace(const std::string &form, const std::string &mark, const size_t tag) const
Replace mark by tag in form, converting tag to its string representation first.
Definition: clutchlog.h:806
-
std::string format_comment() const
Get the template string for dumps.
Definition: clutchlog.h:557
-
std::string _format_dump
Current format of the file output.
Definition: clutchlog.h:505
+
std::regex _in_line
Current line location filter.
Definition: clutchlog.h:915
+
fg_256(const short f)
Constructor.
Definition: clutchlog.h:546
+
@ colors_256
256 colors mode.
+
enum clutchlog::fmt::ansi mode
Current ANSI color mode.
+
std::string replace(const std::string &form, const std::string &mark, const size_t tag) const
Replace mark by tag in form, converting tag to its string representation first.
Definition: clutchlog.h:1190
+
std::string format_comment() const
Get the template string for dumps.
Definition: clutchlog.h:941
+
fg_256()
Empty constructor: no color.
Definition: clutchlog.h:541
+
@ colors_16M
16 millions ("true") colors mode.
+
std::string _format_dump
Current format of the file output.
Definition: clutchlog.h:889
#define CLUTCHDUMP_DEFAULT_SEP
Compile-time default item separator for dump.
Definition: clutchlog.h:239
-
Structure holding a location matching.
Definition: clutchlog.h:666
+
bg_256(const short b)
Constructor.
Definition: clutchlog.h:563
+
ground
Codes for representing foreground or background.
Definition: clutchlog.h:474
+
Structure holding a location matching.
Definition: clutchlog.h:1050
#define CLUTCHLOG_DEFAULT_HFILL_MARK
Character used as a filling for right-align the right part of messages with "{hfill}".
Definition: clutchlog.h:260
-
std::ostream & print_on(std::ostream &os) const
Print the currently encoded format escape code on the given output stream.
Definition: clutchlog.h:366
-
std::ostream * _out
Standard output.
Definition: clutchlog.h:517
-
std::ostream & out()
Get the output stream on which to print.
Definition: clutchlog.h:562
-
void threshold(const std::string &l)
Set the log level (below which logs are not printed) with a string.
Definition: clutchlog.h:608
-
const std::map< std::string, level > & levels() const
Get the map of available log levels string representations toward their identifier....
Definition: clutchlog.h:612
-
size_t _strip_calls
Current number of call stack levels to remove from depth display.
Definition: clutchlog.h:495
-
level stage
Current log level.
Definition: clutchlog.h:670
-
bool there
Location is compatible.
Definition: clutchlog.h:676
+
std::ostream & print_on(std::ostream &os) const
Print the currently encoded format escape code on the given output stream.
Definition: clutchlog.h:746
+
bool is_set() const
Returns true if the underying representation encodes an existing color.
Definition: clutchlog.h:528
+
std::ostream * _out
Standard output.
Definition: clutchlog.h:901
+
std::ostream & out()
Get the output stream on which to print.
Definition: clutchlog.h:946
+
void threshold(const std::string &l)
Set the log level (below which logs are not printed) with a string.
Definition: clutchlog.h:992
+
virtual std::ostream & print_on(std::ostream &os) const =0
Should print the underlying representation on the given stream.
+
const std::map< std::string, level > & levels() const
Get the map of available log levels string representations toward their identifier....
Definition: clutchlog.h:996
+
size_t _strip_calls
Current number of call stack levels to remove from depth display.
Definition: clutchlog.h:879
+
level stage
Current log level.
Definition: clutchlog.h:1054
+
bool there
Location is compatible.
Definition: clutchlog.h:1060
+
fg_16M(const std::string &srgb)
Hex triplet string constructor.
Definition: clutchlog.h:654
#define CLUTCHLOG_STRIP_CALLS
Compile-time number of call stack levels to remove from depth display by default.
Definition: clutchlog.h:253
-
friend std::ostream & operator<<(std::ostream &os, const fmt &fmt)
Output stream overload.
Definition: clutchlog.h:396
-
std::map< std::string, level > _word_level
Dictionary of level string to their identifier.
Definition: clutchlog.h:499
-
level _stage
Current log level.
Definition: clutchlog.h:525
-
fmt style(level stage) const
Get the configured fmt instance of the given log level.
Definition: clutchlog.h:656
-
typo
Typographic style codes.
Definition: clutchlog.h:343
-
void location(const std::string &in_file, const std::string &in_function=".*", const std::string &in_line=".*")
Set the regular expressions filtering the location.
Definition: clutchlog.h:636
+
friend std::ostream & operator<<(std::ostream &os, const fmt &fmt)
Output stream overload.
Definition: clutchlog.h:780
+
bg_16M(const bg &)
Conversion constructor from 16-colors mode.
Definition: clutchlog.h:689
+
bg_16M()
Empty constructor: no color.
Definition: clutchlog.h:666
+
std::map< std::string, level > _word_level
Dictionary of level string to their identifier.
Definition: clutchlog.h:883
+
level _stage
Current log level.
Definition: clutchlog.h:909
+
fmt style(level stage) const
Get the configured fmt instance of the given log level.
Definition: clutchlog.h:1040
+
typo
Typographic style codes.
Definition: clutchlog.h:379
+
void location(const std::string &in_file, const std::string &in_function=".*", const std::string &in_line=".*")
Set the regular expressions filtering the location.
Definition: clutchlog.h:1020
#define CLUTCHLOG_HAVE_UNIX_SYSINFO
True if POSIX headers necessary for stack depth management are available.
Definition: clutchlog.h:33
The single class which holds everything.
Definition: clutchlog.h:177
+
ansi
ANSI code configuring the available number of colors.
Definition: clutchlog.h:369
+
fg_16M(short r, short g, short b)
Numeric triplet constructor.
Definition: clutchlog.h:646
+
fg
Foreground color codes.
Definition: clutchlog.h:390
+
short red
The encoded RGB indices.
Definition: clutchlog.h:577
#define CLUTCHDUMP_DEFAULT_FORMAT
Compile-time default format of the comment line in file dump.
Definition: clutchlog.h:221
+
color(ansi a, ground g)
Constructor.
Definition: clutchlog.h:484
+
clutchlog::fmt::bg_256 back_256
Current background in 256-colors mode.
-

tests → clutchlog Relation

File in testsIncludes file in clutchlog
t-assert.cppclutchlog.h
t-color.cppclutchlog.h
t-demo.cppclutchlog.h
t-dump.cppclutchlog.h
t-log.cppclutchlog.h
t-one-line-if.cppclutchlog.h
+

tests → clutchlog Relation

File in testsIncludes file in clutchlog
t-assert.cppclutchlog.h
t-color.cppclutchlog.h
t-color16M.cppclutchlog.h
t-color256.cppclutchlog.h
t-demo.cppclutchlog.h
t-dump.cppclutchlog.h
t-fmt-constructors.cppclutchlog.h
t-log.cppclutchlog.h
t-one-line-if.cppclutchlog.h
diff --git a/docs/files_dup.js b/docs/files_dup.js index 21fd2bb..87f1b4c 100644 --- a/docs/files_dup.js +++ b/docs/files_dup.js @@ -3,8 +3,11 @@ var files_dup = [ "clutchlog.h", "clutchlog_8h.html", "clutchlog_8h" ], [ "t-assert.cpp", "t-assert_8cpp_source.html", null ], [ "t-color.cpp", "t-color_8cpp_source.html", null ], + [ "t-color16M.cpp", "t-color16_m_8cpp_source.html", null ], + [ "t-color256.cpp", "t-color256_8cpp_source.html", null ], [ "t-demo.cpp", "t-demo_8cpp_source.html", null ], [ "t-dump.cpp", "t-dump_8cpp_source.html", null ], + [ "t-fmt-constructors.cpp", "t-fmt-constructors_8cpp_source.html", null ], [ "t-log.cpp", "t-log_8cpp_source.html", null ], [ "t-one-line-if.cpp", "t-one-line-if_8cpp_source.html", null ] ]; \ No newline at end of file diff --git a/docs/functions.html b/docs/functions.html index 1177343..596e2c3 100644 --- a/docs/functions.html +++ b/docs/functions.html @@ -28,7 +28,7 @@ Logo
clutchlog -  0.12 +  0.13
@@ -123,12 +123,44 @@ $(document).ready(function(){initNavTree('functions.html',''); initResizable(); +

- a -

+ +

- b -

+ + +

- c -

@@ -166,7 +198,13 @@ $(document).ready(function(){initNavTree('functions.html',''); initResizable();

- f -

+

- g -

+ + +

- i -

+ +

- l -

@@ -229,24 +295,31 @@ $(document).ready(function(){initNavTree('functions.html',''); initResizable(); : clutchlog::fmt
  • operator<< -: clutchlog::fmt +: clutchlog::fmt::color +, clutchlog::fmt
  • out() -: clutchlog +: clutchlog
  • - p -

    - r -

    @@ -275,6 +348,9 @@ $(document).ready(function(){initNavTree('functions.html',''); initResizable();
  • threshold() : clutchlog
  • +
  • type +: clutchlog::fmt::color +
  • typo : clutchlog::fmt
  • diff --git a/docs/functions_enum.html b/docs/functions_enum.html index 87885b9..4eb658e 100644 --- a/docs/functions_enum.html +++ b/docs/functions_enum.html @@ -28,7 +28,7 @@ Logo
    clutchlog -  0.12 +  0.13
    @@ -85,11 +85,17 @@ $(document).ready(function(){initNavTree('functions_enum.html',''); initResizabl
     
    diff --git a/docs/globals.html b/docs/globals.html index 12bc633..7576651 100644 --- a/docs/globals.html +++ b/docs/globals.html @@ -28,7 +28,7 @@ Logo
    clutchlog -  0.12 +  0.13
    diff --git a/docs/globals_defs.html b/docs/globals_defs.html index 0dce76c..3e24701 100644 --- a/docs/globals_defs.html +++ b/docs/globals_defs.html @@ -28,7 +28,7 @@ Logo
    clutchlog -  0.12 +  0.13
    diff --git a/docs/graph_legend.html b/docs/graph_legend.html index 3a72dae..065a508 100644 --- a/docs/graph_legend.html +++ b/docs/graph_legend.html @@ -28,7 +28,7 @@ Logo
    clutchlog -  0.12 +  0.13
    diff --git a/docs/group___default_config.html b/docs/group___default_config.html index 61727bf..fef6468 100644 --- a/docs/group___default_config.html +++ b/docs/group___default_config.html @@ -28,7 +28,7 @@ Logo
    clutchlog -  0.12 +  0.13
    diff --git a/docs/group___formating.html b/docs/group___formating.html index 5883b58..22053f3 100644 --- a/docs/group___formating.html +++ b/docs/group___formating.html @@ -28,7 +28,7 @@ Logo
    clutchlog -  0.12 +  0.13
    diff --git a/docs/group___formating.js b/docs/group___formating.js index 4c17423..2d68224 100644 --- a/docs/group___formating.js +++ b/docs/group___formating.js @@ -8,34 +8,35 @@ var group___formating = [ "fmt", "classclutchlog_1_1fmt.html#a65856874070ec0865b3a5b9aeb0e4f3d", null ], [ "fmt", "classclutchlog_1_1fmt.html#a99b3a05ddf6fa341cee6cb1e5dffc159", null ], [ "fmt", "classclutchlog_1_1fmt.html#aeea73b0239bf73ebc8ee84c1e6d278e2", null ], + [ "fmt", "classclutchlog_1_1fmt.html#a04f3ba5f6fe81955dca4492a6d259f1c", null ], + [ "fmt", "classclutchlog_1_1fmt.html#ac49c883e3dd17832749cc092b74a9f56", null ], + [ "fmt", "classclutchlog_1_1fmt.html#a194201eb8a400ef13df3e833b8788cdc", null ], + [ "fmt", "classclutchlog_1_1fmt.html#a00feba2b1539529df70e39d615a05941", null ], + [ "fmt", "classclutchlog_1_1fmt.html#a357c93593867f67d9fef562ca07c7dcc", null ], + [ "fmt", "classclutchlog_1_1fmt.html#a2df8f77f58dc9272c94982c4d2275581", null ], + [ "fmt", "classclutchlog_1_1fmt.html#a63b29eb5862a30a194b0256f2ee554a6", null ], + [ "fmt", "classclutchlog_1_1fmt.html#a9458703ab8a3c9fbc6b801011b43f16d", null ], + [ "fmt", "classclutchlog_1_1fmt.html#a0923d7d400f6753d4dae124b71eb5023", null ], + [ "fmt", "classclutchlog_1_1fmt.html#a506718883842dbce3659f42cdf79e52c", null ], + [ "fmt", "classclutchlog_1_1fmt.html#a6d1cc4abe822a569a2624b0829de5dd0", null ], [ "print_on", "classclutchlog_1_1fmt.html#a0b607e343b6813b99eafca1fdfec9cd0", null ], [ "operator()", "classclutchlog_1_1fmt.html#afeaedd18298498d1dcfcc15f5f17ac3c", null ], [ "str", "classclutchlog_1_1fmt.html#ab588e04e982b0b26ec979773d51ad41b", null ], + [ "operator<<", "group__colors16.html#ga5a697f5ad3326ea25b139e25252b4cf7", null ], + [ "operator<<", "group__colors16.html#ga379b0af834c7c561edc5c1e3a3427a33", null ], [ "operator<<", "classclutchlog_1_1fmt.html#a96849ba427feac3a2eeaa1165e3845da", null ], - [ "fore", "classclutchlog_1_1fmt.html#a8307a848fcf9ed929435b3e1f2b53401", null ], - [ "back", "classclutchlog_1_1fmt.html#a86696b20e5b31c96ba592926efb324f3", null ], + [ "mode", "classclutchlog_1_1fmt.html#a0aa57cdd56ccc79c7750921ab534b205", null ], [ "style", "classclutchlog_1_1fmt.html#a2bb0fde65fcd264393e102314dd1610b", null ], - [ "fg", "classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0", [ - [ "black", "classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0a1ffd9e753c8054cc61456ac7fac1ac89", null ], - [ "red", "classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0abda9643ac6601722a28f238714274da4", null ], - [ "green", "classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0a9f27410725ab8cc8854a2769c7a516b8", null ], - [ "yellow", "classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0ad487dd0b55dfcacdd920ccbdaeafa351", null ], - [ "blue", "classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0a48d6215903dff56238e52e8891380c8f", null ], - [ "magenta", "classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0a4c2a4a7078da0ac6733464eacfd00f86", null ], - [ "cyan", "classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0a6411532ba4971f378391776a9db629d3", null ], - [ "white", "classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0ad508fe45cecaf653904a0e774084bb5c", null ], - [ "none", "classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0a334c4a4c42fdb79d7ebc3e73b517e6f8", null ] - ] ], - [ "bg", "classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1e", [ - [ "black", "classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1ea1ffd9e753c8054cc61456ac7fac1ac89", null ], - [ "red", "classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1eabda9643ac6601722a28f238714274da4", null ], - [ "green", "classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1ea9f27410725ab8cc8854a2769c7a516b8", null ], - [ "yellow", "classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1ead487dd0b55dfcacdd920ccbdaeafa351", null ], - [ "blue", "classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1ea48d6215903dff56238e52e8891380c8f", null ], - [ "magenta", "classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1ea4c2a4a7078da0ac6733464eacfd00f86", null ], - [ "cyan", "classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1ea6411532ba4971f378391776a9db629d3", null ], - [ "white", "classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1ead508fe45cecaf653904a0e774084bb5c", null ], - [ "none", "classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1ea334c4a4c42fdb79d7ebc3e73b517e6f8", null ] + [ "fore", "group__colors16.html#ga8307a848fcf9ed929435b3e1f2b53401", null ], + [ "back", "group__colors16.html#ga86696b20e5b31c96ba592926efb324f3", null ], + [ "fore_256", "group__colors256__16_m.html#gad98fbe84ef338ded8425d56955825a2c", null ], + [ "back_256", "group__colors256__16_m.html#ga1d687af385957846034568c3a62d4ef0", null ], + [ "fore_16M", "group__colors256__16_m.html#ga626c99eb11d1718d7a2a8bb3f079e6de", null ], + [ "back_16M", "group__colors256__16_m.html#gaa2fcbb402dc2426d3720b8bc78a80ec0", null ], + [ "ansi", "classclutchlog_1_1fmt.html#a4d0b3c87ba935addf3581b000c0d7502", [ + [ "colors_16", "classclutchlog_1_1fmt.html#a4d0b3c87ba935addf3581b000c0d7502a1e7cced329549fc4c2393381f068062e", null ], + [ "colors_256", "classclutchlog_1_1fmt.html#a4d0b3c87ba935addf3581b000c0d7502a7a3c32a8827eb17435511b4c7a429749", null ], + [ "colors_16M", "classclutchlog_1_1fmt.html#a4d0b3c87ba935addf3581b000c0d7502a1844e5aae3a3eefc500c545e3c35bcfa", null ] ] ], [ "typo", "classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89", [ [ "reset", "classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89a86266ee937d97f812a8e57d22b62ee29", null ], @@ -43,6 +44,44 @@ var group___formating = [ "underline", "classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89a6dc7b4483f8c2c701a48e42db552806d", null ], [ "inverse", "classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89aa91c78e040f7b9d158f381e197f8beb4", null ], [ "none", "classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89a334c4a4c42fdb79d7ebc3e73b517e6f8", null ] + ] ], + [ "fg", "group__colors16.html#ga4662a3ec3577c6a575a2c734636ed8a0", [ + [ "black", "group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0a1ffd9e753c8054cc61456ac7fac1ac89", null ], + [ "red", "group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0abda9643ac6601722a28f238714274da4", null ], + [ "green", "group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0a9f27410725ab8cc8854a2769c7a516b8", null ], + [ "yellow", "group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0ad487dd0b55dfcacdd920ccbdaeafa351", null ], + [ "blue", "group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0a48d6215903dff56238e52e8891380c8f", null ], + [ "magenta", "group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0a4c2a4a7078da0ac6733464eacfd00f86", null ], + [ "cyan", "group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0a6411532ba4971f378391776a9db629d3", null ], + [ "white", "group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0ad508fe45cecaf653904a0e774084bb5c", null ], + [ "bright_black", "group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0a74474ae20bf3ef3bce6fd679194ce383", null ], + [ "bright_red", "group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0a8b84c6e788e91a3a45b9dabedb160590", null ], + [ "bright_green", "group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0abd5b4652dffd84bab66529361d0c4974", null ], + [ "bright_yellow", "group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0a75dd76d162b9554ec8b63736bc22d93e", null ], + [ "bright_blue", "group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0ac5b47880b4b2ec37179078d63a85def3", null ], + [ "bright_magenta", "group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0a37553b57ad1d7f61b0c51f5a535f72bf", null ], + [ "bright_cyan", "group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0acc69f9955c2bf916bb9a83f38141432f", null ], + [ "bright_white", "group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0ada7527acf78cb4e7b582e8163a1f642a", null ], + [ "none", "group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0a334c4a4c42fdb79d7ebc3e73b517e6f8", null ] + ] ], + [ "bg", "group__colors16.html#ga1cf3e27e4041250ffea0a6d58010da1e", [ + [ "black", "group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1ea1ffd9e753c8054cc61456ac7fac1ac89", null ], + [ "red", "group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1eabda9643ac6601722a28f238714274da4", null ], + [ "green", "group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1ea9f27410725ab8cc8854a2769c7a516b8", null ], + [ "yellow", "group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1ead487dd0b55dfcacdd920ccbdaeafa351", null ], + [ "blue", "group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1ea48d6215903dff56238e52e8891380c8f", null ], + [ "magenta", "group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1ea4c2a4a7078da0ac6733464eacfd00f86", null ], + [ "cyan", "group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1ea6411532ba4971f378391776a9db629d3", null ], + [ "white", "group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1ead508fe45cecaf653904a0e774084bb5c", null ], + [ "bright_black", "group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1ea74474ae20bf3ef3bce6fd679194ce383", null ], + [ "bright_red", "group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1ea8b84c6e788e91a3a45b9dabedb160590", null ], + [ "bright_green", "group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1eabd5b4652dffd84bab66529361d0c4974", null ], + [ "bright_yellow", "group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1ea75dd76d162b9554ec8b63736bc22d93e", null ], + [ "bright_blue", "group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1eac5b47880b4b2ec37179078d63a85def3", null ], + [ "bright_magenta", "group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1ea37553b57ad1d7f61b0c51f5a535f72bf", null ], + [ "bright_cyan", "group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1eacc69f9955c2bf916bb9a83f38141432f", null ], + [ "bright_white", "group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1eada7527acf78cb4e7b582e8163a1f642a", null ], + [ "none", "group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1ea334c4a4c42fdb79d7ebc3e73b517e6f8", null ] ] ] ] ] ]; \ No newline at end of file diff --git a/docs/group___main.html b/docs/group___main.html index 1d2cd7b..2dd2192 100644 --- a/docs/group___main.html +++ b/docs/group___main.html @@ -28,7 +28,7 @@ Logo
    clutchlog -  0.12 +  0.13
    diff --git a/docs/group___main.js b/docs/group___main.js index 06f185d..21f8906 100644 --- a/docs/group___main.js +++ b/docs/group___main.js @@ -1,11 +1,11 @@ var group___main = [ [ "clutchlog", "classclutchlog.html", [ - [ "System-dependent stack depth", "index.html#autotoc_md22", null ], - [ "System-dependent horizontal fill", "index.html#autotoc_md23", null ], - [ "Dependencies", "index.html#autotoc_md24", null ], - [ "Variable names within the CLUTCHLOG macro", "index.html#autotoc_md25", null ], - [ "Features", "index.html#autotoc_md26", null ], + [ "System-dependent stack depth", "index.html#autotoc_md24", null ], + [ "System-dependent horizontal fill", "index.html#autotoc_md25", null ], + [ "Dependencies", "index.html#autotoc_md26", null ], + [ "Variable names within the CLUTCHLOG macro", "index.html#autotoc_md27", null ], + [ "Features", "index.html#autotoc_md28", null ], [ "scope_t", "structclutchlog_1_1scope__t.html", [ [ "scope_t", "structclutchlog_1_1scope__t.html#a0f1d865ffcf17f215e5559cdd2690572", null ], [ "matches", "structclutchlog_1_1scope__t.html#ae6c0e4ed20db797124ed1e5faa033ad9", null ], diff --git a/docs/group___use_macros.html b/docs/group___use_macros.html index cab543f..95323b7 100644 --- a/docs/group___use_macros.html +++ b/docs/group___use_macros.html @@ -28,7 +28,7 @@ Logo
    clutchlog -  0.12 +  0.13
    diff --git a/docs/group__colors16.html b/docs/group__colors16.html new file mode 100644 index 0000000..1a580c2 --- /dev/null +++ b/docs/group__colors16.html @@ -0,0 +1,185 @@ + + + + + + + +clutchlog: Colors management in 16 colors mode (4-bits ANSI). + + + + + + + + + + + + + + +
    +
    + + + + + + + +
    +
    clutchlog +  0.13 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    Colors management in 16 colors mode (4-bits ANSI).
    +
    +
    +

    Detailed Description

    + + + + + + + + +

    +Enumerations

    enum  clutchlog::fmt::fg {
    +  black = 30, +red = 31, +green = 32, +yellow = 33, +
    +  blue = 34, +magenta = 35, +cyan = 36, +white = 37, +
    +  bright_black = 90, +bright_red = 91, +bright_green = 92, +bright_yellow = 93, +
    +  bright_blue = 94, +bright_magenta = 95, +bright_cyan = 96, +bright_white = 97, +
    +  none = -1 +
    + }
     Foreground color codes.
     
    enum  clutchlog::fmt::bg {
    +  black = 40, +red = 41, +green = 42, +yellow = 43, +
    +  blue = 44, +magenta = 45, +cyan = 46, +white = 47, +
    +  bright_black = 100, +bright_red = 101, +bright_green = 102, +bright_yellow = 103, +
    +  bright_blue = 104, +bright_magenta = 105, +bright_cyan = 106, +bright_white = 107, +
    +  none = -1 +
    + }
     Background color codes.
     
    + + + + + + + +

    +Variables

    +enum clutchlog::fmt::fg clutchlog::fmt::fore
     Foreground color.
     
    +enum clutchlog::fmt::bg clutchlog::fmt::back
     Background color.
     
    + + + + + + + +

    +Friends

    +std::ostream & clutchlog::fmt::operator<< (std::ostream &os, const std::tuple< fg, bg, typo > &fbs)
     Output stream operator for a 3-tuple of 16-colors mode tags.
     
    +std::ostream & clutchlog::fmt::operator<< (std::ostream &os, const typo &s)
     Output stream operator for a typo tag alone, in 16-colors mode.
     
    +
    +
    + + + + diff --git a/docs/group__colors16.js b/docs/group__colors16.js new file mode 100644 index 0000000..e5f762e --- /dev/null +++ b/docs/group__colors16.js @@ -0,0 +1,9 @@ +var group__colors16 = +[ + [ "fg", "group__colors16.html#ga4662a3ec3577c6a575a2c734636ed8a0", null ], + [ "bg", "group__colors16.html#ga1cf3e27e4041250ffea0a6d58010da1e", null ], + [ "fore", "group__colors16.html#ga8307a848fcf9ed929435b3e1f2b53401", null ], + [ "back", "group__colors16.html#ga86696b20e5b31c96ba592926efb324f3", null ], + [ "operator<<", "group__colors16.html#ga5a697f5ad3326ea25b139e25252b4cf7", null ], + [ "operator<<", "group__colors16.html#ga379b0af834c7c561edc5c1e3a3427a33", null ] +]; \ No newline at end of file diff --git a/docs/group__colors256__16_m.html b/docs/group__colors256__16_m.html new file mode 100644 index 0000000..0005ba1 --- /dev/null +++ b/docs/group__colors256__16_m.html @@ -0,0 +1,150 @@ + + + + + + + +clutchlog: Internal colors management in 256 and 16M colors modes. + + + + + + + + + + + + + + +
    +
    + + + + + + + +
    +
    clutchlog +  0.13 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    Internal colors management in 256 and 16M colors modes.
    +
    +
    +

    Detailed Description

    + + + + + + + + + + + + + + + + + + + + + + + +

    +Classes

    struct  clutchlog::fmt::color
     Interface class for colors representation. More...
     
    struct  clutchlog::fmt::color_256
     Abstract base class for 256 colors objects (8-bits ANSI). More...
     
    struct  clutchlog::fmt::fg_256
     Foreground in 256-colors mode. More...
     
    struct  clutchlog::fmt::bg_256
     Background in 256-colors mode. More...
     
    struct  clutchlog::fmt::color_16M
     Abstract base class for 16M colors objects (24-bits ANSI). More...
     
    struct  clutchlog::fmt::fg_16M
     Foreground in 256-colors mode. More...
     
    struct  clutchlog::fmt::bg_16M
     background in 256-colors mode. More...
     
    + + + + + + + + + + + + + +

    +Variables

    +clutchlog::fmt::fg_256 clutchlog::fmt::fore_256
     Current foreground in 256-colors mode.
     
    +clutchlog::fmt::bg_256 clutchlog::fmt::back_256
     Current background in 256-colors mode.
     
    +clutchlog::fmt::fg_16M clutchlog::fmt::fore_16M
     Current foreground in 16M-colors mode.
     
    +clutchlog::fmt::bg_16M clutchlog::fmt::back_16M
     Current background in 16M-colors mode.
     
    +
    +
    + + + + diff --git a/docs/group__colors256__16_m.js b/docs/group__colors256__16_m.js new file mode 100644 index 0000000..1eda342 --- /dev/null +++ b/docs/group__colors256__16_m.js @@ -0,0 +1,58 @@ +var group__colors256__16_m = +[ + [ "color", "structclutchlog_1_1fmt_1_1color.html", [ + [ "color", "structclutchlog_1_1fmt_1_1color.html#a741d0165287350d8fcacb1f472ce5dac", null ], + [ "is_set", "structclutchlog_1_1fmt_1_1color.html#a96d7161ef1e7cc631ae670cd3f364603", null ], + [ "print_on", "structclutchlog_1_1fmt_1_1color.html#aa75e958436afe333924b6db3e5f0821f", null ], + [ "operator<<", "structclutchlog_1_1fmt_1_1color.html#a826e3d3eba925608442439d6bc3a95a6", null ], + [ "mode", "structclutchlog_1_1fmt_1_1color.html#aacbc3cd9447fdb7d51e02b29b5028a6b", null ], + [ "type", "structclutchlog_1_1fmt_1_1color.html#a3fd18c290567bd5c4971663a1aed12ae", null ], + [ "ground", "structclutchlog_1_1fmt_1_1color.html#ad4d10c015b3af3cc10d1cf40fe38e4f0", [ + [ "fore", "structclutchlog_1_1fmt_1_1color.html#ad4d10c015b3af3cc10d1cf40fe38e4f0ae64e4c4fee28f9ca7301e4c7ff598e67", null ], + [ "back", "structclutchlog_1_1fmt_1_1color.html#ad4d10c015b3af3cc10d1cf40fe38e4f0a469bba0a564235dfceede42db14f17b0", null ] + ] ] + ] ], + [ "color_256", "structclutchlog_1_1fmt_1_1color__256.html", [ + [ "color_256", "structclutchlog_1_1fmt_1_1color__256.html#a12fdff3c5c4edbf952aaa31519f0171c", null ], + [ "color_256", "structclutchlog_1_1fmt_1_1color__256.html#a1b68065b35141c018b33c3f2c45f5726", null ], + [ "is_set", "structclutchlog_1_1fmt_1_1color__256.html#ad79557682cec1c053dda258581972111", null ], + [ "print_on", "structclutchlog_1_1fmt_1_1color__256.html#aaae6106a11eddade981172324a43df68", null ], + [ "index", "structclutchlog_1_1fmt_1_1color__256.html#a8e0b13d6bad87c83c3465524a5d33988", null ] + ] ], + [ "fg_256", "structclutchlog_1_1fmt_1_1fg__256.html", [ + [ "fg_256", "structclutchlog_1_1fmt_1_1fg__256.html#a97c241e9f80c63d269953cc525a72c7a", null ], + [ "fg_256", "structclutchlog_1_1fmt_1_1fg__256.html#a6df3d848db0e55c79709fb4565cbfd59", null ], + [ "fg_256", "structclutchlog_1_1fmt_1_1fg__256.html#a501fff36520f20ba4973ba3848fb9c23", null ] + ] ], + [ "bg_256", "structclutchlog_1_1fmt_1_1bg__256.html", [ + [ "bg_256", "structclutchlog_1_1fmt_1_1bg__256.html#a0d244a542b6b98a373f8b1f9e92a6a90", null ], + [ "bg_256", "structclutchlog_1_1fmt_1_1bg__256.html#a83c663b1a9f00ba7ba7649c9c5605fad", null ], + [ "bg_256", "structclutchlog_1_1fmt_1_1bg__256.html#a096d302be7373acaaf225644683408bd", null ] + ] ], + [ "color_16M", "structclutchlog_1_1fmt_1_1color__16_m.html", [ + [ "color_16M", "structclutchlog_1_1fmt_1_1color__16_m.html#aea10e881fb9b570267f5751fb67c4282", null ], + [ "color_16M", "structclutchlog_1_1fmt_1_1color__16_m.html#a36d9cf42044fec34b7858142d86137d3", null ], + [ "color_16M", "structclutchlog_1_1fmt_1_1color__16_m.html#a55e39e7eb3ced3095c00914eff52470c", null ], + [ "is_set", "structclutchlog_1_1fmt_1_1color__16_m.html#a780c11e42bb140732ffd37cf4eef9e1d", null ], + [ "print_on", "structclutchlog_1_1fmt_1_1color__16_m.html#a674910195e7bb14d78f0cf56c308a47e", null ], + [ "red", "structclutchlog_1_1fmt_1_1color__16_m.html#a19e1517a9afb75a4e6224f718ed11c61", null ], + [ "green", "structclutchlog_1_1fmt_1_1color__16_m.html#ac94eaa04e4f5de4ca6cfe7105ec1c4d4", null ], + [ "blue", "structclutchlog_1_1fmt_1_1color__16_m.html#aedcfa3e0597d9dd883b1783e931bb9af", null ] + ] ], + [ "fg_16M", "structclutchlog_1_1fmt_1_1fg__16_m.html", [ + [ "fg_16M", "structclutchlog_1_1fmt_1_1fg__16_m.html#a984525f33eb86b7f8b3e5d0874611194", null ], + [ "fg_16M", "structclutchlog_1_1fmt_1_1fg__16_m.html#a531b717b8d78a0a5929fa90d0a01d7e5", null ], + [ "fg_16M", "structclutchlog_1_1fmt_1_1fg__16_m.html#abc768d6b7c2139c14f210755108006d3", null ], + [ "fg_16M", "structclutchlog_1_1fmt_1_1fg__16_m.html#a9da40a4a7ff3b80f028f26322f59eba8", null ] + ] ], + [ "bg_16M", "structclutchlog_1_1fmt_1_1bg__16_m.html", [ + [ "bg_16M", "structclutchlog_1_1fmt_1_1bg__16_m.html#a363c314ab6a8aa22951b5500d7a78ad0", null ], + [ "bg_16M", "structclutchlog_1_1fmt_1_1bg__16_m.html#ace018922ae99f32b48bf5cacaec91501", null ], + [ "bg_16M", "structclutchlog_1_1fmt_1_1bg__16_m.html#adcd5bd1e69e76e3b36015cf687693c97", null ], + [ "bg_16M", "structclutchlog_1_1fmt_1_1bg__16_m.html#a68f8cb4ab78a1cfb3b7b8e1e95bee11d", null ] + ] ], + [ "fore_256", "group__colors256__16_m.html#gad98fbe84ef338ded8425d56955825a2c", null ], + [ "back_256", "group__colors256__16_m.html#ga1d687af385957846034568c3a62d4ef0", null ], + [ "fore_16M", "group__colors256__16_m.html#ga626c99eb11d1718d7a2a8bb3f079e6de", null ], + [ "back_16M", "group__colors256__16_m.html#gaa2fcbb402dc2426d3720b8bc78a80ec0", null ] +]; \ No newline at end of file diff --git a/docs/hierarchy.html b/docs/hierarchy.html new file mode 100644 index 0000000..b8983a2 --- /dev/null +++ b/docs/hierarchy.html @@ -0,0 +1,118 @@ + + + + + + + +clutchlog: Class Hierarchy + + + + + + + + + + + + + + +
    +
    + + + + + + + +
    +
    clutchlog +  0.13 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    Class Hierarchy
    +
    +
    +
    +

    Go to the graphical class hierarchy

    +This inheritance list is sorted roughly, but not completely, alphabetically:
    +
    [detail level 123]
    + + + + + + + + + + +
     CclutchlogThe single class which holds everything
     Cclutchlog::fmt::colorInterface class for colors representation
     Cclutchlog::fmt::color_16MAbstract base class for 16M colors objects (24-bits ANSI)
     Cclutchlog::fmt::bg_16MBackground in 256-colors mode
     Cclutchlog::fmt::fg_16MForeground in 256-colors mode
     Cclutchlog::fmt::color_256Abstract base class for 256 colors objects (8-bits ANSI)
     Cclutchlog::fmt::bg_256Background in 256-colors mode
     Cclutchlog::fmt::fg_256Foreground in 256-colors mode
     Cclutchlog::fmtColor and style formatter for ANSI terminal escape sequences
     Cclutchlog::scope_tStructure holding a location matching
    +
    +
    +
    + + + + diff --git a/docs/hierarchy.js b/docs/hierarchy.js new file mode 100644 index 0000000..b5046c4 --- /dev/null +++ b/docs/hierarchy.js @@ -0,0 +1,16 @@ +var hierarchy = +[ + [ "clutchlog", "classclutchlog.html", null ], + [ "clutchlog::fmt::color", "structclutchlog_1_1fmt_1_1color.html", [ + [ "clutchlog::fmt::color_16M", "structclutchlog_1_1fmt_1_1color__16_m.html", [ + [ "clutchlog::fmt::bg_16M", "structclutchlog_1_1fmt_1_1bg__16_m.html", null ], + [ "clutchlog::fmt::fg_16M", "structclutchlog_1_1fmt_1_1fg__16_m.html", null ] + ] ], + [ "clutchlog::fmt::color_256", "structclutchlog_1_1fmt_1_1color__256.html", [ + [ "clutchlog::fmt::bg_256", "structclutchlog_1_1fmt_1_1bg__256.html", null ], + [ "clutchlog::fmt::fg_256", "structclutchlog_1_1fmt_1_1fg__256.html", null ] + ] ] + ] ], + [ "clutchlog::fmt", "classclutchlog_1_1fmt.html", null ], + [ "clutchlog::scope_t", "structclutchlog_1_1scope__t.html", null ] +]; \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index b954dc8..38f626a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -5,7 +5,7 @@ -clutchlog: Clutchlog — versatile (de)clutchable logging +clutchlog: Clutchlog — versatile (de)clutchable spatial logging @@ -28,7 +28,7 @@ Logo
    clutchlog -  0.12 +  0.13
    @@ -85,7 +85,7 @@ $(document).ready(function(){initNavTree('index.html',''); initResizable(); });
    -
    Clutchlog — versatile (de)clutchable logging
    +
    Clutchlog — versatile (de)clutchable spatial logging
    -

    Clutchlog is a logging system that targets versatile debugging. It allows to (de)clutch messages for a given: log level, source code location or call stack depth.

    +

    Clutchlog is a spatial logging system that targets versatile debugging. It allows to (de)clutch messages for a given: log level, source code location or call stack depth.

    • Project page on Github
    • Documentation
    • @@ -239,21 +242,59 @@ Log Format

      Output style

      Output lines can be colored differently depending on the log level.

      // Print error messages in bold red:
      -
      log.style(clutchlog::level::error, // First, the log level.
      -
      clutchlog::fmt::fg::red, // Then the styles, in any order...
      -
      clutchlog::fmt::typo::bold);
      +
      log.style(level::error, // First, the log level.
      +
      fmt::fg::red, // Then the styles, in any order...
      +
      fmt::typo::bold);

      Or, if you want to declare some semantics beforehand:

      // Print warning messages in bold magenta:
      using fmt = clutchlog::fmt;
      fmt warn(fmt::fg::magenta, fmt::typo::bold);
      -
      log.style(clutchlog::level::warning, warn);
      +
      log.style(level::warning, warn);

      Note: this inserts a style marker at the very beginning of the line. If you add other styles later on the line, they will take precedence.

      +

      Colors can be specified in several different ways. The ANSI color mode will be automatically detected, depending on the types of arguments passed to styling functions:

        +
      • named tags from clutchlog::fmt::fg or clutchlog::fmt::bg will encode a 16-colors mode,
      • +
      • integers will encode a 256-colors mode,
      • +
      • numeric triplets or web hex strings will encode a 16 million ("true") colors mode,
      • +
      • clutchlog::fg::none and clutchlog::bg::none can be passed in all modes.
      • +
      +

      For example, all the following lines encode a bright red foreground for the critical level:

      log.style(level:critical,
      +
      fmt::fg::red); // 16-colors mode.
      +
      log.style(level:critical,
      +
      255); // 256-colors mode.
      +
      log.style(level:critical,
      +
      255,0,0); // 16M-colors mode.
      +
      log.style(level:critical,
      +
      "#ff0000"); // 16M-colors mode again.
      +

      You may use styling within the format message template itself, to add even more colors:

      using fmt = clutchlog::fmt;
      +
      std::ostringstream format;
      +
      fmt discreet(fmt::fg::blue);
      +
      format << "{level}: "
      +
      << discreet("{file}:") // Used as a function (inserts a reset at the end).
      +
      << fmt(fmt::fg::yellow) << "{line}" // Used as a tag (no reset inserted).
      +
      << fmt(fmt::typo::reset) << " {msg}" << std::endl; // This is a reset.
      +
      log.format(format.str());
      +

      Note: messages at the "critical", "error" and "warning" log levels are colored by default. You may want to set their style to none if you want to stay in control of inserted colors in the format template.

      +

      The horizontal filling line (the {hfill} tag) can be configured separately with clutchlog::hfill_style, for example:

      log.hfill_style(fmt::fg::black);
      +

      Note: this will actually reset any styling after the hfill, disabling any style you would have set for the whole message using clutchlog::format for the remaining of the message.

      +

      +Typographic Style

      +

      Available typographies:

      +
        +
      • reset (remove any style),
      • +
      • bold,
      • +
      • underline,
      • +
      • inverse,
      • +
      • none.
      • +
      +

      Typographic styles are always passed with the named tag (see clutchlog::fmt::typo), whatever the color mode.

      +

      +Colors

      +

      16-colors mode

      Using the clutchlog::fmt class, you can style:

      -

      Any of the three arguments may be passed, in any order, if an argument is omitted, it defaults to no color/style.

      +

      In 16-colors mode, any of the arguments may be passed, in any order, if an argument is omitted, it defaults to no color/style.

      Available colors are:

      • black,
      • @@ -264,49 +305,53 @@ Output style
      • magenta,
      • cyan,
      • white,
      • +
      • bright_black,
      • +
      • bright_red,
      • +
      • bright_green,
      • +
      • bright_yellow,
      • +
      • bright_blue,
      • +
      • bright_magenta,
      • +
      • bright_cyan,
      • +
      • bright_white,
      • none.
      -

      Available typographies:

      -
        -
      • reset (remove any style),
      • -
      • bold,
      • -
      • underline,
      • -
      • inverse,
      • -
      • none.
      • +

        Note: some terminals allow the user to configure the actual encoding of those colors. You may thus notice some difference with the expected rendering of the same colors encoded in the other modes. Use the other color modes if you want to fully control the actual color rendering.

        +

        256-colors mode

        +

        For 256-colors mode, colors are expected to be passed as integers in [-1,255] or the fg::none and bg::none tags.

        +

        In 256-colors mode, if you want to only encode the background color, you cannot just omit the foreground color, you have to bass a fg::none tag as first argument.

        +
        log.style(level::info, fg::none, 52); // No color over dark red.
        +
        log.style(level::info, fg::none, 52, typo::bold); // No color over bold dark red.
        +

        16 million colors mode (RGB)

        +

        For 16M-colors mode, colors can be encoded as:

          +
        • three integer arguments,
        • +
        • a "web color" hexadecimal triplet string, starting with a leading number sign (e.g. "#0055ff").
        • +
        • the fg::none and bg::none tags.
        -

        You may use styling within the format message template itself, to add even more colors:

        using fmt = clutchlog::fmt;
        -
        std::ostringstream format;
        -
        fmt discreet(fmt::fg::blue);
        -
        format << "{level}: "
        -
        << discreet("{file}:") // Used as a function (inserts a reset at the end).
        -
        << fmt(fmt::fg::yellow) << "{line}" // Used as a tag (no reset inserted).
        -
        << fmt(fmt::typo::reset) << " {msg}" << std::endl; // This is a reset.
        -
        log.format(format.str());
        -

        Note: messages at the "critical", "error" and "warning" log levels are colored by default. You may want to set their style to none if you want to stay in control of inserted colors in the format template.

        -

        The horizontal filling line (the {hfill} tag) can be configured separately with clutchlog::hfill_style, for example:

        log.hfill_style(clutchlog::fmt::fg::black);
        -

        Note: this will actually reset any styling after the hfill, disabling any style you would have set for the whole message using clutchlog::format for the remaining of the message.

        -

        +

        In 16M-colors mode, if you want to only encode the background color, you cannot just omit the foreground color, you have to pass a fg::none tag as first argument.

        +
        log.style(level::info, fg::none, 100,0,0); // No color over dark red.
        +
        log.style(level::info, fg::none, 100,0,0, typo::bold); // No color over bold dark red.
        +

        Advanced Usage

        -

        +

        More Output Configuration

        -

        +

        Dump Format

        The default format of the first line of comment added with the dump macro is "# [{name}] {level} in {func} (at depth {depth}) @ {file}:{line}". It can be edited with the format_comment method. If it is set to an empty string, then no comment line is added. The default can be modified at compile time with CLUTCHDUMP_DEFAULT_FORMAT.

        By default, the separator between items in the container is a new line. To change this behaviour, you can change CLUTCHDUMP_DEFAULT_SEP or call the low-level dump method.

        By default, and if CLUTCHDUMP_DEFAULT_FORMAT is not defined, clutchlog will not put the location-related tags in the message formats (i.e. {file} and {line}) when not in Debug builds.

        -

        +

        Stack Depth Mark

        The mark used with the {depth_marks} tag can be configured with the clutchlog::depth_mark method, and its default with the CLUTCHLOG_DEFAULT_DEPTH_MARK macro:

        log.depth_mark(CLUTCHLOG_DEFAULT_DEPTH_MARK); // Defaults to ">".
        -

        +

    Horizontal Filling

    The character used with the {hfill} tag can be configured wth the clutchlog::hfill_mark method, and its default with the CLUTCHLOG_DEFAULT_HFILL_MARK macro:

    log.hfill_mark(CLUTCHLOG_DEFAULT_HFILL_MARK); // Defaults to '.'.

    Clutchlog measures the width of the standard error channel. If it is redirected, it may be measured as very large (or very small). Thus, the clutchlog::hfill_min clutchlog::hfill_max accessors allow to set a minimum and a maximum width (in number of characters).

    log.hfill_max(CLUTCHLOG_DEFAULT_HFILL_MAX); // Defaults to 300.
    -
    log.hfill_max(CLUTCHLOG_DEFAULT_HFILL_MIN); // Defaults to 150.
    +
    log.hfill_min(CLUTCHLOG_DEFAULT_HFILL_MIN); // Defaults to 150.

    Note: clutchlog will use the measured width, unless it goes out of [clutchlog::hfill_min,clutchlog::hfill_max], in which case it will be caped to those bounds.

    -

    +

    Stack Depth

    By default, clutchlog removes 5 levels of the calls stack, so that your main entrypoint corresponds to a depth of zero. You can change this behaviour by defining the CLUTCHLOG_STRIP_CALLS macro, or calling clutchlog::strip_calls.

    log.strip_calls(CLUTCHLOG_STRIP_CALLS); // Defaults to 5.
    -

    +

    Disabled calls

    By default, clutchlog is always enabled if the NDEBUG preprocessor variable is not defined (this variable is set by CMake in build types that differs from Debug).

    You can however force clutchlog to be enabled in any build type by setting the WITH_CLUTCHLOG preprocessor variable.

    @@ -315,7 +360,7 @@ Disabled calls
    #define CLUTCHLOG_DEFAULT_DEPTH_BUILT_NODEBUG clutchlog::level::xdebug

    Note that allowing a log level does not mean that it will actually output something. If the configured log level at runtime is lower than the log level of the message, it will still not be printed.

    This behavior intend to remove as many conditional statements as possible when not debugging, without having to use preprocessor guards around calls to clutchlog, thus saving run time at no readability cost.

    -

    +

    Low-level API

    All configuration setters have a getters counterpart, with the same name but taking no parameter, for example:

    std::string mark = log.depth_mark();

    To control more precisely the logging, one can use the low-level clutchlog::log method:

    log.log(clutchlog::level::xdebug, "hello world", "main.cpp", "main", 122);
    @@ -323,18 +368,18 @@ Low-level API

    A similar dump method exists:

    log.dump(clutchlog::level::xdebug, cont.begin(), cont.end(), CLUTCHLOC, "dumped_{n}.dat", "\n");
    log.dump(clutchlog::level::xdebug, cont.begin(), cont.end(), "main.cpp", "main", 122, "dumped.dat", "\n\n");

    You can access the identifier of log levels with clutchlog::level_of:

    log.threshold( log.level_of("XDebug") ); // You have to know the exact string.
    -

    +

    (De)clutch any function call

    The CLUTHFUNC macro allows to wrap any function within the current logger.

    For instance, this can be useful if you want to (de)clutch calls to asserts. To do that, just declare your own macro:

    #define ASSERT(...) { CLUTCHFUNC(error, assert, __VA_ARGS__) }

    Thus, any call like ASSERT(x > 3); will be declutchable with the same configuration than a call to CLUTCHLOG.

    -

    +

    (De)clutch any code section

    The CLUTCHCODE macro allows to wrap any code within the current logger.

    For instance:

    std::clog << "We are clutched!\n";
    );
    -

    +

    Examples

    Here what you would do to setup clutchlog with the default configuration:

    auto& log = clutchlog::logger();
    log.out(std::clog);
    @@ -381,28 +426,53 @@ Examples
    // Declutchable asserts.
    #define ASSERT(...) { CLUTCHFUNC(critical, assert, __VA_ARGS__) }
    ASSERT(x>0);
    -

    +

    Here what you would do to setup clutchlog with the default configuration using 16M-colors mode:

    auto& log = clutchlog::logger();
    +
    log.out(std::clog);
    +
    // Location filtering.
    +
    log.depth(std::numeric_limits<size_t>::max());
    +
    log.threshold("Error");
    +
    log.file(".*");
    +
    log.func(".*");
    +
    log.line(".*");
    +
    // Colors of the 3 firsts levels.
    +
    log.style(clutchlog::level::critical, clutchlog::fmt(
    +
    "#ff0000",
    +
    clutchlog::fmt::typo::underline);
    +
    log.style(clutchlog::level::error, clutchlog::fmt(
    +
    "#ff0000",
    +
    clutchlog::fmt::typo::bold);
    +
    log.style(clutchlog::level::warning, clutchlog::fmt(
    +
    "#ff00ff",
    +
    clutchlog::fmt::typo::bold);
    +
    // Assuming you are on a POSIX system.
    +
    log.format("[{name}] {level_letter}:{depth_marks} {msg} {hfill} {func} @ {file}:{line}\n");
    +
    log.depth_mark(">");
    +
    log.strip_calls(5);
    +
    log.hfill_char('.');
    +
    log.hfill_max(300);
    +
    log.hfill_style(clutchlog::fmt::fg::none);
    +

    Limitations

    -

    +

    System-dependent stack depth

    Because access to the call stack depth and program name are system-dependent, the features relying on the depth of the call stack and the display of the program name are only available for operating systems having the following headers: execinfo.h, stdlib.h and libgen.h (so far, tested with Linux).

    Clutchlog sets the CLUTCHLOG_HAVE_UNIX_SYSINFO to 1 if the headers are available, and to 0 if they are not. You can make portable code using something like:

    #if CLUTCHLOG_HAVE_UNIX_SYSINFO == 1
    log.depth( x );
    #endif
    -

    +

    System-dependent horizontal fill

    Because access to the current terminal width is system-dependent, the {hfill} format tag feature is only available for operating systems having the following headers: sys/ioctl.h, stdio.h and unistd.h (so far, tested with Linux).

    Clutchlog sets the CLUTCHLOG_HAVE_UNIX_SYSIOCTL to 1 if the headers are available, and to 0 if they are not. You can make portable code using something like:

    #if CLUTCHLOG_HAVE_UNIX_SYSIOCTL == 1
    log.hfill_mark( '_' );
    #endif
    -

    +

    Dependencies

    Some colors/styles may not be supported by some exotic terminal emulators.

    Clutchlog needs C++-17 with the filesystem feature. You may need to indicate -std=c++17 -lstdc++fs to some compilers.

    -

    +

    Variable names within the CLUTCHLOG macro

    Calling the CLUTCHLOG macro with a message using a variable named clutchlog__msg will end in an error.

    -

    +

    Features

    What Clutchlog do not provide at the moment (but may in a near future):

    -

    +

    Build and tests

    To use clutchlog, just include its header in your code and either ensure that the NDEBUG preprocessor variable is not set, either define the WITH_CLUTCHLOG preprocessor variable.

    If you're using CMake (or another modern build system), it will unset NDEBUG —and thus enable clutchlog— only for the "Debug" build type, which is usually what you want if you use clutchlog, anyway.

    @@ -435,7 +505,7 @@ Build and tests
    enum clutchlog::fmt::typo style
    Typographic style.
    #define CLUTCHDUMP(LEVEL, CONTAINER, FILENAME)
    Dump the given container.
    Definition: clutchlog.h:98
    static clutchlog & logger()
    Get the logger instance.
    Definition: clutchlog.h:296
    -
    Color and style formatter for ANSI terminal escape sequences.
    Definition: clutchlog.h:314
    +
    Color and style formatter for ANSI terminal escape sequences.
    Definition: clutchlog.h:366
    #define CLUTCHLOC
    Handy shortcuts to location.
    Definition: clutchlog.h:77
    #define CLUTCHLOG_DEFAULT_HFILL_MARK
    Character used as a filling for right-align the right part of messages with "{hfill}".
    Definition: clutchlog.h:260
    #define CLUTCHLOG(LEVEL, WHAT)
    Log a message at the given level.
    Definition: clutchlog.h:81
    diff --git a/docs/inherit_graph_0.map b/docs/inherit_graph_0.map new file mode 100644 index 0000000..dbeb31c --- /dev/null +++ b/docs/inherit_graph_0.map @@ -0,0 +1,3 @@ + + + diff --git a/docs/inherit_graph_0.md5 b/docs/inherit_graph_0.md5 new file mode 100644 index 0000000..4b5469e --- /dev/null +++ b/docs/inherit_graph_0.md5 @@ -0,0 +1 @@ +9a02f8e2a3eef4f094beaffe602d13af \ No newline at end of file diff --git a/docs/inherit_graph_0.svg b/docs/inherit_graph_0.svg new file mode 100644 index 0000000..c021691 --- /dev/null +++ b/docs/inherit_graph_0.svg @@ -0,0 +1,22 @@ + + + + + + +Graphical Class Hierarchy + + + +Node0 + + +clutchlog + + + + + diff --git a/docs/inherit_graph_1.map b/docs/inherit_graph_1.map new file mode 100644 index 0000000..269dc09 --- /dev/null +++ b/docs/inherit_graph_1.map @@ -0,0 +1,3 @@ + + + diff --git a/docs/inherit_graph_1.md5 b/docs/inherit_graph_1.md5 new file mode 100644 index 0000000..9a3cfce --- /dev/null +++ b/docs/inherit_graph_1.md5 @@ -0,0 +1 @@ +509a5f8902ca8da90966c100c09ae253 \ No newline at end of file diff --git a/docs/inherit_graph_1.svg b/docs/inherit_graph_1.svg new file mode 100644 index 0000000..05259cc --- /dev/null +++ b/docs/inherit_graph_1.svg @@ -0,0 +1,22 @@ + + + + + + +Graphical Class Hierarchy + + + +Node0 + + +clutchlog::fmt + + + + + diff --git a/docs/inherit_graph_2.map b/docs/inherit_graph_2.map new file mode 100644 index 0000000..e6a5dcf --- /dev/null +++ b/docs/inherit_graph_2.map @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/docs/inherit_graph_2.md5 b/docs/inherit_graph_2.md5 new file mode 100644 index 0000000..abb1835 --- /dev/null +++ b/docs/inherit_graph_2.md5 @@ -0,0 +1 @@ +fcd84f58a5479d3ddbec10d930728f7d \ No newline at end of file diff --git a/docs/inherit_graph_2.svg b/docs/inherit_graph_2.svg new file mode 100644 index 0000000..3845d63 --- /dev/null +++ b/docs/inherit_graph_2.svg @@ -0,0 +1,112 @@ + + + + + + +Graphical Class Hierarchy + + + +Node0 + + +clutchlog::fmt::color + + + + + +Node1 + + +clutchlog::fmt::color_16M + + + + + +Node0->Node1 + + + + + +Node4 + + +clutchlog::fmt::color_256 + + + + + +Node0->Node4 + + + + + +Node2 + + +clutchlog::fmt::bg_16M + + + + + +Node1->Node2 + + + + + +Node3 + + +clutchlog::fmt::fg_16M + + + + + +Node1->Node3 + + + + + +Node5 + + +clutchlog::fmt::bg_256 + + + + + +Node4->Node5 + + + + + +Node6 + + +clutchlog::fmt::fg_256 + + + + + +Node4->Node6 + + + + + diff --git a/docs/inherit_graph_3.map b/docs/inherit_graph_3.map new file mode 100644 index 0000000..f01e8e1 --- /dev/null +++ b/docs/inherit_graph_3.map @@ -0,0 +1,3 @@ + + + diff --git a/docs/inherit_graph_3.md5 b/docs/inherit_graph_3.md5 new file mode 100644 index 0000000..1610d9a --- /dev/null +++ b/docs/inherit_graph_3.md5 @@ -0,0 +1 @@ +1d06d42137c2e4fefcf9e485cd034e37 \ No newline at end of file diff --git a/docs/inherit_graph_3.svg b/docs/inherit_graph_3.svg new file mode 100644 index 0000000..7c61ba1 --- /dev/null +++ b/docs/inherit_graph_3.svg @@ -0,0 +1,22 @@ + + + + + + +Graphical Class Hierarchy + + + +Node0 + + +clutchlog::scope_t + + + + + diff --git a/docs/inherits.html b/docs/inherits.html new file mode 100644 index 0000000..bc1964f --- /dev/null +++ b/docs/inherits.html @@ -0,0 +1,110 @@ + + + + + + + +clutchlog: Class Hierarchy + + + + + + + + + + + + + + +
    +
    + + + + + + + +
    +
    clutchlog +  0.13 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    Class Hierarchy
    +
    +
    + + + + + +
    +
    +
    + + + + diff --git a/docs/menudata.js b/docs/menudata.js index afd4f6c..5970b76 100644 --- a/docs/menudata.js +++ b/docs/menudata.js @@ -26,12 +26,17 @@ var menudata={children:[ {text:"Classes",url:"annotated.html",children:[ {text:"Class List",url:"annotated.html"}, {text:"Class Index",url:"classes.html"}, +{text:"Class Hierarchy",url:"inherits.html"}, {text:"Class Members",url:"functions.html",children:[ {text:"All",url:"functions.html",children:[ {text:"_",url:"functions.html#index__5F"}, +{text:"a",url:"functions.html#index_a"}, {text:"b",url:"functions.html#index_b"}, +{text:"c",url:"functions.html#index_c"}, {text:"d",url:"functions.html#index_d"}, {text:"f",url:"functions.html#index_f"}, +{text:"g",url:"functions.html#index_g"}, +{text:"i",url:"functions.html#index_i"}, {text:"l",url:"functions.html#index_l"}, {text:"m",url:"functions.html#index_m"}, {text:"o",url:"functions.html#index_o"}, @@ -39,8 +44,28 @@ var menudata={children:[ {text:"r",url:"functions.html#index_r"}, {text:"s",url:"functions.html#index_s"}, {text:"t",url:"functions.html#index_t"}]}, -{text:"Functions",url:"functions_func.html"}, -{text:"Variables",url:"functions_vars.html"}, +{text:"Functions",url:"functions_func.html",children:[ +{text:"b",url:"functions_func.html#index_b"}, +{text:"c",url:"functions_func.html#index_c"}, +{text:"d",url:"functions_func.html#index_d"}, +{text:"f",url:"functions_func.html#index_f"}, +{text:"i",url:"functions_func.html#index_i"}, +{text:"l",url:"functions_func.html#index_l"}, +{text:"o",url:"functions_func.html#index_o"}, +{text:"p",url:"functions_func.html#index_p"}, +{text:"r",url:"functions_func.html#index_r"}, +{text:"s",url:"functions_func.html#index_s"}, +{text:"t",url:"functions_func.html#index_t"}]}, +{text:"Variables",url:"functions_vars.html",children:[ +{text:"_",url:"functions_vars.html#index__5F"}, +{text:"b",url:"functions_vars.html#index_b"}, +{text:"d",url:"functions_vars.html#index_d"}, +{text:"f",url:"functions_vars.html#index_f"}, +{text:"i",url:"functions_vars.html#index_i"}, +{text:"m",url:"functions_vars.html#index_m"}, +{text:"r",url:"functions_vars.html#index_r"}, +{text:"s",url:"functions_vars.html#index_s"}, +{text:"t",url:"functions_vars.html#index_t"}]}, {text:"Enumerations",url:"functions_enum.html"}, {text:"Related Functions",url:"functions_rela.html"}]}]}, {text:"Files",url:"files.html",children:[ diff --git a/docs/modules.html b/docs/modules.html index ae2bb82..644e787 100644 --- a/docs/modules.html +++ b/docs/modules.html @@ -28,7 +28,7 @@ Logo
    clutchlog -  0.12 +  0.13
    @@ -94,6 +94,8 @@ $(document).ready(function(){initNavTree('modules.html',''); initResizable(); })  High-level API macros  Main class  Formating tools + Colors management in 16 colors mode (4-bits ANSI). + Internal colors management in 256 and 16M colors modes. diff --git a/docs/modules.js b/docs/modules.js index 8e76bc3..5348adc 100644 --- a/docs/modules.js +++ b/docs/modules.js @@ -3,5 +3,7 @@ var modules = [ "Default configuration management", "group___default_config.html", "group___default_config" ], [ "High-level API macros", "group___use_macros.html", "group___use_macros" ], [ "Main class", "group___main.html", "group___main" ], - [ "Formating tools", "group___formating.html", "group___formating" ] + [ "Formating tools", "group___formating.html", "group___formating" ], + [ "Colors management in 16 colors mode (4-bits ANSI).", "group__colors16.html", "group__colors16" ], + [ "Internal colors management in 256 and 16M colors modes.", "group__colors256__16_m.html", "group__colors256__16_m" ] ]; \ No newline at end of file diff --git a/docs/navtreedata.js b/docs/navtreedata.js index a6a4108..b728302 100644 --- a/docs/navtreedata.js +++ b/docs/navtreedata.js @@ -23,7 +23,7 @@ for the JavaScript code in this file var NAVTREE = [ [ "clutchlog", "index.html", [ - [ "Clutchlog — versatile (de)clutchable logging", "index.html", [ + [ "Clutchlog — versatile (de)clutchable spatial logging", "index.html", [ [ "Features", "index.html#autotoc_md0", null ], [ "Example", "index.html#autotoc_md1", null ], [ "Rationale", "index.html#autotoc_md2", null ], @@ -34,28 +34,32 @@ var NAVTREE = [ "Output Configuration", "index.html#autotoc_md7", [ [ "Log Format", "index.html#autotoc_md8", null ] ] ], - [ "Output style", "index.html#autotoc_md9", null ] + [ "Output style", "index.html#autotoc_md9", [ + [ "Typographic Style", "index.html#autotoc_md10", null ], + [ "Colors", "index.html#autotoc_md11", null ] + ] ] ] ], - [ "Advanced Usage", "index.html#autotoc_md10", [ - [ "More Output Configuration", "index.html#autotoc_md11", [ - [ "Dump Format", "index.html#autotoc_md12", null ], - [ "Stack Depth Mark", "index.html#autotoc_md13", null ], - [ "Horizontal Filling", "index.html#autotoc_md14", null ], - [ "Stack Depth", "index.html#autotoc_md15", null ] + [ "Advanced Usage", "index.html#autotoc_md12", [ + [ "More Output Configuration", "index.html#autotoc_md13", [ + [ "Dump Format", "index.html#autotoc_md14", null ], + [ "Stack Depth Mark", "index.html#autotoc_md15", null ], + [ "Horizontal Filling", "index.html#autotoc_md16", null ], + [ "Stack Depth", "index.html#autotoc_md17", null ] ] ], - [ "Disabled calls", "index.html#autotoc_md16", null ], - [ "Low-level API", "index.html#autotoc_md17", null ], - [ "(De)clutch any function call", "index.html#autotoc_md18", null ], - [ "(De)clutch any code section", "index.html#autotoc_md19", null ] + [ "Disabled calls", "index.html#autotoc_md18", null ], + [ "Low-level API", "index.html#autotoc_md19", null ], + [ "(De)clutch any function call", "index.html#autotoc_md20", null ], + [ "(De)clutch any code section", "index.html#autotoc_md21", null ] ] ], - [ "Examples", "index.html#autotoc_md20", null ], - [ "Limitations", "index.html#autotoc_md21", null ], - [ "Build and tests", "index.html#autotoc_md27", null ] + [ "Examples", "index.html#autotoc_md22", null ], + [ "Limitations", "index.html#autotoc_md23", null ], + [ "Build and tests", "index.html#autotoc_md29", null ] ] ], [ "Modules", "modules.html", "modules" ], [ "Classes", "annotated.html", [ [ "Class List", "annotated.html", "annotated_dup" ], [ "Class Index", "classes.html", null ], + [ "Class Hierarchy", "hierarchy.html", "hierarchy" ], [ "Class Members", "functions.html", [ [ "All", "functions.html", null ], [ "Functions", "functions_func.html", null ], @@ -76,7 +80,8 @@ var NAVTREE = var NAVTREEINDEX = [ -"annotated.html" +"annotated.html", +"structclutchlog_1_1fmt_1_1color__16_m.html#a674910195e7bb14d78f0cf56c308a47e" ]; var SYNCONMSG = 'click to disable panel synchronisation'; diff --git a/docs/navtreeindex0.js b/docs/navtreeindex0.js index 14e4bc0..0a4b48a 100644 --- a/docs/navtreeindex0.js +++ b/docs/navtreeindex0.js @@ -59,46 +59,40 @@ var NAVTREEINDEX0 = "classclutchlog.html#afc53dbca51d0e2322a21899d0c571a80":[1,2,0,11], "classclutchlog.html#aff3aa09fb60f7d6dc688c028d3834d8a":[1,2,0,19], "classclutchlog_1_1fmt.html":[1,3,0], -"classclutchlog_1_1fmt.html#a0b607e343b6813b99eafca1fdfec9cd0":[1,3,0,7], +"classclutchlog_1_1fmt.html#a00feba2b1539529df70e39d615a05941":[1,3,0,10], +"classclutchlog_1_1fmt.html#a04f3ba5f6fe81955dca4492a6d259f1c":[1,3,0,7], +"classclutchlog_1_1fmt.html#a0923d7d400f6753d4dae124b71eb5023":[1,3,0,15], +"classclutchlog_1_1fmt.html#a0aa57cdd56ccc79c7750921ab534b205":[1,3,0,24], +"classclutchlog_1_1fmt.html#a0b607e343b6813b99eafca1fdfec9cd0":[1,3,0,18], "classclutchlog_1_1fmt.html#a13453c0b5dbc19d9b510dcdc0352b443":[1,3,0,3], -"classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1e":[1,3,0,15], -"classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1ea1ffd9e753c8054cc61456ac7fac1ac89":[1,3,0,15,0], -"classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1ea334c4a4c42fdb79d7ebc3e73b517e6f8":[1,3,0,15,8], -"classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1ea48d6215903dff56238e52e8891380c8f":[1,3,0,15,4], -"classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1ea4c2a4a7078da0ac6733464eacfd00f86":[1,3,0,15,5], -"classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1ea6411532ba4971f378391776a9db629d3":[1,3,0,15,6], -"classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1ea9f27410725ab8cc8854a2769c7a516b8":[1,3,0,15,2], -"classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1eabda9643ac6601722a28f238714274da4":[1,3,0,15,1], -"classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1ead487dd0b55dfcacdd920ccbdaeafa351":[1,3,0,15,3], -"classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1ead508fe45cecaf653904a0e774084bb5c":[1,3,0,15,7], -"classclutchlog_1_1fmt.html#a2bb0fde65fcd264393e102314dd1610b":[1,3,0,13], +"classclutchlog_1_1fmt.html#a194201eb8a400ef13df3e833b8788cdc":[1,3,0,9], +"classclutchlog_1_1fmt.html#a2bb0fde65fcd264393e102314dd1610b":[1,3,0,25], +"classclutchlog_1_1fmt.html#a2df8f77f58dc9272c94982c4d2275581":[1,3,0,12], +"classclutchlog_1_1fmt.html#a357c93593867f67d9fef562ca07c7dcc":[1,3,0,11], "classclutchlog_1_1fmt.html#a407506bc02ed3f91d88b3df630e54959":[1,3,0,0], -"classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0":[1,3,0,14], -"classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0a1ffd9e753c8054cc61456ac7fac1ac89":[1,3,0,14,0], -"classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0a334c4a4c42fdb79d7ebc3e73b517e6f8":[1,3,0,14,8], -"classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0a48d6215903dff56238e52e8891380c8f":[1,3,0,14,4], -"classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0a4c2a4a7078da0ac6733464eacfd00f86":[1,3,0,14,5], -"classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0a6411532ba4971f378391776a9db629d3":[1,3,0,14,6], -"classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0a9f27410725ab8cc8854a2769c7a516b8":[1,3,0,14,2], -"classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0abda9643ac6601722a28f238714274da4":[1,3,0,14,1], -"classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0ad487dd0b55dfcacdd920ccbdaeafa351":[1,3,0,14,3], -"classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0ad508fe45cecaf653904a0e774084bb5c":[1,3,0,14,7], +"classclutchlog_1_1fmt.html#a4d0b3c87ba935addf3581b000c0d7502":[1,3,0,32], +"classclutchlog_1_1fmt.html#a4d0b3c87ba935addf3581b000c0d7502a1844e5aae3a3eefc500c545e3c35bcfa":[1,3,0,32,2], +"classclutchlog_1_1fmt.html#a4d0b3c87ba935addf3581b000c0d7502a1e7cced329549fc4c2393381f068062e":[1,3,0,32,0], +"classclutchlog_1_1fmt.html#a4d0b3c87ba935addf3581b000c0d7502a7a3c32a8827eb17435511b4c7a429749":[1,3,0,32,1], +"classclutchlog_1_1fmt.html#a506718883842dbce3659f42cdf79e52c":[1,3,0,16], +"classclutchlog_1_1fmt.html#a63b29eb5862a30a194b0256f2ee554a6":[1,3,0,13], "classclutchlog_1_1fmt.html#a65856874070ec0865b3a5b9aeb0e4f3d":[1,3,0,4], "classclutchlog_1_1fmt.html#a6cc6126d113fc0647ed3acbf29cdc425":[1,3,0,1], -"classclutchlog_1_1fmt.html#a8307a848fcf9ed929435b3e1f2b53401":[1,3,0,11], -"classclutchlog_1_1fmt.html#a86696b20e5b31c96ba592926efb324f3":[1,3,0,12], -"classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89":[1,3,0,16], -"classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89a334c4a4c42fdb79d7ebc3e73b517e6f8":[1,3,0,16,4], -"classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89a69dcab4a73aeec2113f69b61e6263da8":[1,3,0,16,1], -"classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89a6dc7b4483f8c2c701a48e42db552806d":[1,3,0,16,2], -"classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89a86266ee937d97f812a8e57d22b62ee29":[1,3,0,16,0], -"classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89aa91c78e040f7b9d158f381e197f8beb4":[1,3,0,16,3], -"classclutchlog_1_1fmt.html#a96849ba427feac3a2eeaa1165e3845da":[1,3,0,10], +"classclutchlog_1_1fmt.html#a6d1cc4abe822a569a2624b0829de5dd0":[1,3,0,17], +"classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89":[1,3,0,33], +"classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89a334c4a4c42fdb79d7ebc3e73b517e6f8":[1,3,0,33,4], +"classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89a69dcab4a73aeec2113f69b61e6263da8":[1,3,0,33,1], +"classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89a6dc7b4483f8c2c701a48e42db552806d":[1,3,0,33,2], +"classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89a86266ee937d97f812a8e57d22b62ee29":[1,3,0,33,0], +"classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89aa91c78e040f7b9d158f381e197f8beb4":[1,3,0,33,3], +"classclutchlog_1_1fmt.html#a9458703ab8a3c9fbc6b801011b43f16d":[1,3,0,14], +"classclutchlog_1_1fmt.html#a96849ba427feac3a2eeaa1165e3845da":[1,3,0,23], "classclutchlog_1_1fmt.html#a99b3a05ddf6fa341cee6cb1e5dffc159":[1,3,0,5], -"classclutchlog_1_1fmt.html#ab588e04e982b0b26ec979773d51ad41b":[1,3,0,9], +"classclutchlog_1_1fmt.html#ab588e04e982b0b26ec979773d51ad41b":[1,3,0,20], +"classclutchlog_1_1fmt.html#ac49c883e3dd17832749cc092b74a9f56":[1,3,0,8], "classclutchlog_1_1fmt.html#ac69e6d3b7ddaec908c429ac61f354267":[1,3,0,2], "classclutchlog_1_1fmt.html#aeea73b0239bf73ebc8ee84c1e6d278e2":[1,3,0,6], -"classclutchlog_1_1fmt.html#afeaedd18298498d1dcfcc15f5f17ac3c":[1,3,0,8], +"classclutchlog_1_1fmt.html#afeaedd18298498d1dcfcc15f5f17ac3c":[1,3,0,19], "classes.html":[2,1], "clutchlog_8h.html":[3,0,0], "clutchlog_8h.html#a0acf7d306292cdee864356f0b433cc16":[3,0,0,1], @@ -107,11 +101,11 @@ var NAVTREEINDEX0 = "clutchlog_8h.html#a6bddd1e1be320823da0d6b1d5cef7817":[3,0,0,3], "clutchlog_8h_source.html":[3,0,0], "files.html":[3,0], -"functions.html":[2,2,0], -"functions_enum.html":[2,2,3], -"functions_func.html":[2,2,1], -"functions_rela.html":[2,2,4], -"functions_vars.html":[2,2,2], +"functions.html":[2,3,0], +"functions_enum.html":[2,3,3], +"functions_func.html":[2,3,1], +"functions_rela.html":[2,3,4], +"functions_vars.html":[2,3,2], "globals.html":[3,1,0], "globals_defs.html":[3,1,1], "group___default_config.html":[1,0], @@ -125,46 +119,105 @@ var NAVTREEINDEX0 = "group___default_config.html#ga524c16f280d92ee8ab683162c9ce01fa":[1,0,1], "group___default_config.html#ga54d29e956575e1c731eab5406135c5df":[1,0,3], "group___default_config.html#ga54d29e956575e1c731eab5406135c5df":[3,0,0,13], -"group___default_config.html#ga8564be479b948ee3052b61783c66d415":[1,0,0], "group___default_config.html#ga8564be479b948ee3052b61783c66d415":[3,0,0,5], -"group___default_config.html#ga98f30d814d4913a8a7c93a8793f49adf":[3,0,0,15], +"group___default_config.html#ga8564be479b948ee3052b61783c66d415":[1,0,0], "group___default_config.html#ga98f30d814d4913a8a7c93a8793f49adf":[1,0,5], +"group___default_config.html#ga98f30d814d4913a8a7c93a8793f49adf":[3,0,0,15], "group___formating.html":[1,3], "group___main.html":[1,2], "group___use_macros.html":[1,1], -"group___use_macros.html#ga572e3aa19d8b39e3ed0b9e91961104c2":[1,1,2], "group___use_macros.html#ga572e3aa19d8b39e3ed0b9e91961104c2":[3,0,0,8], +"group___use_macros.html#ga572e3aa19d8b39e3ed0b9e91961104c2":[1,1,2], "group___use_macros.html#ga6f86187e2b35e7e1907d688f504a197d":[1,1,1], "group___use_macros.html#ga6f86187e2b35e7e1907d688f504a197d":[3,0,0,7], -"group___use_macros.html#ga9f77cee4f853e582262930c9c17f90ae":[3,0,0,9], "group___use_macros.html#ga9f77cee4f853e582262930c9c17f90ae":[1,1,3], -"group___use_macros.html#gaaf2e85e1153e6c88b458dd49e3c37c73":[3,0,0,10], +"group___use_macros.html#ga9f77cee4f853e582262930c9c17f90ae":[3,0,0,9], "group___use_macros.html#gaaf2e85e1153e6c88b458dd49e3c37c73":[1,1,4], -"group___use_macros.html#gae8911119d726a43b77f5781cb5a72813":[1,1,0], +"group___use_macros.html#gaaf2e85e1153e6c88b458dd49e3c37c73":[3,0,0,10], "group___use_macros.html#gae8911119d726a43b77f5781cb5a72813":[3,0,0,6], -"index.html":[], +"group___use_macros.html#gae8911119d726a43b77f5781cb5a72813":[1,1,0], +"group__colors16.html":[1,4], +"group__colors16.html#ga1cf3e27e4041250ffea0a6d58010da1e":[1,3,0,35], +"group__colors16.html#ga1cf3e27e4041250ffea0a6d58010da1e":[1,4,1], +"group__colors16.html#ga379b0af834c7c561edc5c1e3a3427a33":[1,3,0,22], +"group__colors16.html#ga379b0af834c7c561edc5c1e3a3427a33":[1,4,5], +"group__colors16.html#ga4662a3ec3577c6a575a2c734636ed8a0":[1,3,0,34], +"group__colors16.html#ga4662a3ec3577c6a575a2c734636ed8a0":[1,4,0], +"group__colors16.html#ga5a697f5ad3326ea25b139e25252b4cf7":[1,4,4], +"group__colors16.html#ga5a697f5ad3326ea25b139e25252b4cf7":[1,3,0,21], +"group__colors16.html#ga8307a848fcf9ed929435b3e1f2b53401":[1,3,0,26], +"group__colors16.html#ga8307a848fcf9ed929435b3e1f2b53401":[1,4,2], +"group__colors16.html#ga86696b20e5b31c96ba592926efb324f3":[1,4,3], +"group__colors16.html#ga86696b20e5b31c96ba592926efb324f3":[1,3,0,27], +"group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1ea1ffd9e753c8054cc61456ac7fac1ac89":[1,3,0,35,0], +"group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1ea334c4a4c42fdb79d7ebc3e73b517e6f8":[1,3,0,35,16], +"group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1ea37553b57ad1d7f61b0c51f5a535f72bf":[1,3,0,35,13], +"group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1ea48d6215903dff56238e52e8891380c8f":[1,3,0,35,4], +"group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1ea4c2a4a7078da0ac6733464eacfd00f86":[1,3,0,35,5], +"group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1ea6411532ba4971f378391776a9db629d3":[1,3,0,35,6], +"group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1ea74474ae20bf3ef3bce6fd679194ce383":[1,3,0,35,8], +"group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1ea75dd76d162b9554ec8b63736bc22d93e":[1,3,0,35,11], +"group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1ea8b84c6e788e91a3a45b9dabedb160590":[1,3,0,35,9], +"group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1ea9f27410725ab8cc8854a2769c7a516b8":[1,3,0,35,2], +"group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1eabd5b4652dffd84bab66529361d0c4974":[1,3,0,35,10], +"group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1eabda9643ac6601722a28f238714274da4":[1,3,0,35,1], +"group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1eac5b47880b4b2ec37179078d63a85def3":[1,3,0,35,12], +"group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1eacc69f9955c2bf916bb9a83f38141432f":[1,3,0,35,14], +"group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1ead487dd0b55dfcacdd920ccbdaeafa351":[1,3,0,35,3], +"group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1ead508fe45cecaf653904a0e774084bb5c":[1,3,0,35,7], +"group__colors16.html#gga1cf3e27e4041250ffea0a6d58010da1eada7527acf78cb4e7b582e8163a1f642a":[1,3,0,35,15], +"group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0a1ffd9e753c8054cc61456ac7fac1ac89":[1,3,0,34,0], +"group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0a334c4a4c42fdb79d7ebc3e73b517e6f8":[1,3,0,34,16], +"group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0a37553b57ad1d7f61b0c51f5a535f72bf":[1,3,0,34,13], +"group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0a48d6215903dff56238e52e8891380c8f":[1,3,0,34,4], +"group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0a4c2a4a7078da0ac6733464eacfd00f86":[1,3,0,34,5], +"group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0a6411532ba4971f378391776a9db629d3":[1,3,0,34,6], +"group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0a74474ae20bf3ef3bce6fd679194ce383":[1,3,0,34,8], +"group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0a75dd76d162b9554ec8b63736bc22d93e":[1,3,0,34,11], +"group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0a8b84c6e788e91a3a45b9dabedb160590":[1,3,0,34,9], +"group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0a9f27410725ab8cc8854a2769c7a516b8":[1,3,0,34,2], +"group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0abd5b4652dffd84bab66529361d0c4974":[1,3,0,34,10], +"group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0abda9643ac6601722a28f238714274da4":[1,3,0,34,1], +"group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0ac5b47880b4b2ec37179078d63a85def3":[1,3,0,34,12], +"group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0acc69f9955c2bf916bb9a83f38141432f":[1,3,0,34,14], +"group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0ad487dd0b55dfcacdd920ccbdaeafa351":[1,3,0,34,3], +"group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0ad508fe45cecaf653904a0e774084bb5c":[1,3,0,34,7], +"group__colors16.html#gga4662a3ec3577c6a575a2c734636ed8a0ada7527acf78cb4e7b582e8163a1f642a":[1,3,0,34,15], +"group__colors256__16_m.html":[1,5], +"group__colors256__16_m.html#ga1d687af385957846034568c3a62d4ef0":[1,3,0,29], +"group__colors256__16_m.html#ga1d687af385957846034568c3a62d4ef0":[1,5,8], +"group__colors256__16_m.html#ga626c99eb11d1718d7a2a8bb3f079e6de":[1,5,9], +"group__colors256__16_m.html#ga626c99eb11d1718d7a2a8bb3f079e6de":[1,3,0,30], +"group__colors256__16_m.html#gaa2fcbb402dc2426d3720b8bc78a80ec0":[1,3,0,31], +"group__colors256__16_m.html#gaa2fcbb402dc2426d3720b8bc78a80ec0":[1,5,10], +"group__colors256__16_m.html#gad98fbe84ef338ded8425d56955825a2c":[1,5,7], +"group__colors256__16_m.html#gad98fbe84ef338ded8425d56955825a2c":[1,3,0,28], +"hierarchy.html":[2,2], "index.html":[0], +"index.html":[], "index.html#autotoc_md0":[0,0], "index.html#autotoc_md1":[0,1], -"index.html#autotoc_md10":[0,4], -"index.html#autotoc_md11":[0,4,0], -"index.html#autotoc_md12":[0,4,0,0], -"index.html#autotoc_md13":[0,4,0,1], -"index.html#autotoc_md14":[0,4,0,2], -"index.html#autotoc_md15":[0,4,0,3], -"index.html#autotoc_md16":[0,4,1], -"index.html#autotoc_md17":[0,4,2], -"index.html#autotoc_md18":[0,4,3], -"index.html#autotoc_md19":[0,4,4], +"index.html#autotoc_md10":[0,3,4,0], +"index.html#autotoc_md11":[0,3,4,1], +"index.html#autotoc_md12":[0,4], +"index.html#autotoc_md13":[0,4,0], +"index.html#autotoc_md14":[0,4,0,0], +"index.html#autotoc_md15":[0,4,0,1], +"index.html#autotoc_md16":[0,4,0,2], +"index.html#autotoc_md17":[0,4,0,3], +"index.html#autotoc_md18":[0,4,1], +"index.html#autotoc_md19":[0,4,2], "index.html#autotoc_md2":[0,2], -"index.html#autotoc_md20":[0,5], -"index.html#autotoc_md21":[0,6], -"index.html#autotoc_md22":[0], -"index.html#autotoc_md23":[1], -"index.html#autotoc_md24":[2], -"index.html#autotoc_md25":[3], -"index.html#autotoc_md26":[4], -"index.html#autotoc_md27":[0,7], +"index.html#autotoc_md20":[0,4,3], +"index.html#autotoc_md21":[0,4,4], +"index.html#autotoc_md22":[0,5], +"index.html#autotoc_md23":[0,6], +"index.html#autotoc_md24":[0], +"index.html#autotoc_md25":[1], +"index.html#autotoc_md26":[2], +"index.html#autotoc_md27":[3], +"index.html#autotoc_md28":[4], +"index.html#autotoc_md29":[0,7], "index.html#autotoc_md3":[0,3], "index.html#autotoc_md4":[0,3,0], "index.html#autotoc_md5":[0,3,1], @@ -174,15 +227,27 @@ var NAVTREEINDEX0 = "index.html#autotoc_md9":[0,3,4], "modules.html":[1], "pages.html":[], -"structclutchlog_1_1scope__t.html":[1,2,0,5], -"structclutchlog_1_1scope__t.html#a0f1d865ffcf17f215e5559cdd2690572":[1,2,0,5,0], -"structclutchlog_1_1scope__t.html#a7918e55cd3bac1bd30c69b8c711387ff":[1,2,0,5,3], -"structclutchlog_1_1scope__t.html#adcca6846ff90d436c61861db85917744":[1,2,0,5,2], -"structclutchlog_1_1scope__t.html#ae6c0e4ed20db797124ed1e5faa033ad9":[1,2,0,5,1], -"t-assert_8cpp_source.html":[3,0,1], -"t-color_8cpp_source.html":[3,0,2], -"t-demo_8cpp_source.html":[3,0,3], -"t-dump_8cpp_source.html":[3,0,4], -"t-log_8cpp_source.html":[3,0,5], -"t-one-line-if_8cpp_source.html":[3,0,6] +"structclutchlog_1_1fmt_1_1bg__16_m.html":[1,5,6], +"structclutchlog_1_1fmt_1_1bg__16_m.html#a363c314ab6a8aa22951b5500d7a78ad0":[1,5,6,0], +"structclutchlog_1_1fmt_1_1bg__16_m.html#a68f8cb4ab78a1cfb3b7b8e1e95bee11d":[1,5,6,3], +"structclutchlog_1_1fmt_1_1bg__16_m.html#ace018922ae99f32b48bf5cacaec91501":[1,5,6,1], +"structclutchlog_1_1fmt_1_1bg__16_m.html#adcd5bd1e69e76e3b36015cf687693c97":[1,5,6,2], +"structclutchlog_1_1fmt_1_1bg__256.html":[1,5,3], +"structclutchlog_1_1fmt_1_1bg__256.html#a096d302be7373acaaf225644683408bd":[1,5,3,2], +"structclutchlog_1_1fmt_1_1bg__256.html#a0d244a542b6b98a373f8b1f9e92a6a90":[1,5,3,0], +"structclutchlog_1_1fmt_1_1bg__256.html#a83c663b1a9f00ba7ba7649c9c5605fad":[1,5,3,1], +"structclutchlog_1_1fmt_1_1color.html":[1,5,0], +"structclutchlog_1_1fmt_1_1color.html#a3fd18c290567bd5c4971663a1aed12ae":[1,5,0,5], +"structclutchlog_1_1fmt_1_1color.html#a741d0165287350d8fcacb1f472ce5dac":[1,5,0,0], +"structclutchlog_1_1fmt_1_1color.html#a826e3d3eba925608442439d6bc3a95a6":[1,5,0,3], +"structclutchlog_1_1fmt_1_1color.html#a96d7161ef1e7cc631ae670cd3f364603":[1,5,0,1], +"structclutchlog_1_1fmt_1_1color.html#aa75e958436afe333924b6db3e5f0821f":[1,5,0,2], +"structclutchlog_1_1fmt_1_1color.html#aacbc3cd9447fdb7d51e02b29b5028a6b":[1,5,0,4], +"structclutchlog_1_1fmt_1_1color.html#ad4d10c015b3af3cc10d1cf40fe38e4f0":[1,5,0,6], +"structclutchlog_1_1fmt_1_1color.html#ad4d10c015b3af3cc10d1cf40fe38e4f0a469bba0a564235dfceede42db14f17b0":[1,5,0,6,1], +"structclutchlog_1_1fmt_1_1color.html#ad4d10c015b3af3cc10d1cf40fe38e4f0ae64e4c4fee28f9ca7301e4c7ff598e67":[1,5,0,6,0], +"structclutchlog_1_1fmt_1_1color__16_m.html":[1,5,4], +"structclutchlog_1_1fmt_1_1color__16_m.html#a19e1517a9afb75a4e6224f718ed11c61":[1,5,4,5], +"structclutchlog_1_1fmt_1_1color__16_m.html#a36d9cf42044fec34b7858142d86137d3":[1,5,4,1], +"structclutchlog_1_1fmt_1_1color__16_m.html#a55e39e7eb3ced3095c00914eff52470c":[1,5,4,2] }; diff --git a/docs/navtreeindex1.js b/docs/navtreeindex1.js new file mode 100644 index 0000000..176dc70 --- /dev/null +++ b/docs/navtreeindex1.js @@ -0,0 +1,37 @@ +var NAVTREEINDEX1 = +{ +"structclutchlog_1_1fmt_1_1color__16_m.html#a674910195e7bb14d78f0cf56c308a47e":[1,5,4,4], +"structclutchlog_1_1fmt_1_1color__16_m.html#a780c11e42bb140732ffd37cf4eef9e1d":[1,5,4,3], +"structclutchlog_1_1fmt_1_1color__16_m.html#ac94eaa04e4f5de4ca6cfe7105ec1c4d4":[1,5,4,6], +"structclutchlog_1_1fmt_1_1color__16_m.html#aea10e881fb9b570267f5751fb67c4282":[1,5,4,0], +"structclutchlog_1_1fmt_1_1color__16_m.html#aedcfa3e0597d9dd883b1783e931bb9af":[1,5,4,7], +"structclutchlog_1_1fmt_1_1color__256.html":[1,5,1], +"structclutchlog_1_1fmt_1_1color__256.html#a12fdff3c5c4edbf952aaa31519f0171c":[1,5,1,0], +"structclutchlog_1_1fmt_1_1color__256.html#a1b68065b35141c018b33c3f2c45f5726":[1,5,1,1], +"structclutchlog_1_1fmt_1_1color__256.html#a8e0b13d6bad87c83c3465524a5d33988":[1,5,1,4], +"structclutchlog_1_1fmt_1_1color__256.html#aaae6106a11eddade981172324a43df68":[1,5,1,3], +"structclutchlog_1_1fmt_1_1color__256.html#ad79557682cec1c053dda258581972111":[1,5,1,2], +"structclutchlog_1_1fmt_1_1fg__16_m.html":[1,5,5], +"structclutchlog_1_1fmt_1_1fg__16_m.html#a531b717b8d78a0a5929fa90d0a01d7e5":[1,5,5,1], +"structclutchlog_1_1fmt_1_1fg__16_m.html#a984525f33eb86b7f8b3e5d0874611194":[1,5,5,0], +"structclutchlog_1_1fmt_1_1fg__16_m.html#a9da40a4a7ff3b80f028f26322f59eba8":[1,5,5,3], +"structclutchlog_1_1fmt_1_1fg__16_m.html#abc768d6b7c2139c14f210755108006d3":[1,5,5,2], +"structclutchlog_1_1fmt_1_1fg__256.html":[1,5,2], +"structclutchlog_1_1fmt_1_1fg__256.html#a501fff36520f20ba4973ba3848fb9c23":[1,5,2,2], +"structclutchlog_1_1fmt_1_1fg__256.html#a6df3d848db0e55c79709fb4565cbfd59":[1,5,2,1], +"structclutchlog_1_1fmt_1_1fg__256.html#a97c241e9f80c63d269953cc525a72c7a":[1,5,2,0], +"structclutchlog_1_1scope__t.html":[1,2,0,5], +"structclutchlog_1_1scope__t.html#a0f1d865ffcf17f215e5559cdd2690572":[1,2,0,5,0], +"structclutchlog_1_1scope__t.html#a7918e55cd3bac1bd30c69b8c711387ff":[1,2,0,5,3], +"structclutchlog_1_1scope__t.html#adcca6846ff90d436c61861db85917744":[1,2,0,5,2], +"structclutchlog_1_1scope__t.html#ae6c0e4ed20db797124ed1e5faa033ad9":[1,2,0,5,1], +"t-assert_8cpp_source.html":[3,0,1], +"t-color16_m_8cpp_source.html":[3,0,3], +"t-color256_8cpp_source.html":[3,0,4], +"t-color_8cpp_source.html":[3,0,2], +"t-demo_8cpp_source.html":[3,0,5], +"t-dump_8cpp_source.html":[3,0,6], +"t-fmt-constructors_8cpp_source.html":[3,0,7], +"t-log_8cpp_source.html":[3,0,8], +"t-one-line-if_8cpp_source.html":[3,0,9] +}; diff --git a/docs/search/all_1.js b/docs/search/all_1.js index 4cd6e1a..2b8c4a6 100644 --- a/docs/search/all_1.js +++ b/docs/search/all_1.js @@ -1,5 +1,4 @@ var searchData= [ - ['back_11',['back',['../classclutchlog_1_1fmt.html#a86696b20e5b31c96ba592926efb324f3',1,'clutchlog::fmt']]], - ['bg_12',['bg',['../classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1e',1,'clutchlog::fmt']]] + ['ansi_11',['ansi',['../classclutchlog_1_1fmt.html#a4d0b3c87ba935addf3581b000c0d7502',1,'clutchlog::fmt']]] ]; diff --git a/docs/search/all_10.html b/docs/search/all_10.html new file mode 100644 index 0000000..6fd3a4a --- /dev/null +++ b/docs/search/all_10.html @@ -0,0 +1,30 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/docs/search/all_10.js b/docs/search/all_10.js new file mode 100644 index 0000000..c5f6a91 --- /dev/null +++ b/docs/search/all_10.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['with_5fclutchlog_94',['WITH_CLUTCHLOG',['../clutchlog_8h.html#a5c126962abcc7a40e504a6fc3abdfcc4',1,'clutchlog.h']]] +]; diff --git a/docs/search/all_2.js b/docs/search/all_2.js index 4c82b73..6f86198 100644 --- a/docs/search/all_2.js +++ b/docs/search/all_2.js @@ -1,20 +1,9 @@ var searchData= [ - ['clutchcode_13',['CLUTCHCODE',['../group___use_macros.html#gaaf2e85e1153e6c88b458dd49e3c37c73',1,'clutchlog.h']]], - ['clutchdump_14',['CLUTCHDUMP',['../group___use_macros.html#ga572e3aa19d8b39e3ed0b9e91961104c2',1,'clutchlog.h']]], - ['clutchdump_5fdefault_5fformat_15',['CLUTCHDUMP_DEFAULT_FORMAT',['../group___default_config.html#ga27b613c6727857a7cbcd0165d862034e',1,'clutchlog.h']]], - ['clutchdump_5fdefault_5fsep_16',['CLUTCHDUMP_DEFAULT_SEP',['../group___default_config.html#ga54d29e956575e1c731eab5406135c5df',1,'clutchlog.h']]], - ['clutchfunc_17',['CLUTCHFUNC',['../group___use_macros.html#ga9f77cee4f853e582262930c9c17f90ae',1,'clutchlog.h']]], - ['clutchloc_18',['CLUTCHLOC',['../group___use_macros.html#gae8911119d726a43b77f5781cb5a72813',1,'clutchlog.h']]], - ['clutchlog_19',['clutchlog',['../classclutchlog.html',1,'clutchlog'],['../group___use_macros.html#ga6f86187e2b35e7e1907d688f504a197d',1,'CLUTCHLOG(): clutchlog.h']]], - ['clutchlog_2eh_20',['clutchlog.h',['../clutchlog_8h.html',1,'']]], - ['clutchlog_5fdefault_5fdepth_5fbuilt_5fnodebug_21',['CLUTCHLOG_DEFAULT_DEPTH_BUILT_NODEBUG',['../group___default_config.html#ga8564be479b948ee3052b61783c66d415',1,'clutchlog.h']]], - ['clutchlog_5fdefault_5fdepth_5fmark_22',['CLUTCHLOG_DEFAULT_DEPTH_MARK',['../group___default_config.html#ga45c4c964fad4ad1641d5c9c28c4645b9',1,'clutchlog.h']]], - ['clutchlog_5fdefault_5fformat_23',['CLUTCHLOG_DEFAULT_FORMAT',['../group___default_config.html#ga524c16f280d92ee8ab683162c9ce01fa',1,'clutchlog.h']]], - ['clutchlog_5fdefault_5fhfill_5fmark_24',['CLUTCHLOG_DEFAULT_HFILL_MARK',['../group___default_config.html#ga4eda0c1bfded5df89351b8ce8b9c2805',1,'clutchlog.h']]], - ['clutchlog_5fh_25',['CLUTCHLOG_H',['../clutchlog_8h.html#a0acf7d306292cdee864356f0b433cc16',1,'clutchlog.h']]], - ['clutchlog_5fhave_5funix_5fsysinfo_26',['CLUTCHLOG_HAVE_UNIX_SYSINFO',['../clutchlog_8h.html#a6bbcf13504687db4dbe0474931d867fb',1,'clutchlog.h']]], - ['clutchlog_5fhave_5funix_5fsysioctl_27',['CLUTCHLOG_HAVE_UNIX_SYSIOCTL',['../clutchlog_8h.html#a6bddd1e1be320823da0d6b1d5cef7817',1,'clutchlog.h']]], - ['clutchlog_5fstrip_5fcalls_28',['CLUTCHLOG_STRIP_CALLS',['../group___default_config.html#ga98f30d814d4913a8a7c93a8793f49adf',1,'clutchlog.h']]], - ['clutchlog_20—_20versatile_20_28de_29clutchable_20logging_29',['Clutchlog — versatile (de)clutchable logging',['../index.html',1,'']]] + ['back_12',['back',['../group__colors16.html#ga86696b20e5b31c96ba592926efb324f3',1,'clutchlog::fmt']]], + ['back_5f16m_13',['back_16M',['../group__colors256__16_m.html#gaa2fcbb402dc2426d3720b8bc78a80ec0',1,'clutchlog::fmt']]], + ['back_5f256_14',['back_256',['../group__colors256__16_m.html#ga1d687af385957846034568c3a62d4ef0',1,'clutchlog::fmt']]], + ['bg_15',['bg',['../group__colors16.html#ga1cf3e27e4041250ffea0a6d58010da1e',1,'clutchlog::fmt']]], + ['bg_5f16m_16',['bg_16M',['../structclutchlog_1_1fmt_1_1bg__16_m.html',1,'clutchlog::fmt::bg_16M'],['../structclutchlog_1_1fmt_1_1bg__16_m.html#a363c314ab6a8aa22951b5500d7a78ad0',1,'clutchlog::fmt::bg_16M::bg_16M()'],['../structclutchlog_1_1fmt_1_1bg__16_m.html#ace018922ae99f32b48bf5cacaec91501',1,'clutchlog::fmt::bg_16M::bg_16M(short r, short g, short b)'],['../structclutchlog_1_1fmt_1_1bg__16_m.html#adcd5bd1e69e76e3b36015cf687693c97',1,'clutchlog::fmt::bg_16M::bg_16M(const std::string &srgb)'],['../structclutchlog_1_1fmt_1_1bg__16_m.html#a68f8cb4ab78a1cfb3b7b8e1e95bee11d',1,'clutchlog::fmt::bg_16M::bg_16M(const bg &)']]], + ['bg_5f256_17',['bg_256',['../structclutchlog_1_1fmt_1_1bg__256.html',1,'clutchlog::fmt::bg_256'],['../structclutchlog_1_1fmt_1_1bg__256.html#a0d244a542b6b98a373f8b1f9e92a6a90',1,'clutchlog::fmt::bg_256::bg_256()'],['../structclutchlog_1_1fmt_1_1bg__256.html#a83c663b1a9f00ba7ba7649c9c5605fad',1,'clutchlog::fmt::bg_256::bg_256(const short b)'],['../structclutchlog_1_1fmt_1_1bg__256.html#a096d302be7373acaaf225644683408bd',1,'clutchlog::fmt::bg_256::bg_256(const bg &)']]] ]; diff --git a/docs/search/all_3.js b/docs/search/all_3.js index 6003d4c..ace7e9d 100644 --- a/docs/search/all_3.js +++ b/docs/search/all_3.js @@ -1,13 +1,27 @@ var searchData= [ - ['default_5fdepth_5fmark_30',['default_depth_mark',['../classclutchlog.html#a229fd61519f1245282440120f2d45fb5',1,'clutchlog']]], - ['default_5fformat_31',['default_format',['../classclutchlog.html#a0c4ac57601e6f8d146fd5cc060968ecc',1,'clutchlog']]], - ['default_5fhfill_5fchar_32',['default_hfill_char',['../classclutchlog.html#a76eb34537b634aadb75e255f7887eeb6',1,'clutchlog']]], - ['default_5fhfill_5fmax_33',['default_hfill_max',['../classclutchlog.html#ac95630bfe9cf547d2b7c4b3430eaedc1',1,'clutchlog']]], - ['default_5fhfill_5fmin_34',['default_hfill_min',['../classclutchlog.html#a5a9a98c3528117223ceff22bc6bee5f7',1,'clutchlog']]], - ['default_5fstrip_5fcalls_35',['default_strip_calls',['../classclutchlog.html#a1a8cb6411726133208f5a2f2cb42d468',1,'clutchlog']]], - ['default_20configuration_20management_36',['Default configuration management',['../group___default_config.html',1,'']]], - ['dump_37',['dump',['../classclutchlog.html#a63308e8deae3cfec6801318203494143',1,'clutchlog']]], - ['dump_5fdefault_5fformat_38',['dump_default_format',['../classclutchlog.html#ace879554298e6e6e36dafef330c27be8',1,'clutchlog']]], - ['dump_5fdefault_5fsep_39',['dump_default_sep',['../classclutchlog.html#af898bffe23b125245e338d7495c76d45',1,'clutchlog']]] + ['clutchcode_18',['CLUTCHCODE',['../group___use_macros.html#gaaf2e85e1153e6c88b458dd49e3c37c73',1,'clutchlog.h']]], + ['clutchdump_19',['CLUTCHDUMP',['../group___use_macros.html#ga572e3aa19d8b39e3ed0b9e91961104c2',1,'clutchlog.h']]], + ['clutchdump_5fdefault_5fformat_20',['CLUTCHDUMP_DEFAULT_FORMAT',['../group___default_config.html#ga27b613c6727857a7cbcd0165d862034e',1,'clutchlog.h']]], + ['clutchdump_5fdefault_5fsep_21',['CLUTCHDUMP_DEFAULT_SEP',['../group___default_config.html#ga54d29e956575e1c731eab5406135c5df',1,'clutchlog.h']]], + ['clutchfunc_22',['CLUTCHFUNC',['../group___use_macros.html#ga9f77cee4f853e582262930c9c17f90ae',1,'clutchlog.h']]], + ['clutchloc_23',['CLUTCHLOC',['../group___use_macros.html#gae8911119d726a43b77f5781cb5a72813',1,'clutchlog.h']]], + ['clutchlog_24',['clutchlog',['../classclutchlog.html',1,'clutchlog'],['../group___use_macros.html#ga6f86187e2b35e7e1907d688f504a197d',1,'CLUTCHLOG(): clutchlog.h']]], + ['clutchlog_2eh_25',['clutchlog.h',['../clutchlog_8h.html',1,'']]], + ['clutchlog_5fdefault_5fdepth_5fbuilt_5fnodebug_26',['CLUTCHLOG_DEFAULT_DEPTH_BUILT_NODEBUG',['../group___default_config.html#ga8564be479b948ee3052b61783c66d415',1,'clutchlog.h']]], + ['clutchlog_5fdefault_5fdepth_5fmark_27',['CLUTCHLOG_DEFAULT_DEPTH_MARK',['../group___default_config.html#ga45c4c964fad4ad1641d5c9c28c4645b9',1,'clutchlog.h']]], + ['clutchlog_5fdefault_5fformat_28',['CLUTCHLOG_DEFAULT_FORMAT',['../group___default_config.html#ga524c16f280d92ee8ab683162c9ce01fa',1,'clutchlog.h']]], + ['clutchlog_5fdefault_5fhfill_5fmark_29',['CLUTCHLOG_DEFAULT_HFILL_MARK',['../group___default_config.html#ga4eda0c1bfded5df89351b8ce8b9c2805',1,'clutchlog.h']]], + ['clutchlog_5fh_30',['CLUTCHLOG_H',['../clutchlog_8h.html#a0acf7d306292cdee864356f0b433cc16',1,'clutchlog.h']]], + ['clutchlog_5fhave_5funix_5fsysinfo_31',['CLUTCHLOG_HAVE_UNIX_SYSINFO',['../clutchlog_8h.html#a6bbcf13504687db4dbe0474931d867fb',1,'clutchlog.h']]], + ['clutchlog_5fhave_5funix_5fsysioctl_32',['CLUTCHLOG_HAVE_UNIX_SYSIOCTL',['../clutchlog_8h.html#a6bddd1e1be320823da0d6b1d5cef7817',1,'clutchlog.h']]], + ['clutchlog_5fstrip_5fcalls_33',['CLUTCHLOG_STRIP_CALLS',['../group___default_config.html#ga98f30d814d4913a8a7c93a8793f49adf',1,'clutchlog.h']]], + ['color_34',['color',['../structclutchlog_1_1fmt_1_1color.html',1,'clutchlog::fmt::color'],['../structclutchlog_1_1fmt_1_1color.html#a741d0165287350d8fcacb1f472ce5dac',1,'clutchlog::fmt::color::color()']]], + ['color_5f16m_35',['color_16M',['../structclutchlog_1_1fmt_1_1color__16_m.html',1,'clutchlog::fmt::color_16M'],['../structclutchlog_1_1fmt_1_1color__16_m.html#aea10e881fb9b570267f5751fb67c4282',1,'clutchlog::fmt::color_16M::color_16M(ground t)'],['../structclutchlog_1_1fmt_1_1color__16_m.html#a36d9cf42044fec34b7858142d86137d3',1,'clutchlog::fmt::color_16M::color_16M(ground t, short r, short g, short b)'],['../structclutchlog_1_1fmt_1_1color__16_m.html#a55e39e7eb3ced3095c00914eff52470c',1,'clutchlog::fmt::color_16M::color_16M(ground t, const std::string &srgb)']]], + ['color_5f256_36',['color_256',['../structclutchlog_1_1fmt_1_1color__256.html',1,'clutchlog::fmt::color_256'],['../structclutchlog_1_1fmt_1_1color__256.html#a12fdff3c5c4edbf952aaa31519f0171c',1,'clutchlog::fmt::color_256::color_256(ground t)'],['../structclutchlog_1_1fmt_1_1color__256.html#a1b68065b35141c018b33c3f2c45f5726',1,'clutchlog::fmt::color_256::color_256(ground t, const short i)']]], + ['colors_20management_20in_2016_20colors_20mode_20_284_2dbits_20ansi_29_2e_37',['Colors management in 16 colors mode (4-bits ANSI).',['../group__colors16.html',1,'']]], + ['colors_5f16_38',['colors_16',['../classclutchlog_1_1fmt.html#a4d0b3c87ba935addf3581b000c0d7502a1e7cced329549fc4c2393381f068062e',1,'clutchlog::fmt']]], + ['colors_5f16m_39',['colors_16M',['../classclutchlog_1_1fmt.html#a4d0b3c87ba935addf3581b000c0d7502a1844e5aae3a3eefc500c545e3c35bcfa',1,'clutchlog::fmt']]], + ['colors_5f256_40',['colors_256',['../classclutchlog_1_1fmt.html#a4d0b3c87ba935addf3581b000c0d7502a7a3c32a8827eb17435511b4c7a429749',1,'clutchlog::fmt']]], + ['clutchlog_20—_20versatile_20_28de_29clutchable_20spatial_20logging_41',['Clutchlog — versatile (de)clutchable spatial logging',['../index.html',1,'']]] ]; diff --git a/docs/search/all_4.js b/docs/search/all_4.js index 3f71f0d..d8f7ffb 100644 --- a/docs/search/all_4.js +++ b/docs/search/all_4.js @@ -1,11 +1,13 @@ var searchData= [ - ['fg_40',['fg',['../classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0',1,'clutchlog::fmt']]], - ['file_41',['file',['../classclutchlog.html#a10064493c22f5c03b502a42d814c5c5c',1,'clutchlog']]], - ['fmt_42',['fmt',['../classclutchlog_1_1fmt.html',1,'clutchlog::fmt'],['../classclutchlog_1_1fmt.html#a407506bc02ed3f91d88b3df630e54959',1,'clutchlog::fmt::fmt()']]], - ['fore_43',['fore',['../classclutchlog_1_1fmt.html#a8307a848fcf9ed929435b3e1f2b53401',1,'clutchlog::fmt']]], - ['format_44',['format',['../classclutchlog.html#a656c277e074b64728cca871f2b484d1c',1,'clutchlog::format(const std::string &format)'],['../classclutchlog.html#afc53dbca51d0e2322a21899d0c571a80',1,'clutchlog::format() const'],['../classclutchlog.html#abd692cca9a2e772e7c9d6531bb3c7761',1,'clutchlog::format(std::string row, const std::string &what, const level &stage, const std::string &file, const std::string &func, const size_t line) const']]], - ['format_5fcomment_45',['format_comment',['../classclutchlog.html#a2144abe4ec6f630126b6490908b5f924',1,'clutchlog::format_comment(const std::string &format)'],['../classclutchlog.html#aa8d0a569ed3623ce36c5e567ec2d1ad5',1,'clutchlog::format_comment() const']]], - ['formating_20tools_46',['Formating tools',['../group___formating.html',1,'']]], - ['func_47',['func',['../classclutchlog.html#ad32b5a0274dc03ee0004f67ba58b2447',1,'clutchlog']]] + ['default_5fdepth_5fmark_42',['default_depth_mark',['../classclutchlog.html#a229fd61519f1245282440120f2d45fb5',1,'clutchlog']]], + ['default_5fformat_43',['default_format',['../classclutchlog.html#a0c4ac57601e6f8d146fd5cc060968ecc',1,'clutchlog']]], + ['default_5fhfill_5fchar_44',['default_hfill_char',['../classclutchlog.html#a76eb34537b634aadb75e255f7887eeb6',1,'clutchlog']]], + ['default_5fhfill_5fmax_45',['default_hfill_max',['../classclutchlog.html#ac95630bfe9cf547d2b7c4b3430eaedc1',1,'clutchlog']]], + ['default_5fhfill_5fmin_46',['default_hfill_min',['../classclutchlog.html#a5a9a98c3528117223ceff22bc6bee5f7',1,'clutchlog']]], + ['default_5fstrip_5fcalls_47',['default_strip_calls',['../classclutchlog.html#a1a8cb6411726133208f5a2f2cb42d468',1,'clutchlog']]], + ['default_20configuration_20management_48',['Default configuration management',['../group___default_config.html',1,'']]], + ['dump_49',['dump',['../classclutchlog.html#a63308e8deae3cfec6801318203494143',1,'clutchlog']]], + ['dump_5fdefault_5fformat_50',['dump_default_format',['../classclutchlog.html#ace879554298e6e6e36dafef330c27be8',1,'clutchlog']]], + ['dump_5fdefault_5fsep_51',['dump_default_sep',['../classclutchlog.html#af898bffe23b125245e338d7495c76d45',1,'clutchlog']]] ]; diff --git a/docs/search/all_5.js b/docs/search/all_5.js index 4f4b3dc..2ab8ba1 100644 --- a/docs/search/all_5.js +++ b/docs/search/all_5.js @@ -1,4 +1,15 @@ var searchData= [ - ['high_2dlevel_20api_20macros_48',['High-level API macros',['../group___use_macros.html',1,'']]] + ['fg_52',['fg',['../group__colors16.html#ga4662a3ec3577c6a575a2c734636ed8a0',1,'clutchlog::fmt']]], + ['fg_5f16m_53',['fg_16M',['../structclutchlog_1_1fmt_1_1fg__16_m.html',1,'clutchlog::fmt::fg_16M'],['../structclutchlog_1_1fmt_1_1fg__16_m.html#a984525f33eb86b7f8b3e5d0874611194',1,'clutchlog::fmt::fg_16M::fg_16M()'],['../structclutchlog_1_1fmt_1_1fg__16_m.html#a531b717b8d78a0a5929fa90d0a01d7e5',1,'clutchlog::fmt::fg_16M::fg_16M(short r, short g, short b)'],['../structclutchlog_1_1fmt_1_1fg__16_m.html#abc768d6b7c2139c14f210755108006d3',1,'clutchlog::fmt::fg_16M::fg_16M(const std::string &srgb)'],['../structclutchlog_1_1fmt_1_1fg__16_m.html#a9da40a4a7ff3b80f028f26322f59eba8',1,'clutchlog::fmt::fg_16M::fg_16M(const fg &)']]], + ['fg_5f256_54',['fg_256',['../structclutchlog_1_1fmt_1_1fg__256.html',1,'clutchlog::fmt::fg_256'],['../structclutchlog_1_1fmt_1_1fg__256.html#a97c241e9f80c63d269953cc525a72c7a',1,'clutchlog::fmt::fg_256::fg_256()'],['../structclutchlog_1_1fmt_1_1fg__256.html#a6df3d848db0e55c79709fb4565cbfd59',1,'clutchlog::fmt::fg_256::fg_256(const short f)'],['../structclutchlog_1_1fmt_1_1fg__256.html#a501fff36520f20ba4973ba3848fb9c23',1,'clutchlog::fmt::fg_256::fg_256(const fg &)']]], + ['file_55',['file',['../classclutchlog.html#a10064493c22f5c03b502a42d814c5c5c',1,'clutchlog']]], + ['fmt_56',['fmt',['../classclutchlog_1_1fmt.html',1,'clutchlog::fmt'],['../classclutchlog_1_1fmt.html#a407506bc02ed3f91d88b3df630e54959',1,'clutchlog::fmt::fmt()']]], + ['fore_57',['fore',['../group__colors16.html#ga8307a848fcf9ed929435b3e1f2b53401',1,'clutchlog::fmt']]], + ['fore_5f16m_58',['fore_16M',['../group__colors256__16_m.html#ga626c99eb11d1718d7a2a8bb3f079e6de',1,'clutchlog::fmt']]], + ['fore_5f256_59',['fore_256',['../group__colors256__16_m.html#gad98fbe84ef338ded8425d56955825a2c',1,'clutchlog::fmt']]], + ['format_60',['format',['../classclutchlog.html#a656c277e074b64728cca871f2b484d1c',1,'clutchlog::format(const std::string &format)'],['../classclutchlog.html#afc53dbca51d0e2322a21899d0c571a80',1,'clutchlog::format() const'],['../classclutchlog.html#abd692cca9a2e772e7c9d6531bb3c7761',1,'clutchlog::format(std::string row, const std::string &what, const level &stage, const std::string &file, const std::string &func, const size_t line) const']]], + ['format_5fcomment_61',['format_comment',['../classclutchlog.html#a2144abe4ec6f630126b6490908b5f924',1,'clutchlog::format_comment(const std::string &format)'],['../classclutchlog.html#aa8d0a569ed3623ce36c5e567ec2d1ad5',1,'clutchlog::format_comment() const']]], + ['formating_20tools_62',['Formating tools',['../group___formating.html',1,'']]], + ['func_63',['func',['../classclutchlog.html#ad32b5a0274dc03ee0004f67ba58b2447',1,'clutchlog']]] ]; diff --git a/docs/search/all_6.js b/docs/search/all_6.js index f4056a9..56334e1 100644 --- a/docs/search/all_6.js +++ b/docs/search/all_6.js @@ -1,11 +1,4 @@ var searchData= [ - ['level_49',['level',['../classclutchlog.html#a10fd25a1b51c8c95bd6d876ce1b4b928',1,'clutchlog']]], - ['level_5fof_50',['level_of',['../classclutchlog.html#acebed8c9df9204f22bf8488e62e1cedd',1,'clutchlog']]], - ['levels_51',['levels',['../classclutchlog.html#aff3aa09fb60f7d6dc688c028d3834d8a',1,'clutchlog']]], - ['line_52',['line',['../classclutchlog.html#aa26c6b81ebaeb9e9daa3457e3a3d17c9',1,'clutchlog']]], - ['locate_53',['locate',['../classclutchlog.html#a4ebdfcded6c56262676bf6926d63fc96',1,'clutchlog']]], - ['location_54',['location',['../classclutchlog.html#a6666106b9e5c239b6ae5e0d1091648e3',1,'clutchlog']]], - ['log_55',['log',['../classclutchlog.html#a23dbb98f0d3c5cc21c232cde16cf317a',1,'clutchlog']]], - ['logger_56',['logger',['../classclutchlog.html#acfaceb77da01503b432644a3efaee4fa',1,'clutchlog']]] + ['ground_64',['ground',['../structclutchlog_1_1fmt_1_1color.html#ad4d10c015b3af3cc10d1cf40fe38e4f0',1,'clutchlog::fmt::color']]] ]; diff --git a/docs/search/all_7.js b/docs/search/all_7.js index e54916c..8cf43ea 100644 --- a/docs/search/all_7.js +++ b/docs/search/all_7.js @@ -1,5 +1,4 @@ var searchData= [ - ['main_20class_57',['Main class',['../group___main.html',1,'']]], - ['matches_58',['matches',['../structclutchlog_1_1scope__t.html#ae6c0e4ed20db797124ed1e5faa033ad9',1,'clutchlog::scope_t']]] + ['high_2dlevel_20api_20macros_65',['High-level API macros',['../group___use_macros.html',1,'']]] ]; diff --git a/docs/search/all_8.js b/docs/search/all_8.js index 09957da..59fb36c 100644 --- a/docs/search/all_8.js +++ b/docs/search/all_8.js @@ -1,6 +1,6 @@ var searchData= [ - ['operator_28_29_59',['operator()',['../classclutchlog_1_1fmt.html#afeaedd18298498d1dcfcc15f5f17ac3c',1,'clutchlog::fmt']]], - ['operator_3c_3c_60',['operator<<',['../classclutchlog_1_1fmt.html#a96849ba427feac3a2eeaa1165e3845da',1,'clutchlog::fmt']]], - ['out_61',['out',['../classclutchlog.html#a7fd7c7bd3668c537061c314a619a336d',1,'clutchlog::out(std::ostream &out)'],['../classclutchlog.html#a6c6ab42a1df147e6c2d115bc36ec8266',1,'clutchlog::out()']]] + ['internal_20colors_20management_20in_20256_20and_2016m_20colors_20modes_2e_66',['Internal colors management in 256 and 16M colors modes.',['../group__colors256__16_m.html',1,'']]], + ['index_67',['index',['../structclutchlog_1_1fmt_1_1color__256.html#a8e0b13d6bad87c83c3465524a5d33988',1,'clutchlog::fmt::color_256']]], + ['is_5fset_68',['is_set',['../structclutchlog_1_1fmt_1_1color.html#a96d7161ef1e7cc631ae670cd3f364603',1,'clutchlog::fmt::color::is_set()'],['../structclutchlog_1_1fmt_1_1color__256.html#ad79557682cec1c053dda258581972111',1,'clutchlog::fmt::color_256::is_set()'],['../structclutchlog_1_1fmt_1_1color__16_m.html#a780c11e42bb140732ffd37cf4eef9e1d',1,'clutchlog::fmt::color_16M::is_set()']]] ]; diff --git a/docs/search/all_9.js b/docs/search/all_9.js index 6a79c66..0c7f78a 100644 --- a/docs/search/all_9.js +++ b/docs/search/all_9.js @@ -1,4 +1,11 @@ var searchData= [ - ['print_5fon_62',['print_on',['../classclutchlog_1_1fmt.html#a0b607e343b6813b99eafca1fdfec9cd0',1,'clutchlog::fmt']]] + ['level_69',['level',['../classclutchlog.html#a10fd25a1b51c8c95bd6d876ce1b4b928',1,'clutchlog']]], + ['level_5fof_70',['level_of',['../classclutchlog.html#acebed8c9df9204f22bf8488e62e1cedd',1,'clutchlog']]], + ['levels_71',['levels',['../classclutchlog.html#aff3aa09fb60f7d6dc688c028d3834d8a',1,'clutchlog']]], + ['line_72',['line',['../classclutchlog.html#aa26c6b81ebaeb9e9daa3457e3a3d17c9',1,'clutchlog']]], + ['locate_73',['locate',['../classclutchlog.html#a4ebdfcded6c56262676bf6926d63fc96',1,'clutchlog']]], + ['location_74',['location',['../classclutchlog.html#a6666106b9e5c239b6ae5e0d1091648e3',1,'clutchlog']]], + ['log_75',['log',['../classclutchlog.html#a23dbb98f0d3c5cc21c232cde16cf317a',1,'clutchlog']]], + ['logger_76',['logger',['../classclutchlog.html#acfaceb77da01503b432644a3efaee4fa',1,'clutchlog']]] ]; diff --git a/docs/search/all_a.js b/docs/search/all_a.js index 956811c..958fa4b 100644 --- a/docs/search/all_a.js +++ b/docs/search/all_a.js @@ -1,4 +1,6 @@ var searchData= [ - ['replace_63',['replace',['../classclutchlog.html#a972f895c70edc335f3018a2c8971d59e',1,'clutchlog::replace(const std::string &form, const std::string &mark, const std::string &tag) const'],['../classclutchlog.html#ae90d5a1a428587ad67b38b2ea4ca9fa2',1,'clutchlog::replace(const std::string &form, const std::string &mark, const size_t tag) const']]] + ['main_20class_77',['Main class',['../group___main.html',1,'']]], + ['matches_78',['matches',['../structclutchlog_1_1scope__t.html#ae6c0e4ed20db797124ed1e5faa033ad9',1,'clutchlog::scope_t']]], + ['mode_79',['mode',['../classclutchlog_1_1fmt.html#a0aa57cdd56ccc79c7750921ab534b205',1,'clutchlog::fmt']]] ]; diff --git a/docs/search/all_b.js b/docs/search/all_b.js index b118f25..5b47d59 100644 --- a/docs/search/all_b.js +++ b/docs/search/all_b.js @@ -1,7 +1,6 @@ var searchData= [ - ['scope_5ft_64',['scope_t',['../structclutchlog_1_1scope__t.html',1,'clutchlog::scope_t'],['../structclutchlog_1_1scope__t.html#a0f1d865ffcf17f215e5559cdd2690572',1,'clutchlog::scope_t::scope_t()']]], - ['stage_65',['stage',['../structclutchlog_1_1scope__t.html#adcca6846ff90d436c61861db85917744',1,'clutchlog::scope_t']]], - ['str_66',['str',['../classclutchlog_1_1fmt.html#ab588e04e982b0b26ec979773d51ad41b',1,'clutchlog::fmt']]], - ['style_67',['style',['../classclutchlog_1_1fmt.html#a2bb0fde65fcd264393e102314dd1610b',1,'clutchlog::fmt::style()'],['../classclutchlog.html#ac3ec55057b9c734b66f169bf43dbd591',1,'clutchlog::style(level stage, FMT... styles)'],['../classclutchlog.html#ad1cfa9945c3f7f98fe8ce724c627d0d6',1,'clutchlog::style(level stage, fmt style)'],['../classclutchlog.html#a4831f44fd5ade102e57320632095934d',1,'clutchlog::style(level stage) const']]] + ['operator_28_29_80',['operator()',['../classclutchlog_1_1fmt.html#afeaedd18298498d1dcfcc15f5f17ac3c',1,'clutchlog::fmt']]], + ['operator_3c_3c_81',['operator<<',['../group__colors16.html#ga5a697f5ad3326ea25b139e25252b4cf7',1,'clutchlog::fmt::operator<<()'],['../group__colors16.html#ga379b0af834c7c561edc5c1e3a3427a33',1,'clutchlog::fmt::operator<<()'],['../structclutchlog_1_1fmt_1_1color.html#a826e3d3eba925608442439d6bc3a95a6',1,'clutchlog::fmt::color::operator<<()'],['../classclutchlog_1_1fmt.html#a96849ba427feac3a2eeaa1165e3845da',1,'clutchlog::fmt::operator<<()']]], + ['out_82',['out',['../classclutchlog.html#a7fd7c7bd3668c537061c314a619a336d',1,'clutchlog::out(std::ostream &out)'],['../classclutchlog.html#a6c6ab42a1df147e6c2d115bc36ec8266',1,'clutchlog::out()']]] ]; diff --git a/docs/search/all_c.js b/docs/search/all_c.js index 8d43d28..8fbe40c 100644 --- a/docs/search/all_c.js +++ b/docs/search/all_c.js @@ -1,6 +1,4 @@ var searchData= [ - ['there_68',['there',['../structclutchlog_1_1scope__t.html#a7918e55cd3bac1bd30c69b8c711387ff',1,'clutchlog::scope_t']]], - ['threshold_69',['threshold',['../classclutchlog.html#a3cb0e4f43a4cadf1966001ad7c9861f4',1,'clutchlog::threshold(level l)'],['../classclutchlog.html#a7a7738eaad114bfa870121412fe23ad9',1,'clutchlog::threshold(const std::string &l)'],['../classclutchlog.html#ab45287cc9c14217904a13aff49573732',1,'clutchlog::threshold() const']]], - ['typo_70',['typo',['../classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89',1,'clutchlog::fmt']]] + ['print_5fon_83',['print_on',['../structclutchlog_1_1fmt_1_1color.html#aa75e958436afe333924b6db3e5f0821f',1,'clutchlog::fmt::color::print_on()'],['../structclutchlog_1_1fmt_1_1color__256.html#aaae6106a11eddade981172324a43df68',1,'clutchlog::fmt::color_256::print_on()'],['../structclutchlog_1_1fmt_1_1color__16_m.html#a674910195e7bb14d78f0cf56c308a47e',1,'clutchlog::fmt::color_16M::print_on()'],['../classclutchlog_1_1fmt.html#a0b607e343b6813b99eafca1fdfec9cd0',1,'clutchlog::fmt::print_on()']]] ]; diff --git a/docs/search/all_d.js b/docs/search/all_d.js index 872ddfa..6e67b47 100644 --- a/docs/search/all_d.js +++ b/docs/search/all_d.js @@ -1,4 +1,5 @@ var searchData= [ - ['with_5fclutchlog_71',['WITH_CLUTCHLOG',['../clutchlog_8h.html#a5c126962abcc7a40e504a6fc3abdfcc4',1,'clutchlog.h']]] + ['red_84',['red',['../structclutchlog_1_1fmt_1_1color__16_m.html#a19e1517a9afb75a4e6224f718ed11c61',1,'clutchlog::fmt::color_16M']]], + ['replace_85',['replace',['../classclutchlog.html#a972f895c70edc335f3018a2c8971d59e',1,'clutchlog::replace(const std::string &form, const std::string &mark, const std::string &tag) const'],['../classclutchlog.html#ae90d5a1a428587ad67b38b2ea4ca9fa2',1,'clutchlog::replace(const std::string &form, const std::string &mark, const size_t tag) const']]] ]; diff --git a/docs/search/all_e.html b/docs/search/all_e.html new file mode 100644 index 0000000..2e3c74d --- /dev/null +++ b/docs/search/all_e.html @@ -0,0 +1,30 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/docs/search/all_e.js b/docs/search/all_e.js new file mode 100644 index 0000000..f5bcee1 --- /dev/null +++ b/docs/search/all_e.js @@ -0,0 +1,7 @@ +var searchData= +[ + ['scope_5ft_86',['scope_t',['../structclutchlog_1_1scope__t.html',1,'clutchlog::scope_t'],['../structclutchlog_1_1scope__t.html#a0f1d865ffcf17f215e5559cdd2690572',1,'clutchlog::scope_t::scope_t()']]], + ['stage_87',['stage',['../structclutchlog_1_1scope__t.html#adcca6846ff90d436c61861db85917744',1,'clutchlog::scope_t']]], + ['str_88',['str',['../classclutchlog_1_1fmt.html#ab588e04e982b0b26ec979773d51ad41b',1,'clutchlog::fmt']]], + ['style_89',['style',['../classclutchlog_1_1fmt.html#a2bb0fde65fcd264393e102314dd1610b',1,'clutchlog::fmt::style()'],['../classclutchlog.html#ac3ec55057b9c734b66f169bf43dbd591',1,'clutchlog::style(level stage, FMT... styles)'],['../classclutchlog.html#ad1cfa9945c3f7f98fe8ce724c627d0d6',1,'clutchlog::style(level stage, fmt style)'],['../classclutchlog.html#a4831f44fd5ade102e57320632095934d',1,'clutchlog::style(level stage) const']]] +]; diff --git a/docs/search/all_f.html b/docs/search/all_f.html new file mode 100644 index 0000000..246f8ab --- /dev/null +++ b/docs/search/all_f.html @@ -0,0 +1,30 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/docs/search/all_f.js b/docs/search/all_f.js new file mode 100644 index 0000000..e8e9cc8 --- /dev/null +++ b/docs/search/all_f.js @@ -0,0 +1,7 @@ +var searchData= +[ + ['there_90',['there',['../structclutchlog_1_1scope__t.html#a7918e55cd3bac1bd30c69b8c711387ff',1,'clutchlog::scope_t']]], + ['threshold_91',['threshold',['../classclutchlog.html#a3cb0e4f43a4cadf1966001ad7c9861f4',1,'clutchlog::threshold(level l)'],['../classclutchlog.html#a7a7738eaad114bfa870121412fe23ad9',1,'clutchlog::threshold(const std::string &l)'],['../classclutchlog.html#ab45287cc9c14217904a13aff49573732',1,'clutchlog::threshold() const']]], + ['type_92',['type',['../structclutchlog_1_1fmt_1_1color.html#a3fd18c290567bd5c4971663a1aed12ae',1,'clutchlog::fmt::color']]], + ['typo_93',['typo',['../classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89',1,'clutchlog::fmt']]] +]; diff --git a/docs/search/classes_0.js b/docs/search/classes_0.js index a42134b..3265b18 100644 --- a/docs/search/classes_0.js +++ b/docs/search/classes_0.js @@ -1,4 +1,5 @@ var searchData= [ - ['clutchlog_72',['clutchlog',['../classclutchlog.html',1,'']]] + ['bg_5f16m_95',['bg_16M',['../structclutchlog_1_1fmt_1_1bg__16_m.html',1,'clutchlog::fmt']]], + ['bg_5f256_96',['bg_256',['../structclutchlog_1_1fmt_1_1bg__256.html',1,'clutchlog::fmt']]] ]; diff --git a/docs/search/classes_1.js b/docs/search/classes_1.js index ff398aa..c84bdf2 100644 --- a/docs/search/classes_1.js +++ b/docs/search/classes_1.js @@ -1,4 +1,7 @@ var searchData= [ - ['fmt_73',['fmt',['../classclutchlog_1_1fmt.html',1,'clutchlog']]] + ['clutchlog_97',['clutchlog',['../classclutchlog.html',1,'']]], + ['color_98',['color',['../structclutchlog_1_1fmt_1_1color.html',1,'clutchlog::fmt']]], + ['color_5f16m_99',['color_16M',['../structclutchlog_1_1fmt_1_1color__16_m.html',1,'clutchlog::fmt']]], + ['color_5f256_100',['color_256',['../structclutchlog_1_1fmt_1_1color__256.html',1,'clutchlog::fmt']]] ]; diff --git a/docs/search/classes_2.js b/docs/search/classes_2.js index 25f3e6e..a713fc7 100644 --- a/docs/search/classes_2.js +++ b/docs/search/classes_2.js @@ -1,4 +1,6 @@ var searchData= [ - ['scope_5ft_74',['scope_t',['../structclutchlog_1_1scope__t.html',1,'clutchlog']]] + ['fg_5f16m_101',['fg_16M',['../structclutchlog_1_1fmt_1_1fg__16_m.html',1,'clutchlog::fmt']]], + ['fg_5f256_102',['fg_256',['../structclutchlog_1_1fmt_1_1fg__256.html',1,'clutchlog::fmt']]], + ['fmt_103',['fmt',['../classclutchlog_1_1fmt.html',1,'clutchlog']]] ]; diff --git a/docs/search/classes_3.html b/docs/search/classes_3.html new file mode 100644 index 0000000..2102545 --- /dev/null +++ b/docs/search/classes_3.html @@ -0,0 +1,30 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/docs/search/classes_3.js b/docs/search/classes_3.js new file mode 100644 index 0000000..07226e8 --- /dev/null +++ b/docs/search/classes_3.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['scope_5ft_104',['scope_t',['../structclutchlog_1_1scope__t.html',1,'clutchlog']]] +]; diff --git a/docs/search/defines_0.js b/docs/search/defines_0.js index 1f00a63..b191f75 100644 --- a/docs/search/defines_0.js +++ b/docs/search/defines_0.js @@ -1,6 +1,6 @@ var searchData= [ - ['clutchlog_5fh_127',['CLUTCHLOG_H',['../clutchlog_8h.html#a0acf7d306292cdee864356f0b433cc16',1,'clutchlog.h']]], - ['clutchlog_5fhave_5funix_5fsysinfo_128',['CLUTCHLOG_HAVE_UNIX_SYSINFO',['../clutchlog_8h.html#a6bbcf13504687db4dbe0474931d867fb',1,'clutchlog.h']]], - ['clutchlog_5fhave_5funix_5fsysioctl_129',['CLUTCHLOG_HAVE_UNIX_SYSIOCTL',['../clutchlog_8h.html#a6bddd1e1be320823da0d6b1d5cef7817',1,'clutchlog.h']]] + ['clutchlog_5fh_178',['CLUTCHLOG_H',['../clutchlog_8h.html#a0acf7d306292cdee864356f0b433cc16',1,'clutchlog.h']]], + ['clutchlog_5fhave_5funix_5fsysinfo_179',['CLUTCHLOG_HAVE_UNIX_SYSINFO',['../clutchlog_8h.html#a6bbcf13504687db4dbe0474931d867fb',1,'clutchlog.h']]], + ['clutchlog_5fhave_5funix_5fsysioctl_180',['CLUTCHLOG_HAVE_UNIX_SYSIOCTL',['../clutchlog_8h.html#a6bddd1e1be320823da0d6b1d5cef7817',1,'clutchlog.h']]] ]; diff --git a/docs/search/defines_1.js b/docs/search/defines_1.js index 8a29f38..60df034 100644 --- a/docs/search/defines_1.js +++ b/docs/search/defines_1.js @@ -1,4 +1,4 @@ var searchData= [ - ['with_5fclutchlog_130',['WITH_CLUTCHLOG',['../clutchlog_8h.html#a5c126962abcc7a40e504a6fc3abdfcc4',1,'clutchlog.h']]] + ['with_5fclutchlog_181',['WITH_CLUTCHLOG',['../clutchlog_8h.html#a5c126962abcc7a40e504a6fc3abdfcc4',1,'clutchlog.h']]] ]; diff --git a/docs/search/enums_0.js b/docs/search/enums_0.js index 7de33f7..fdd25d1 100644 --- a/docs/search/enums_0.js +++ b/docs/search/enums_0.js @@ -1,4 +1,4 @@ var searchData= [ - ['bg_122',['bg',['../classclutchlog_1_1fmt.html#a1cf3e27e4041250ffea0a6d58010da1e',1,'clutchlog::fmt']]] + ['ansi_168',['ansi',['../classclutchlog_1_1fmt.html#a4d0b3c87ba935addf3581b000c0d7502',1,'clutchlog::fmt']]] ]; diff --git a/docs/search/enums_1.js b/docs/search/enums_1.js index 7d79fab..dc48c8f 100644 --- a/docs/search/enums_1.js +++ b/docs/search/enums_1.js @@ -1,4 +1,4 @@ var searchData= [ - ['fg_123',['fg',['../classclutchlog_1_1fmt.html#a4662a3ec3577c6a575a2c734636ed8a0',1,'clutchlog::fmt']]] + ['bg_169',['bg',['../group__colors16.html#ga1cf3e27e4041250ffea0a6d58010da1e',1,'clutchlog::fmt']]] ]; diff --git a/docs/search/enums_2.js b/docs/search/enums_2.js index 29c82a5..f37152f 100644 --- a/docs/search/enums_2.js +++ b/docs/search/enums_2.js @@ -1,4 +1,4 @@ var searchData= [ - ['level_124',['level',['../classclutchlog.html#a10fd25a1b51c8c95bd6d876ce1b4b928',1,'clutchlog']]] + ['fg_170',['fg',['../group__colors16.html#ga4662a3ec3577c6a575a2c734636ed8a0',1,'clutchlog::fmt']]] ]; diff --git a/docs/search/enums_3.js b/docs/search/enums_3.js index 859f70c..1e10656 100644 --- a/docs/search/enums_3.js +++ b/docs/search/enums_3.js @@ -1,4 +1,4 @@ var searchData= [ - ['typo_125',['typo',['../classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89',1,'clutchlog::fmt']]] + ['ground_171',['ground',['../structclutchlog_1_1fmt_1_1color.html#ad4d10c015b3af3cc10d1cf40fe38e4f0',1,'clutchlog::fmt::color']]] ]; diff --git a/docs/search/enums_4.html b/docs/search/enums_4.html new file mode 100644 index 0000000..b8b51ef --- /dev/null +++ b/docs/search/enums_4.html @@ -0,0 +1,30 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/docs/search/enums_4.js b/docs/search/enums_4.js new file mode 100644 index 0000000..6ec3b74 --- /dev/null +++ b/docs/search/enums_4.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['level_172',['level',['../classclutchlog.html#a10fd25a1b51c8c95bd6d876ce1b4b928',1,'clutchlog']]] +]; diff --git a/docs/search/enums_5.html b/docs/search/enums_5.html new file mode 100644 index 0000000..d39b033 --- /dev/null +++ b/docs/search/enums_5.html @@ -0,0 +1,30 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/docs/search/enums_5.js b/docs/search/enums_5.js new file mode 100644 index 0000000..5ccb9ab --- /dev/null +++ b/docs/search/enums_5.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['typo_173',['typo',['../classclutchlog_1_1fmt.html#a932f47b78fb7b10590d5613a1c4eab89',1,'clutchlog::fmt']]] +]; diff --git a/docs/search/enumvalues_0.html b/docs/search/enumvalues_0.html new file mode 100644 index 0000000..9286248 --- /dev/null +++ b/docs/search/enumvalues_0.html @@ -0,0 +1,30 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/docs/search/enumvalues_0.js b/docs/search/enumvalues_0.js new file mode 100644 index 0000000..752fff6 --- /dev/null +++ b/docs/search/enumvalues_0.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['colors_5f16_174',['colors_16',['../classclutchlog_1_1fmt.html#a4d0b3c87ba935addf3581b000c0d7502a1e7cced329549fc4c2393381f068062e',1,'clutchlog::fmt']]], + ['colors_5f16m_175',['colors_16M',['../classclutchlog_1_1fmt.html#a4d0b3c87ba935addf3581b000c0d7502a1844e5aae3a3eefc500c545e3c35bcfa',1,'clutchlog::fmt']]], + ['colors_5f256_176',['colors_256',['../classclutchlog_1_1fmt.html#a4d0b3c87ba935addf3581b000c0d7502a7a3c32a8827eb17435511b4c7a429749',1,'clutchlog::fmt']]] +]; diff --git a/docs/search/files_0.js b/docs/search/files_0.js index eb9ea7a..03a85aa 100644 --- a/docs/search/files_0.js +++ b/docs/search/files_0.js @@ -1,4 +1,4 @@ var searchData= [ - ['clutchlog_2eh_75',['clutchlog.h',['../clutchlog_8h.html',1,'']]] + ['clutchlog_2eh_105',['clutchlog.h',['../clutchlog_8h.html',1,'']]] ]; diff --git a/docs/search/functions_0.js b/docs/search/functions_0.js index 86fb409..ae13707 100644 --- a/docs/search/functions_0.js +++ b/docs/search/functions_0.js @@ -1,4 +1,5 @@ var searchData= [ - ['dump_76',['dump',['../classclutchlog.html#a63308e8deae3cfec6801318203494143',1,'clutchlog']]] + ['bg_5f16m_106',['bg_16M',['../structclutchlog_1_1fmt_1_1bg__16_m.html#a363c314ab6a8aa22951b5500d7a78ad0',1,'clutchlog::fmt::bg_16M::bg_16M()'],['../structclutchlog_1_1fmt_1_1bg__16_m.html#ace018922ae99f32b48bf5cacaec91501',1,'clutchlog::fmt::bg_16M::bg_16M(short r, short g, short b)'],['../structclutchlog_1_1fmt_1_1bg__16_m.html#adcd5bd1e69e76e3b36015cf687693c97',1,'clutchlog::fmt::bg_16M::bg_16M(const std::string &srgb)'],['../structclutchlog_1_1fmt_1_1bg__16_m.html#a68f8cb4ab78a1cfb3b7b8e1e95bee11d',1,'clutchlog::fmt::bg_16M::bg_16M(const bg &)']]], + ['bg_5f256_107',['bg_256',['../structclutchlog_1_1fmt_1_1bg__256.html#a0d244a542b6b98a373f8b1f9e92a6a90',1,'clutchlog::fmt::bg_256::bg_256()'],['../structclutchlog_1_1fmt_1_1bg__256.html#a83c663b1a9f00ba7ba7649c9c5605fad',1,'clutchlog::fmt::bg_256::bg_256(const short b)'],['../structclutchlog_1_1fmt_1_1bg__256.html#a096d302be7373acaaf225644683408bd',1,'clutchlog::fmt::bg_256::bg_256(const bg &)']]] ]; diff --git a/docs/search/functions_1.js b/docs/search/functions_1.js index 34803e7..43737c6 100644 --- a/docs/search/functions_1.js +++ b/docs/search/functions_1.js @@ -1,8 +1,6 @@ var searchData= [ - ['file_77',['file',['../classclutchlog.html#a10064493c22f5c03b502a42d814c5c5c',1,'clutchlog']]], - ['fmt_78',['fmt',['../classclutchlog_1_1fmt.html#a407506bc02ed3f91d88b3df630e54959',1,'clutchlog::fmt']]], - ['format_79',['format',['../classclutchlog.html#a656c277e074b64728cca871f2b484d1c',1,'clutchlog::format(const std::string &format)'],['../classclutchlog.html#afc53dbca51d0e2322a21899d0c571a80',1,'clutchlog::format() const'],['../classclutchlog.html#abd692cca9a2e772e7c9d6531bb3c7761',1,'clutchlog::format(std::string row, const std::string &what, const level &stage, const std::string &file, const std::string &func, const size_t line) const']]], - ['format_5fcomment_80',['format_comment',['../classclutchlog.html#a2144abe4ec6f630126b6490908b5f924',1,'clutchlog::format_comment(const std::string &format)'],['../classclutchlog.html#aa8d0a569ed3623ce36c5e567ec2d1ad5',1,'clutchlog::format_comment() const']]], - ['func_81',['func',['../classclutchlog.html#ad32b5a0274dc03ee0004f67ba58b2447',1,'clutchlog']]] + ['color_108',['color',['../structclutchlog_1_1fmt_1_1color.html#a741d0165287350d8fcacb1f472ce5dac',1,'clutchlog::fmt::color']]], + ['color_5f16m_109',['color_16M',['../structclutchlog_1_1fmt_1_1color__16_m.html#aea10e881fb9b570267f5751fb67c4282',1,'clutchlog::fmt::color_16M::color_16M(ground t)'],['../structclutchlog_1_1fmt_1_1color__16_m.html#a36d9cf42044fec34b7858142d86137d3',1,'clutchlog::fmt::color_16M::color_16M(ground t, short r, short g, short b)'],['../structclutchlog_1_1fmt_1_1color__16_m.html#a55e39e7eb3ced3095c00914eff52470c',1,'clutchlog::fmt::color_16M::color_16M(ground t, const std::string &srgb)']]], + ['color_5f256_110',['color_256',['../structclutchlog_1_1fmt_1_1color__256.html#a12fdff3c5c4edbf952aaa31519f0171c',1,'clutchlog::fmt::color_256::color_256(ground t)'],['../structclutchlog_1_1fmt_1_1color__256.html#a1b68065b35141c018b33c3f2c45f5726',1,'clutchlog::fmt::color_256::color_256(ground t, const short i)']]] ]; diff --git a/docs/search/functions_2.js b/docs/search/functions_2.js index 956ed3b..4dd581e 100644 --- a/docs/search/functions_2.js +++ b/docs/search/functions_2.js @@ -1,10 +1,4 @@ var searchData= [ - ['level_5fof_82',['level_of',['../classclutchlog.html#acebed8c9df9204f22bf8488e62e1cedd',1,'clutchlog']]], - ['levels_83',['levels',['../classclutchlog.html#aff3aa09fb60f7d6dc688c028d3834d8a',1,'clutchlog']]], - ['line_84',['line',['../classclutchlog.html#aa26c6b81ebaeb9e9daa3457e3a3d17c9',1,'clutchlog']]], - ['locate_85',['locate',['../classclutchlog.html#a4ebdfcded6c56262676bf6926d63fc96',1,'clutchlog']]], - ['location_86',['location',['../classclutchlog.html#a6666106b9e5c239b6ae5e0d1091648e3',1,'clutchlog']]], - ['log_87',['log',['../classclutchlog.html#a23dbb98f0d3c5cc21c232cde16cf317a',1,'clutchlog']]], - ['logger_88',['logger',['../classclutchlog.html#acfaceb77da01503b432644a3efaee4fa',1,'clutchlog']]] + ['dump_111',['dump',['../classclutchlog.html#a63308e8deae3cfec6801318203494143',1,'clutchlog']]] ]; diff --git a/docs/search/functions_3.js b/docs/search/functions_3.js index 2e27115..9265fd8 100644 --- a/docs/search/functions_3.js +++ b/docs/search/functions_3.js @@ -1,5 +1,10 @@ var searchData= [ - ['operator_28_29_89',['operator()',['../classclutchlog_1_1fmt.html#afeaedd18298498d1dcfcc15f5f17ac3c',1,'clutchlog::fmt']]], - ['out_90',['out',['../classclutchlog.html#a7fd7c7bd3668c537061c314a619a336d',1,'clutchlog::out(std::ostream &out)'],['../classclutchlog.html#a6c6ab42a1df147e6c2d115bc36ec8266',1,'clutchlog::out()']]] + ['fg_5f16m_112',['fg_16M',['../structclutchlog_1_1fmt_1_1fg__16_m.html#a984525f33eb86b7f8b3e5d0874611194',1,'clutchlog::fmt::fg_16M::fg_16M()'],['../structclutchlog_1_1fmt_1_1fg__16_m.html#a531b717b8d78a0a5929fa90d0a01d7e5',1,'clutchlog::fmt::fg_16M::fg_16M(short r, short g, short b)'],['../structclutchlog_1_1fmt_1_1fg__16_m.html#abc768d6b7c2139c14f210755108006d3',1,'clutchlog::fmt::fg_16M::fg_16M(const std::string &srgb)'],['../structclutchlog_1_1fmt_1_1fg__16_m.html#a9da40a4a7ff3b80f028f26322f59eba8',1,'clutchlog::fmt::fg_16M::fg_16M(const fg &)']]], + ['fg_5f256_113',['fg_256',['../structclutchlog_1_1fmt_1_1fg__256.html#a97c241e9f80c63d269953cc525a72c7a',1,'clutchlog::fmt::fg_256::fg_256()'],['../structclutchlog_1_1fmt_1_1fg__256.html#a6df3d848db0e55c79709fb4565cbfd59',1,'clutchlog::fmt::fg_256::fg_256(const short f)'],['../structclutchlog_1_1fmt_1_1fg__256.html#a501fff36520f20ba4973ba3848fb9c23',1,'clutchlog::fmt::fg_256::fg_256(const fg &)']]], + ['file_114',['file',['../classclutchlog.html#a10064493c22f5c03b502a42d814c5c5c',1,'clutchlog']]], + ['fmt_115',['fmt',['../classclutchlog_1_1fmt.html#a407506bc02ed3f91d88b3df630e54959',1,'clutchlog::fmt']]], + ['format_116',['format',['../classclutchlog.html#a656c277e074b64728cca871f2b484d1c',1,'clutchlog::format(const std::string &format)'],['../classclutchlog.html#afc53dbca51d0e2322a21899d0c571a80',1,'clutchlog::format() const'],['../classclutchlog.html#abd692cca9a2e772e7c9d6531bb3c7761',1,'clutchlog::format(std::string row, const std::string &what, const level &stage, const std::string &file, const std::string &func, const size_t line) const']]], + ['format_5fcomment_117',['format_comment',['../classclutchlog.html#a2144abe4ec6f630126b6490908b5f924',1,'clutchlog::format_comment(const std::string &format)'],['../classclutchlog.html#aa8d0a569ed3623ce36c5e567ec2d1ad5',1,'clutchlog::format_comment() const']]], + ['func_118',['func',['../classclutchlog.html#ad32b5a0274dc03ee0004f67ba58b2447',1,'clutchlog']]] ]; diff --git a/docs/search/functions_4.js b/docs/search/functions_4.js index 8a113d6..1e23d48 100644 --- a/docs/search/functions_4.js +++ b/docs/search/functions_4.js @@ -1,4 +1,4 @@ var searchData= [ - ['print_5fon_91',['print_on',['../classclutchlog_1_1fmt.html#a0b607e343b6813b99eafca1fdfec9cd0',1,'clutchlog::fmt']]] + ['is_5fset_119',['is_set',['../structclutchlog_1_1fmt_1_1color.html#a96d7161ef1e7cc631ae670cd3f364603',1,'clutchlog::fmt::color::is_set()'],['../structclutchlog_1_1fmt_1_1color__256.html#ad79557682cec1c053dda258581972111',1,'clutchlog::fmt::color_256::is_set()'],['../structclutchlog_1_1fmt_1_1color__16_m.html#a780c11e42bb140732ffd37cf4eef9e1d',1,'clutchlog::fmt::color_16M::is_set()']]] ]; diff --git a/docs/search/functions_5.js b/docs/search/functions_5.js index 23857dc..230758b 100644 --- a/docs/search/functions_5.js +++ b/docs/search/functions_5.js @@ -1,4 +1,10 @@ var searchData= [ - ['replace_92',['replace',['../classclutchlog.html#a972f895c70edc335f3018a2c8971d59e',1,'clutchlog::replace(const std::string &form, const std::string &mark, const std::string &tag) const'],['../classclutchlog.html#ae90d5a1a428587ad67b38b2ea4ca9fa2',1,'clutchlog::replace(const std::string &form, const std::string &mark, const size_t tag) const']]] + ['level_5fof_120',['level_of',['../classclutchlog.html#acebed8c9df9204f22bf8488e62e1cedd',1,'clutchlog']]], + ['levels_121',['levels',['../classclutchlog.html#aff3aa09fb60f7d6dc688c028d3834d8a',1,'clutchlog']]], + ['line_122',['line',['../classclutchlog.html#aa26c6b81ebaeb9e9daa3457e3a3d17c9',1,'clutchlog']]], + ['locate_123',['locate',['../classclutchlog.html#a4ebdfcded6c56262676bf6926d63fc96',1,'clutchlog']]], + ['location_124',['location',['../classclutchlog.html#a6666106b9e5c239b6ae5e0d1091648e3',1,'clutchlog']]], + ['log_125',['log',['../classclutchlog.html#a23dbb98f0d3c5cc21c232cde16cf317a',1,'clutchlog']]], + ['logger_126',['logger',['../classclutchlog.html#acfaceb77da01503b432644a3efaee4fa',1,'clutchlog']]] ]; diff --git a/docs/search/functions_6.js b/docs/search/functions_6.js index 1f7d8fb..9f8132c 100644 --- a/docs/search/functions_6.js +++ b/docs/search/functions_6.js @@ -1,6 +1,5 @@ var searchData= [ - ['scope_5ft_93',['scope_t',['../structclutchlog_1_1scope__t.html#a0f1d865ffcf17f215e5559cdd2690572',1,'clutchlog::scope_t']]], - ['str_94',['str',['../classclutchlog_1_1fmt.html#ab588e04e982b0b26ec979773d51ad41b',1,'clutchlog::fmt']]], - ['style_95',['style',['../classclutchlog.html#ac3ec55057b9c734b66f169bf43dbd591',1,'clutchlog::style(level stage, FMT... styles)'],['../classclutchlog.html#ad1cfa9945c3f7f98fe8ce724c627d0d6',1,'clutchlog::style(level stage, fmt style)'],['../classclutchlog.html#a4831f44fd5ade102e57320632095934d',1,'clutchlog::style(level stage) const']]] + ['operator_28_29_127',['operator()',['../classclutchlog_1_1fmt.html#afeaedd18298498d1dcfcc15f5f17ac3c',1,'clutchlog::fmt']]], + ['out_128',['out',['../classclutchlog.html#a7fd7c7bd3668c537061c314a619a336d',1,'clutchlog::out(std::ostream &out)'],['../classclutchlog.html#a6c6ab42a1df147e6c2d115bc36ec8266',1,'clutchlog::out()']]] ]; diff --git a/docs/search/functions_7.js b/docs/search/functions_7.js index 33dc3a2..c821684 100644 --- a/docs/search/functions_7.js +++ b/docs/search/functions_7.js @@ -1,4 +1,4 @@ var searchData= [ - ['threshold_96',['threshold',['../classclutchlog.html#a3cb0e4f43a4cadf1966001ad7c9861f4',1,'clutchlog::threshold(level l)'],['../classclutchlog.html#a7a7738eaad114bfa870121412fe23ad9',1,'clutchlog::threshold(const std::string &l)'],['../classclutchlog.html#ab45287cc9c14217904a13aff49573732',1,'clutchlog::threshold() const']]] + ['print_5fon_129',['print_on',['../structclutchlog_1_1fmt_1_1color.html#aa75e958436afe333924b6db3e5f0821f',1,'clutchlog::fmt::color::print_on()'],['../structclutchlog_1_1fmt_1_1color__256.html#aaae6106a11eddade981172324a43df68',1,'clutchlog::fmt::color_256::print_on()'],['../structclutchlog_1_1fmt_1_1color__16_m.html#a674910195e7bb14d78f0cf56c308a47e',1,'clutchlog::fmt::color_16M::print_on()'],['../classclutchlog_1_1fmt.html#a0b607e343b6813b99eafca1fdfec9cd0',1,'clutchlog::fmt::print_on()']]] ]; diff --git a/docs/search/functions_8.html b/docs/search/functions_8.html index b55f0e6..7422be2 100644 --- a/docs/search/functions_8.html +++ b/docs/search/functions_8.html @@ -1,7 +1,7 @@ - + - + @@ -11,15 +11,19 @@
    Loading...
    Searching...
    No Matches
    diff --git a/docs/search/functions_8.js b/docs/search/functions_8.js index 6df1e3c..c5d5eff 100644 --- a/docs/search/functions_8.js +++ b/docs/search/functions_8.js @@ -1,4 +1,4 @@ var searchData= [ - ['threshold',['threshold',['../classclutchlog.html#a3cb0e4f43a4cadf1966001ad7c9861f4',1,'clutchlog::threshold(level l)'],['../classclutchlog.html#ab45287cc9c14217904a13aff49573732',1,'clutchlog::threshold() const']]] + ['replace_130',['replace',['../classclutchlog.html#a972f895c70edc335f3018a2c8971d59e',1,'clutchlog::replace(const std::string &form, const std::string &mark, const std::string &tag) const'],['../classclutchlog.html#ae90d5a1a428587ad67b38b2ea4ca9fa2',1,'clutchlog::replace(const std::string &form, const std::string &mark, const size_t tag) const']]] ]; diff --git a/docs/search/functions_9.html b/docs/search/functions_9.html new file mode 100644 index 0000000..befd4fa --- /dev/null +++ b/docs/search/functions_9.html @@ -0,0 +1,30 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/docs/search/functions_9.js b/docs/search/functions_9.js new file mode 100644 index 0000000..4255918 --- /dev/null +++ b/docs/search/functions_9.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['scope_5ft_131',['scope_t',['../structclutchlog_1_1scope__t.html#a0f1d865ffcf17f215e5559cdd2690572',1,'clutchlog::scope_t']]], + ['str_132',['str',['../classclutchlog_1_1fmt.html#ab588e04e982b0b26ec979773d51ad41b',1,'clutchlog::fmt']]], + ['style_133',['style',['../classclutchlog.html#ac3ec55057b9c734b66f169bf43dbd591',1,'clutchlog::style(level stage, FMT... styles)'],['../classclutchlog.html#ad1cfa9945c3f7f98fe8ce724c627d0d6',1,'clutchlog::style(level stage, fmt style)'],['../classclutchlog.html#a4831f44fd5ade102e57320632095934d',1,'clutchlog::style(level stage) const']]] +]; diff --git a/docs/search/functions_a.html b/docs/search/functions_a.html new file mode 100644 index 0000000..a81e963 --- /dev/null +++ b/docs/search/functions_a.html @@ -0,0 +1,30 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/docs/search/functions_a.js b/docs/search/functions_a.js new file mode 100644 index 0000000..88da923 --- /dev/null +++ b/docs/search/functions_a.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['threshold_134',['threshold',['../classclutchlog.html#a3cb0e4f43a4cadf1966001ad7c9861f4',1,'clutchlog::threshold(level l)'],['../classclutchlog.html#a7a7738eaad114bfa870121412fe23ad9',1,'clutchlog::threshold(const std::string &l)'],['../classclutchlog.html#ab45287cc9c14217904a13aff49573732',1,'clutchlog::threshold() const']]] +]; diff --git a/docs/search/groups_0.js b/docs/search/groups_0.js index 1a98981..cc2af52 100644 --- a/docs/search/groups_0.js +++ b/docs/search/groups_0.js @@ -1,4 +1,4 @@ var searchData= [ - ['default_20configuration_20management_131',['Default configuration management',['../group___default_config.html',1,'']]] + ['colors_20management_20in_2016_20colors_20mode_20_284_2dbits_20ansi_29_2e_182',['Colors management in 16 colors mode (4-bits ANSI).',['../group__colors16.html',1,'']]] ]; diff --git a/docs/search/groups_1.js b/docs/search/groups_1.js index f5bbe3d..480ce8b 100644 --- a/docs/search/groups_1.js +++ b/docs/search/groups_1.js @@ -1,4 +1,4 @@ var searchData= [ - ['formating_20tools_132',['Formating tools',['../group___formating.html',1,'']]] + ['default_20configuration_20management_183',['Default configuration management',['../group___default_config.html',1,'']]] ]; diff --git a/docs/search/groups_2.js b/docs/search/groups_2.js index b59b281..a01e4af 100644 --- a/docs/search/groups_2.js +++ b/docs/search/groups_2.js @@ -1,4 +1,4 @@ var searchData= [ - ['high_2dlevel_20api_20macros_133',['High-level API macros',['../group___use_macros.html',1,'']]] + ['formating_20tools_184',['Formating tools',['../group___formating.html',1,'']]] ]; diff --git a/docs/search/groups_3.js b/docs/search/groups_3.js index f8b7d67..b951f5b 100644 --- a/docs/search/groups_3.js +++ b/docs/search/groups_3.js @@ -1,4 +1,4 @@ var searchData= [ - ['main_20class_134',['Main class',['../group___main.html',1,'']]] + ['high_2dlevel_20api_20macros_185',['High-level API macros',['../group___use_macros.html',1,'']]] ]; diff --git a/docs/search/groups_4.html b/docs/search/groups_4.html index e7abc74..8644fbe 100644 --- a/docs/search/groups_4.html +++ b/docs/search/groups_4.html @@ -1,7 +1,7 @@ - + - + @@ -11,15 +11,19 @@
    Loading...
    Searching...
    No Matches
    diff --git a/docs/search/groups_4.js b/docs/search/groups_4.js index 6384469..ae36a3e 100644 --- a/docs/search/groups_4.js +++ b/docs/search/groups_4.js @@ -1,4 +1,4 @@ var searchData= [ - ['internal_20details',['Internal details',['../group__Details.html',1,'']]] + ['internal_20colors_20management_20in_20256_20and_2016m_20colors_20modes_2e_186',['Internal colors management in 256 and 16M colors modes.',['../group__colors256__16_m.html',1,'']]] ]; diff --git a/docs/search/groups_5.html b/docs/search/groups_5.html index edc563e..1e9ba85 100644 --- a/docs/search/groups_5.html +++ b/docs/search/groups_5.html @@ -1,7 +1,7 @@ - + - + @@ -11,15 +11,19 @@
    Loading...
    Searching...
    No Matches
    diff --git a/docs/search/groups_5.js b/docs/search/groups_5.js index 507ee1c..8804074 100644 --- a/docs/search/groups_5.js +++ b/docs/search/groups_5.js @@ -1,4 +1,4 @@ var searchData= [ - ['low_2dlevel_20api',['Low-level API',['../group__LowAPI.html',1,'']]] + ['main_20class_187',['Main class',['../group___main.html',1,'']]] ]; diff --git a/docs/search/pages_0.js b/docs/search/pages_0.js index 67456ad..de1d3c5 100644 --- a/docs/search/pages_0.js +++ b/docs/search/pages_0.js @@ -1,4 +1,4 @@ var searchData= [ - ['clutchlog_20—_20versatile_20_28de_29clutchable_20logging_135',['Clutchlog — versatile (de)clutchable logging',['../index.html',1,'']]] + ['clutchlog_20—_20versatile_20_28de_29clutchable_20spatial_20logging_188',['Clutchlog — versatile (de)clutchable spatial logging',['../index.html',1,'']]] ]; diff --git a/docs/search/related_0.js b/docs/search/related_0.js index 9d9e7aa..0363800 100644 --- a/docs/search/related_0.js +++ b/docs/search/related_0.js @@ -1,4 +1,4 @@ var searchData= [ - ['operator_3c_3c_126',['operator<<',['../classclutchlog_1_1fmt.html#a96849ba427feac3a2eeaa1165e3845da',1,'clutchlog::fmt']]] + ['operator_3c_3c_177',['operator<<',['../group__colors16.html#ga5a697f5ad3326ea25b139e25252b4cf7',1,'clutchlog::fmt::operator<<()'],['../group__colors16.html#ga379b0af834c7c561edc5c1e3a3427a33',1,'clutchlog::fmt::operator<<()'],['../structclutchlog_1_1fmt_1_1color.html#a826e3d3eba925608442439d6bc3a95a6',1,'clutchlog::fmt::color::operator<<()'],['../classclutchlog_1_1fmt.html#a96849ba427feac3a2eeaa1165e3845da',1,'clutchlog::fmt::operator<<()']]] ]; diff --git a/docs/search/searchdata.js b/docs/search/searchdata.js index e8c4886..8637eaf 100644 --- a/docs/search/searchdata.js +++ b/docs/search/searchdata.js @@ -1,15 +1,16 @@ var indexSectionsWithContent = { - 0: "_bcdfhlmoprstw", - 1: "cfs", + 0: "_abcdfghilmoprstw", + 1: "bcfs", 2: "c", - 3: "dfloprst", - 4: "_bdfmst", - 5: "bflt", - 6: "o", - 7: "cw", - 8: "dfhm", - 9: "c" + 3: "bcdfiloprst", + 4: "_bdfimrst", + 5: "abfglt", + 6: "c", + 7: "o", + 8: "cw", + 9: "cdfhim", + 10: "c" }; var indexSectionNames = @@ -20,10 +21,11 @@ var indexSectionNames = 3: "functions", 4: "variables", 5: "enums", - 6: "related", - 7: "defines", - 8: "groups", - 9: "pages" + 6: "enumvalues", + 7: "related", + 8: "defines", + 9: "groups", + 10: "pages" }; var indexSectionLabels = @@ -34,9 +36,10 @@ var indexSectionLabels = 3: "Functions", 4: "Variables", 5: "Enumerations", - 6: "Friends", - 7: "Macros", - 8: "Modules", - 9: "Pages" + 6: "Enumerator", + 7: "Friends", + 8: "Macros", + 9: "Modules", + 10: "Pages" }; diff --git a/docs/search/variables_0.js b/docs/search/variables_0.js index e1bb76b..b64f198 100644 --- a/docs/search/variables_0.js +++ b/docs/search/variables_0.js @@ -1,14 +1,14 @@ var searchData= [ - ['_5fformat_5fdump_97',['_format_dump',['../classclutchlog.html#a5f4ddb57ce42e8be86a7c7d269f7bae5',1,'clutchlog']]], - ['_5fformat_5flog_98',['_format_log',['../classclutchlog.html#a7c6e3fc082bc6f55d50131ed2b32e81e',1,'clutchlog']]], - ['_5fin_5ffile_99',['_in_file',['../classclutchlog.html#aded03528f34d9000f618419c482c5042',1,'clutchlog']]], - ['_5fin_5ffunc_100',['_in_func',['../classclutchlog.html#a130c4f12eacbd2028102838fe16b734e',1,'clutchlog']]], - ['_5fin_5fline_101',['_in_line',['../classclutchlog.html#a41757198b29862832a14472a9e5e24c6',1,'clutchlog']]], - ['_5flevel_5ffmt_102',['_level_fmt',['../classclutchlog.html#ab805ac5c33885459f9f752518a4aa735',1,'clutchlog']]], - ['_5flevel_5fword_103',['_level_word',['../classclutchlog.html#ab1c377a376e6772fe1746ff7147c125f',1,'clutchlog']]], - ['_5fout_104',['_out',['../classclutchlog.html#a1896f6c4b8597e3e76ff93970bd85167',1,'clutchlog']]], - ['_5fstage_105',['_stage',['../classclutchlog.html#aeb60684c89bcef5aa9273075c21cc993',1,'clutchlog']]], - ['_5fstrip_5fcalls_106',['_strip_calls',['../classclutchlog.html#a356df86455409193792b6ed550dfd09e',1,'clutchlog']]], - ['_5fword_5flevel_107',['_word_level',['../classclutchlog.html#abd4625bf211bfbaa30d9c126fa3d7888',1,'clutchlog']]] + ['_5fformat_5fdump_135',['_format_dump',['../classclutchlog.html#a5f4ddb57ce42e8be86a7c7d269f7bae5',1,'clutchlog']]], + ['_5fformat_5flog_136',['_format_log',['../classclutchlog.html#a7c6e3fc082bc6f55d50131ed2b32e81e',1,'clutchlog']]], + ['_5fin_5ffile_137',['_in_file',['../classclutchlog.html#aded03528f34d9000f618419c482c5042',1,'clutchlog']]], + ['_5fin_5ffunc_138',['_in_func',['../classclutchlog.html#a130c4f12eacbd2028102838fe16b734e',1,'clutchlog']]], + ['_5fin_5fline_139',['_in_line',['../classclutchlog.html#a41757198b29862832a14472a9e5e24c6',1,'clutchlog']]], + ['_5flevel_5ffmt_140',['_level_fmt',['../classclutchlog.html#ab805ac5c33885459f9f752518a4aa735',1,'clutchlog']]], + ['_5flevel_5fword_141',['_level_word',['../classclutchlog.html#ab1c377a376e6772fe1746ff7147c125f',1,'clutchlog']]], + ['_5fout_142',['_out',['../classclutchlog.html#a1896f6c4b8597e3e76ff93970bd85167',1,'clutchlog']]], + ['_5fstage_143',['_stage',['../classclutchlog.html#aeb60684c89bcef5aa9273075c21cc993',1,'clutchlog']]], + ['_5fstrip_5fcalls_144',['_strip_calls',['../classclutchlog.html#a356df86455409193792b6ed550dfd09e',1,'clutchlog']]], + ['_5fword_5flevel_145',['_word_level',['../classclutchlog.html#abd4625bf211bfbaa30d9c126fa3d7888',1,'clutchlog']]] ]; diff --git a/docs/search/variables_1.js b/docs/search/variables_1.js index e6e90f4..8ba7568 100644 --- a/docs/search/variables_1.js +++ b/docs/search/variables_1.js @@ -1,4 +1,6 @@ var searchData= [ - ['back_108',['back',['../classclutchlog_1_1fmt.html#a86696b20e5b31c96ba592926efb324f3',1,'clutchlog::fmt']]] + ['back_146',['back',['../group__colors16.html#ga86696b20e5b31c96ba592926efb324f3',1,'clutchlog::fmt']]], + ['back_5f16m_147',['back_16M',['../group__colors256__16_m.html#gaa2fcbb402dc2426d3720b8bc78a80ec0',1,'clutchlog::fmt']]], + ['back_5f256_148',['back_256',['../group__colors256__16_m.html#ga1d687af385957846034568c3a62d4ef0',1,'clutchlog::fmt']]] ]; diff --git a/docs/search/variables_2.js b/docs/search/variables_2.js index 1027363..4eea7de 100644 --- a/docs/search/variables_2.js +++ b/docs/search/variables_2.js @@ -1,11 +1,11 @@ var searchData= [ - ['default_5fdepth_5fmark_109',['default_depth_mark',['../classclutchlog.html#a229fd61519f1245282440120f2d45fb5',1,'clutchlog']]], - ['default_5fformat_110',['default_format',['../classclutchlog.html#a0c4ac57601e6f8d146fd5cc060968ecc',1,'clutchlog']]], - ['default_5fhfill_5fchar_111',['default_hfill_char',['../classclutchlog.html#a76eb34537b634aadb75e255f7887eeb6',1,'clutchlog']]], - ['default_5fhfill_5fmax_112',['default_hfill_max',['../classclutchlog.html#ac95630bfe9cf547d2b7c4b3430eaedc1',1,'clutchlog']]], - ['default_5fhfill_5fmin_113',['default_hfill_min',['../classclutchlog.html#a5a9a98c3528117223ceff22bc6bee5f7',1,'clutchlog']]], - ['default_5fstrip_5fcalls_114',['default_strip_calls',['../classclutchlog.html#a1a8cb6411726133208f5a2f2cb42d468',1,'clutchlog']]], - ['dump_5fdefault_5fformat_115',['dump_default_format',['../classclutchlog.html#ace879554298e6e6e36dafef330c27be8',1,'clutchlog']]], - ['dump_5fdefault_5fsep_116',['dump_default_sep',['../classclutchlog.html#af898bffe23b125245e338d7495c76d45',1,'clutchlog']]] + ['default_5fdepth_5fmark_149',['default_depth_mark',['../classclutchlog.html#a229fd61519f1245282440120f2d45fb5',1,'clutchlog']]], + ['default_5fformat_150',['default_format',['../classclutchlog.html#a0c4ac57601e6f8d146fd5cc060968ecc',1,'clutchlog']]], + ['default_5fhfill_5fchar_151',['default_hfill_char',['../classclutchlog.html#a76eb34537b634aadb75e255f7887eeb6',1,'clutchlog']]], + ['default_5fhfill_5fmax_152',['default_hfill_max',['../classclutchlog.html#ac95630bfe9cf547d2b7c4b3430eaedc1',1,'clutchlog']]], + ['default_5fhfill_5fmin_153',['default_hfill_min',['../classclutchlog.html#a5a9a98c3528117223ceff22bc6bee5f7',1,'clutchlog']]], + ['default_5fstrip_5fcalls_154',['default_strip_calls',['../classclutchlog.html#a1a8cb6411726133208f5a2f2cb42d468',1,'clutchlog']]], + ['dump_5fdefault_5fformat_155',['dump_default_format',['../classclutchlog.html#ace879554298e6e6e36dafef330c27be8',1,'clutchlog']]], + ['dump_5fdefault_5fsep_156',['dump_default_sep',['../classclutchlog.html#af898bffe23b125245e338d7495c76d45',1,'clutchlog']]] ]; diff --git a/docs/search/variables_3.js b/docs/search/variables_3.js index 1e70164..0157814 100644 --- a/docs/search/variables_3.js +++ b/docs/search/variables_3.js @@ -1,4 +1,6 @@ var searchData= [ - ['fore_117',['fore',['../classclutchlog_1_1fmt.html#a8307a848fcf9ed929435b3e1f2b53401',1,'clutchlog::fmt']]] + ['fore_157',['fore',['../group__colors16.html#ga8307a848fcf9ed929435b3e1f2b53401',1,'clutchlog::fmt']]], + ['fore_5f16m_158',['fore_16M',['../group__colors256__16_m.html#ga626c99eb11d1718d7a2a8bb3f079e6de',1,'clutchlog::fmt']]], + ['fore_5f256_159',['fore_256',['../group__colors256__16_m.html#gad98fbe84ef338ded8425d56955825a2c',1,'clutchlog::fmt']]] ]; diff --git a/docs/search/variables_4.js b/docs/search/variables_4.js index 24b0bd2..bfec3df 100644 --- a/docs/search/variables_4.js +++ b/docs/search/variables_4.js @@ -1,4 +1,4 @@ var searchData= [ - ['matches_118',['matches',['../structclutchlog_1_1scope__t.html#ae6c0e4ed20db797124ed1e5faa033ad9',1,'clutchlog::scope_t']]] + ['index_160',['index',['../structclutchlog_1_1fmt_1_1color__256.html#a8e0b13d6bad87c83c3465524a5d33988',1,'clutchlog::fmt::color_256']]] ]; diff --git a/docs/search/variables_5.js b/docs/search/variables_5.js index 9c79f86..6d934e3 100644 --- a/docs/search/variables_5.js +++ b/docs/search/variables_5.js @@ -1,5 +1,5 @@ var searchData= [ - ['stage_119',['stage',['../structclutchlog_1_1scope__t.html#adcca6846ff90d436c61861db85917744',1,'clutchlog::scope_t']]], - ['style_120',['style',['../classclutchlog_1_1fmt.html#a2bb0fde65fcd264393e102314dd1610b',1,'clutchlog::fmt']]] + ['matches_161',['matches',['../structclutchlog_1_1scope__t.html#ae6c0e4ed20db797124ed1e5faa033ad9',1,'clutchlog::scope_t']]], + ['mode_162',['mode',['../classclutchlog_1_1fmt.html#a0aa57cdd56ccc79c7750921ab534b205',1,'clutchlog::fmt']]] ]; diff --git a/docs/search/variables_6.js b/docs/search/variables_6.js index be336f3..addc3cb 100644 --- a/docs/search/variables_6.js +++ b/docs/search/variables_6.js @@ -1,4 +1,4 @@ var searchData= [ - ['there_121',['there',['../structclutchlog_1_1scope__t.html#a7918e55cd3bac1bd30c69b8c711387ff',1,'clutchlog::scope_t']]] + ['red_163',['red',['../structclutchlog_1_1fmt_1_1color__16_m.html#a19e1517a9afb75a4e6224f718ed11c61',1,'clutchlog::fmt::color_16M']]] ]; diff --git a/docs/search/variables_7.html b/docs/search/variables_7.html new file mode 100644 index 0000000..39ffd47 --- /dev/null +++ b/docs/search/variables_7.html @@ -0,0 +1,30 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/docs/search/variables_7.js b/docs/search/variables_7.js new file mode 100644 index 0000000..da602ee --- /dev/null +++ b/docs/search/variables_7.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['stage_164',['stage',['../structclutchlog_1_1scope__t.html#adcca6846ff90d436c61861db85917744',1,'clutchlog::scope_t']]], + ['style_165',['style',['../classclutchlog_1_1fmt.html#a2bb0fde65fcd264393e102314dd1610b',1,'clutchlog::fmt']]] +]; diff --git a/docs/search/variables_8.html b/docs/search/variables_8.html new file mode 100644 index 0000000..37a2edd --- /dev/null +++ b/docs/search/variables_8.html @@ -0,0 +1,30 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/docs/search/variables_8.js b/docs/search/variables_8.js new file mode 100644 index 0000000..0e7ab61 --- /dev/null +++ b/docs/search/variables_8.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['there_166',['there',['../structclutchlog_1_1scope__t.html#a7918e55cd3bac1bd30c69b8c711387ff',1,'clutchlog::scope_t']]], + ['type_167',['type',['../structclutchlog_1_1fmt_1_1color.html#a3fd18c290567bd5c4971663a1aed12ae',1,'clutchlog::fmt::color']]] +]; diff --git a/docs/structclutchlog_1_1fmt_1_1bg__16_m-members.html b/docs/structclutchlog_1_1fmt_1_1bg__16_m-members.html new file mode 100644 index 0000000..2067aa2 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1bg__16_m-members.html @@ -0,0 +1,121 @@ + + + + + + + +clutchlog: Member List + + + + + + + + + + + + + + +
    +
    + + + + + + + +
    +
    clutchlog +  0.13 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    clutchlog::fmt::bg_16M Member List
    +
    +
    + +

    This is the complete list of members for clutchlog::fmt::bg_16M, including all inherited members.

    + + + + + + + + + + + + + + + + + +
    bg_16M()clutchlog::fmt::bg_16Minline
    bg_16M(short r, short g, short b)clutchlog::fmt::bg_16Minline
    bg_16M(const std::string &srgb)clutchlog::fmt::bg_16Minline
    bg_16M(const bg &)clutchlog::fmt::bg_16Minline
    blue (defined in clutchlog::fmt::color_16M)clutchlog::fmt::color_16M
    color(ansi a, ground g)clutchlog::fmt::colorinline
    color_16M(ground t)clutchlog::fmt::color_16Minline
    color_16M(ground t, short r, short g, short b)clutchlog::fmt::color_16Minline
    color_16M(ground t, const std::string &srgb)clutchlog::fmt::color_16Minline
    green (defined in clutchlog::fmt::color_16M)clutchlog::fmt::color_16M
    ground enum nameclutchlog::fmt::color
    is_set() constclutchlog::fmt::color_16Minlinevirtual
    mode (defined in clutchlog::fmt::color)clutchlog::fmt::color
    print_on(std::ostream &os) constclutchlog::fmt::color_16Minlinevirtual
    redclutchlog::fmt::color_16M
    typeclutchlog::fmt::color
    +
    + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1bg__16_m.html b/docs/structclutchlog_1_1fmt_1_1bg__16_m.html new file mode 100644 index 0000000..55fcdc1 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1bg__16_m.html @@ -0,0 +1,322 @@ + + + + + + + +clutchlog: clutchlog::fmt::bg_16M Struct Reference + + + + + + + + + + + + + + +
    +
    + + + + + + + +
    +
    clutchlog +  0.13 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + + +
    + +

    background in 256-colors mode. + More...

    + +

    #include <clutchlog.h>

    +
    + + Inheritance diagram for clutchlog::fmt::bg_16M:
    +
    +
    + +
    + + Collaboration diagram for clutchlog::fmt::bg_16M:
    +
    +
    + +

    Detailed Description

    +

    background in 256-colors mode.

    + +

    Definition at line 664 of file clutchlog.h.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Public Member Functions

    bg_16M ()
     Empty constructor: no color.
     
     bg_16M (short r, short g, short b)
     Numeric triplet constructor. More...
     
     bg_16M (const std::string &srgb)
     Hex triplet string constructor. More...
     
     bg_16M (const bg &)
     Conversion constructor from 16-colors mode. More...
     
    - Public Member Functions inherited from clutchlog::fmt::color_16M
     color_16M (ground t)
     Constructor. More...
     
     color_16M (ground t, short r, short g, short b)
     Numeric triplet constructor. More...
     
     color_16M (ground t, const std::string &srgb)
     Hex triplet string constructor. More...
     
    +bool is_set () const
     Returns true if the underying representation encodes an existing color.
     
    +std::ostream & print_on (std::ostream &os) const
     Print the color RGB triplet on the given stream.
     
    - Public Member Functions inherited from clutchlog::fmt::color
     color (ansi a, ground g)
     Constructor. More...
     
    + + + + + + + + + + + + + + + + + + + +

    +Additional Inherited Members

    - Public Attributes inherited from clutchlog::fmt::color_16M
    short red
     The encoded RGB indices. More...
     
    +short green
     
    +short blue
     
    - Public Attributes inherited from clutchlog::fmt::color
    +ansi mode
     
    +enum clutchlog::fmt::color::ground type
     Type of color (foreground or background).
     
    - Public Types inherited from clutchlog::fmt::color
    enum  ground { fore = 38, +back = 48 + }
     Codes for representing foreground or background.
     
    +

    Constructor & Destructor Documentation

    + +

    ◆ bg_16M() [1/3]

    + +
    +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    clutchlog::fmt::bg_16M::bg_16M (short r,
    short g,
    short b 
    )
    +
    +inline
    +
    + +

    Numeric triplet constructor.

    +

    Parameters are expected to be in [0,255].

    +
    Parameters
    + + + + +
    rRed color component.
    gGreen color component.
    bBlue color component.
    +
    +
    + +

    Definition at line 676 of file clutchlog.h.

    + +
    +
    + +

    ◆ bg_16M() [2/3]

    + +
    +
    + + + + + +
    + + + + + + + + +
    clutchlog::fmt::bg_16M::bg_16M (const std::string & srgb)
    +
    +inline
    +
    + +

    Hex triplet string constructor.

    +
    Note
    If the given string is ill-formed, it will silently encode a "no color".
    +
    Parameters
    + + +
    srgbA "web color" hexadecimal triplet of two characters, starting with a leading number sign (e.g. "#0055ff").
    +
    +
    + +

    Definition at line 684 of file clutchlog.h.

    + +
    +
    + +

    ◆ bg_16M() [3/3]

    + +
    +
    + + + + + +
    + + + + + + + + +
    clutchlog::fmt::bg_16M::bg_16M (const bg)
    +
    +inline
    +
    + +

    Conversion constructor from 16-colors mode.

    +
    Warning
    Only encodes "no color", whatever is passed.
    + +

    Definition at line 689 of file clutchlog.h.

    + +
    +
    +
    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1bg__16_m__coll__graph.map b/docs/structclutchlog_1_1fmt_1_1bg__16_m__coll__graph.map new file mode 100644 index 0000000..4871c1e --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1bg__16_m__coll__graph.map @@ -0,0 +1,5 @@ + + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1bg__16_m__coll__graph.md5 b/docs/structclutchlog_1_1fmt_1_1bg__16_m__coll__graph.md5 new file mode 100644 index 0000000..61234a7 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1bg__16_m__coll__graph.md5 @@ -0,0 +1 @@ +2e5701ea9595f503c9a5f982b11e4a30 \ No newline at end of file diff --git a/docs/structclutchlog_1_1fmt_1_1bg__16_m__coll__graph.svg b/docs/structclutchlog_1_1fmt_1_1bg__16_m__coll__graph.svg new file mode 100644 index 0000000..fb66ed1 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1bg__16_m__coll__graph.svg @@ -0,0 +1,52 @@ + + + + + + +clutchlog::fmt::bg_16M + + + +Node1 + + +clutchlog::fmt::bg_16M + + + + + +Node2 + + +clutchlog::fmt::color_16M + + + + + +Node2->Node1 + + + + + +Node3 + + +clutchlog::fmt::color + + + + + +Node3->Node2 + + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1bg__16_m__inherit__graph.map b/docs/structclutchlog_1_1fmt_1_1bg__16_m__inherit__graph.map new file mode 100644 index 0000000..4871c1e --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1bg__16_m__inherit__graph.map @@ -0,0 +1,5 @@ + + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1bg__16_m__inherit__graph.md5 b/docs/structclutchlog_1_1fmt_1_1bg__16_m__inherit__graph.md5 new file mode 100644 index 0000000..61234a7 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1bg__16_m__inherit__graph.md5 @@ -0,0 +1 @@ +2e5701ea9595f503c9a5f982b11e4a30 \ No newline at end of file diff --git a/docs/structclutchlog_1_1fmt_1_1bg__16_m__inherit__graph.svg b/docs/structclutchlog_1_1fmt_1_1bg__16_m__inherit__graph.svg new file mode 100644 index 0000000..fb66ed1 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1bg__16_m__inherit__graph.svg @@ -0,0 +1,52 @@ + + + + + + +clutchlog::fmt::bg_16M + + + +Node1 + + +clutchlog::fmt::bg_16M + + + + + +Node2 + + +clutchlog::fmt::color_16M + + + + + +Node2->Node1 + + + + + +Node3 + + +clutchlog::fmt::color + + + + + +Node3->Node2 + + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1bg__256-members.html b/docs/structclutchlog_1_1fmt_1_1bg__256-members.html new file mode 100644 index 0000000..94afbc8 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1bg__256-members.html @@ -0,0 +1,117 @@ + + + + + + + +clutchlog: Member List + + + + + + + + + + + + + + +
    +
    + + + + + + + +
    +
    clutchlog +  0.13 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    clutchlog::fmt::bg_256 Member List
    +
    +
    + +

    This is the complete list of members for clutchlog::fmt::bg_256, including all inherited members.

    + + + + + + + + + + + + + +
    bg_256()clutchlog::fmt::bg_256inline
    bg_256(const short b)clutchlog::fmt::bg_256inline
    bg_256(const bg &)clutchlog::fmt::bg_256inline
    color(ansi a, ground g)clutchlog::fmt::colorinline
    color_256(ground t)clutchlog::fmt::color_256inline
    color_256(ground t, const short i)clutchlog::fmt::color_256inline
    ground enum nameclutchlog::fmt::color
    indexclutchlog::fmt::color_256
    is_set() constclutchlog::fmt::color_256inlinevirtual
    mode (defined in clutchlog::fmt::color)clutchlog::fmt::color
    print_on(std::ostream &os) constclutchlog::fmt::color_256inlinevirtual
    typeclutchlog::fmt::color
    +
    + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1bg__256.html b/docs/structclutchlog_1_1fmt_1_1bg__256.html new file mode 100644 index 0000000..8932b67 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1bg__256.html @@ -0,0 +1,254 @@ + + + + + + + +clutchlog: clutchlog::fmt::bg_256 Struct Reference + + + + + + + + + + + + + + +
    +
    + + + + + + + +
    +
    clutchlog +  0.13 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + + +
    + +

    Background in 256-colors mode. + More...

    + +

    #include <clutchlog.h>

    +
    + + Inheritance diagram for clutchlog::fmt::bg_256:
    +
    +
    + +
    + + Collaboration diagram for clutchlog::fmt::bg_256:
    +
    +
    + +

    Detailed Description

    +

    Background in 256-colors mode.

    + +

    Definition at line 556 of file clutchlog.h.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Public Member Functions

    bg_256 ()
     Empty constructor: no color.
     
     bg_256 (const short b)
     Constructor. More...
     
     bg_256 (const bg &)
     Conversion constructor from 16-colors mode. More...
     
    - Public Member Functions inherited from clutchlog::fmt::color_256
     color_256 (ground t)
     Constructor. More...
     
     color_256 (ground t, const short i)
     Constructor. More...
     
    +bool is_set () const
     Returns true if the underying representation encodes an existing color.
     
    +std::ostream & print_on (std::ostream &os) const
     Print the color index on the given stream.
     
    - Public Member Functions inherited from clutchlog::fmt::color
     color (ansi a, ground g)
     Constructor. More...
     
    + + + + + + + + + + + + + + + +

    +Additional Inherited Members

    - Public Attributes inherited from clutchlog::fmt::color_256
    short index
     The encoded color index in 4-bits ANSI. More...
     
    - Public Attributes inherited from clutchlog::fmt::color
    +ansi mode
     
    +enum clutchlog::fmt::color::ground type
     Type of color (foreground or background).
     
    - Public Types inherited from clutchlog::fmt::color
    enum  ground { fore = 38, +back = 48 + }
     Codes for representing foreground or background.
     
    +

    Constructor & Destructor Documentation

    + +

    ◆ bg_256() [1/2]

    + +
    +
    + + + + + +
    + + + + + + + + +
    clutchlog::fmt::bg_256::bg_256 (const short b)
    +
    +inline
    +
    + +

    Constructor.

    +
    Parameters
    + + +
    bBackground color index (within [-1,255], -1 being "no color").
    +
    +
    + +

    Definition at line 563 of file clutchlog.h.

    + +
    +
    + +

    ◆ bg_256() [2/2]

    + +
    +
    + + + + + +
    + + + + + + + + +
    clutchlog::fmt::bg_256::bg_256 (const bg)
    +
    +inline
    +
    + +

    Conversion constructor from 16-colors mode.

    +
    Warning
    Only encodes "no color", whatever is passed.
    + +

    Definition at line 568 of file clutchlog.h.

    + +
    +
    +
    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1bg__256__coll__graph.map b/docs/structclutchlog_1_1fmt_1_1bg__256__coll__graph.map new file mode 100644 index 0000000..d6e6ce0 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1bg__256__coll__graph.map @@ -0,0 +1,5 @@ + + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1bg__256__coll__graph.md5 b/docs/structclutchlog_1_1fmt_1_1bg__256__coll__graph.md5 new file mode 100644 index 0000000..09dc823 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1bg__256__coll__graph.md5 @@ -0,0 +1 @@ +3855f4ef89806b98b2c9866bede79bc9 \ No newline at end of file diff --git a/docs/structclutchlog_1_1fmt_1_1bg__256__coll__graph.svg b/docs/structclutchlog_1_1fmt_1_1bg__256__coll__graph.svg new file mode 100644 index 0000000..06c825d --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1bg__256__coll__graph.svg @@ -0,0 +1,52 @@ + + + + + + +clutchlog::fmt::bg_256 + + + +Node1 + + +clutchlog::fmt::bg_256 + + + + + +Node2 + + +clutchlog::fmt::color_256 + + + + + +Node2->Node1 + + + + + +Node3 + + +clutchlog::fmt::color + + + + + +Node3->Node2 + + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1bg__256__inherit__graph.map b/docs/structclutchlog_1_1fmt_1_1bg__256__inherit__graph.map new file mode 100644 index 0000000..d6e6ce0 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1bg__256__inherit__graph.map @@ -0,0 +1,5 @@ + + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1bg__256__inherit__graph.md5 b/docs/structclutchlog_1_1fmt_1_1bg__256__inherit__graph.md5 new file mode 100644 index 0000000..09dc823 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1bg__256__inherit__graph.md5 @@ -0,0 +1 @@ +3855f4ef89806b98b2c9866bede79bc9 \ No newline at end of file diff --git a/docs/structclutchlog_1_1fmt_1_1bg__256__inherit__graph.svg b/docs/structclutchlog_1_1fmt_1_1bg__256__inherit__graph.svg new file mode 100644 index 0000000..06c825d --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1bg__256__inherit__graph.svg @@ -0,0 +1,52 @@ + + + + + + +clutchlog::fmt::bg_256 + + + +Node1 + + +clutchlog::fmt::bg_256 + + + + + +Node2 + + +clutchlog::fmt::color_256 + + + + + +Node2->Node1 + + + + + +Node3 + + +clutchlog::fmt::color + + + + + +Node3->Node2 + + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1color-members.html b/docs/structclutchlog_1_1fmt_1_1color-members.html new file mode 100644 index 0000000..9379dce --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1color-members.html @@ -0,0 +1,112 @@ + + + + + + + +clutchlog: Member List + + + + + + + + + + + + + + +
    +
    + + + + + + + +
    +
    clutchlog +  0.13 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    clutchlog::fmt::color Member List
    +
    +
    + +

    This is the complete list of members for clutchlog::fmt::color, including all inherited members.

    + + + + + + + + +
    color(ansi a, ground g)clutchlog::fmt::colorinline
    ground enum nameclutchlog::fmt::color
    is_set() const =0clutchlog::fmt::colorpure virtual
    mode (defined in clutchlog::fmt::color)clutchlog::fmt::color
    operator<<(std::ostream &os, const color &c)clutchlog::fmt::colorfriend
    print_on(std::ostream &os) const =0clutchlog::fmt::colorpure virtual
    typeclutchlog::fmt::color
    +
    + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1color.html b/docs/structclutchlog_1_1fmt_1_1color.html new file mode 100644 index 0000000..712e756 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1color.html @@ -0,0 +1,216 @@ + + + + + + + +clutchlog: clutchlog::fmt::color Struct Reference + + + + + + + + + + + + + + +
    +
    + + + + + + + +
    +
    clutchlog +  0.13 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + + +
    + +

    Interface class for colors representation. + More...

    + +

    #include <clutchlog.h>

    +
    + + Inheritance diagram for clutchlog::fmt::color:
    +
    +
    + +

    Detailed Description

    +

    Interface class for colors representation.

    + +

    Definition at line 470 of file clutchlog.h.

    +
    + + + + + + + + + + +

    +Public Member Functions

     color (ansi a, ground g)
     Constructor. More...
     
    +virtual bool is_set () const =0
     Should return true if the underying representation encodes an existing color.
     
    +virtual std::ostream & print_on (std::ostream &os) const =0
     Should print the underlying representation on the given stream.
     
    + + + + + + +

    +Public Attributes

    +ansi mode
     
    +enum clutchlog::fmt::color::ground type
     Type of color (foreground or background).
     
    + + + + +

    +Public Types

    enum  ground { fore = 38, +back = 48 + }
     Codes for representing foreground or background.
     
    + + + + +

    +Friends

    +std::ostream & operator<< (std::ostream &os, const color &c)
     Print the actually encoded escaped color sequence on the given stream.
     
    +

    Constructor & Destructor Documentation

    + +

    ◆ color()

    + +
    +
    + + + + + +
    + + + + + + + + + + + + + + + + + + +
    clutchlog::fmt::color::color (ansi a,
    ground g 
    )
    +
    +inline
    +
    + +

    Constructor.

    +
    Parameters
    + + + +
    aANSI mode (i.e. number of colors).
    gColor type (i.e. foreground or background).
    +
    +
    + +

    Definition at line 484 of file clutchlog.h.

    + +
    +
    +
    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1color__16_m-members.html b/docs/structclutchlog_1_1fmt_1_1color__16_m-members.html new file mode 100644 index 0000000..f4d107c --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1color__16_m-members.html @@ -0,0 +1,117 @@ + + + + + + + +clutchlog: Member List + + + + + + + + + + + + + + +
    +
    + + + + + + + +
    +
    clutchlog +  0.13 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    clutchlog::fmt::color_16M Member List
    +
    +
    + +

    This is the complete list of members for clutchlog::fmt::color_16M, including all inherited members.

    + + + + + + + + + + + + + +
    blue (defined in clutchlog::fmt::color_16M)clutchlog::fmt::color_16M
    color(ansi a, ground g)clutchlog::fmt::colorinline
    color_16M(ground t)clutchlog::fmt::color_16Minline
    color_16M(ground t, short r, short g, short b)clutchlog::fmt::color_16Minline
    color_16M(ground t, const std::string &srgb)clutchlog::fmt::color_16Minline
    green (defined in clutchlog::fmt::color_16M)clutchlog::fmt::color_16M
    ground enum nameclutchlog::fmt::color
    is_set() constclutchlog::fmt::color_16Minlinevirtual
    mode (defined in clutchlog::fmt::color)clutchlog::fmt::color
    print_on(std::ostream &os) constclutchlog::fmt::color_16Minlinevirtual
    redclutchlog::fmt::color_16M
    typeclutchlog::fmt::color
    +
    + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1color__16_m.html b/docs/structclutchlog_1_1fmt_1_1color__16_m.html new file mode 100644 index 0000000..c04702e --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1color__16_m.html @@ -0,0 +1,357 @@ + + + + + + + +clutchlog: clutchlog::fmt::color_16M Struct Reference + + + + + + + + + + + + + + +
    +
    + + + + + + + +
    +
    clutchlog +  0.13 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + + +
    + +

    Abstract base class for 16M colors objects (24-bits ANSI). + More...

    + +

    #include <clutchlog.h>

    +
    + + Inheritance diagram for clutchlog::fmt::color_16M:
    +
    +
    + +
    + + Collaboration diagram for clutchlog::fmt::color_16M:
    +
    +
    + +

    Detailed Description

    +

    Abstract base class for 16M colors objects (24-bits ANSI).

    + +

    Definition at line 573 of file clutchlog.h.

    +
    + + + + + + + + + + + + + + + + + + + + +

    +Public Member Functions

     color_16M (ground t)
     Constructor. More...
     
     color_16M (ground t, short r, short g, short b)
     Numeric triplet constructor. More...
     
     color_16M (ground t, const std::string &srgb)
     Hex triplet string constructor. More...
     
    +bool is_set () const
     Returns true if the underying representation encodes an existing color.
     
    +std::ostream & print_on (std::ostream &os) const
     Print the color RGB triplet on the given stream.
     
    - Public Member Functions inherited from clutchlog::fmt::color
     color (ansi a, ground g)
     Constructor. More...
     
    + + + + + + + + + + + + + + +

    +Public Attributes

    short red
     The encoded RGB indices. More...
     
    +short green
     
    +short blue
     
    - Public Attributes inherited from clutchlog::fmt::color
    +ansi mode
     
    +enum clutchlog::fmt::color::ground type
     Type of color (foreground or background).
     
    + + + + + +

    +Additional Inherited Members

    - Public Types inherited from clutchlog::fmt::color
    enum  ground { fore = 38, +back = 48 + }
     Codes for representing foreground or background.
     
    +

    Constructor & Destructor Documentation

    + +

    ◆ color_16M() [1/3]

    + +
    +
    + + + + + +
    + + + + + + + + +
    clutchlog::fmt::color_16M::color_16M (ground t)
    +
    +inline
    +
    + +

    Constructor.

    +
    Parameters
    + + +
    tForeground or background tag.
    +
    +
    + +

    Definition at line 582 of file clutchlog.h.

    + +
    +
    + +

    ◆ color_16M() [2/3]

    + +
    +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    clutchlog::fmt::color_16M::color_16M (ground t,
    short r,
    short g,
    short b 
    )
    +
    +inline
    +
    + +

    Numeric triplet constructor.

    +
    Parameters
    + + + + + +
    tForeground or background tag.
    rRed color component.
    gGreen color component.
    bBlue color component.
    +
    +
    + +

    Definition at line 591 of file clutchlog.h.

    + +
    +
    + +

    ◆ color_16M() [3/3]

    + +
    +
    + + + + + +
    + + + + + + + + + + + + + + + + + + +
    clutchlog::fmt::color_16M::color_16M (ground t,
    const std::string & srgb 
    )
    +
    +inline
    +
    + +

    Hex triplet string constructor.

    +
    Note
    If the given string is ill-formed, it will silently encode a "no color".
    +
    Parameters
    + + + +
    tForeground or background tag.
    srgbA "web color" hexadecimal triplet of two characters, starting with a leading number sign (e.g. "#0055ff").
    +
    +
    + +

    Definition at line 601 of file clutchlog.h.

    + +

    References red.

    + +
    +
    +

    Member Data Documentation

    + +

    ◆ red

    + +
    +
    + + + + +
    short clutchlog::fmt::color_16M::red
    +
    + +

    The encoded RGB indices.

    +

    "No color" is encoded as -1.

    + +

    Definition at line 577 of file clutchlog.h.

    + +

    Referenced by color_16M(), is_set(), and print_on().

    + +
    +
    +
    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1color__16_m__coll__graph.map b/docs/structclutchlog_1_1fmt_1_1color__16_m__coll__graph.map new file mode 100644 index 0000000..52284a2 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1color__16_m__coll__graph.map @@ -0,0 +1,4 @@ + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1color__16_m__coll__graph.md5 b/docs/structclutchlog_1_1fmt_1_1color__16_m__coll__graph.md5 new file mode 100644 index 0000000..dcdc383 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1color__16_m__coll__graph.md5 @@ -0,0 +1 @@ +bc23bad6bf83bc7fb3f9f0bba9626d58 \ No newline at end of file diff --git a/docs/structclutchlog_1_1fmt_1_1color__16_m__coll__graph.svg b/docs/structclutchlog_1_1fmt_1_1color__16_m__coll__graph.svg new file mode 100644 index 0000000..771e634 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1color__16_m__coll__graph.svg @@ -0,0 +1,37 @@ + + + + + + +clutchlog::fmt::color_16M + + + +Node1 + + +clutchlog::fmt::color_16M + + + + + +Node2 + + +clutchlog::fmt::color + + + + + +Node2->Node1 + + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1color__16_m__inherit__graph.map b/docs/structclutchlog_1_1fmt_1_1color__16_m__inherit__graph.map new file mode 100644 index 0000000..ec5bcfd --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1color__16_m__inherit__graph.map @@ -0,0 +1,6 @@ + + + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1color__16_m__inherit__graph.md5 b/docs/structclutchlog_1_1fmt_1_1color__16_m__inherit__graph.md5 new file mode 100644 index 0000000..1b746fe --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1color__16_m__inherit__graph.md5 @@ -0,0 +1 @@ +5290ea38d4d49312ea7075f14861359f \ No newline at end of file diff --git a/docs/structclutchlog_1_1fmt_1_1color__16_m__inherit__graph.svg b/docs/structclutchlog_1_1fmt_1_1color__16_m__inherit__graph.svg new file mode 100644 index 0000000..a8ca717 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1color__16_m__inherit__graph.svg @@ -0,0 +1,67 @@ + + + + + + +clutchlog::fmt::color_16M + + + +Node1 + + +clutchlog::fmt::color_16M + + + + + +Node3 + + +clutchlog::fmt::bg_16M + + + + + +Node1->Node3 + + + + + +Node4 + + +clutchlog::fmt::fg_16M + + + + + +Node1->Node4 + + + + + +Node2 + + +clutchlog::fmt::color + + + + + +Node2->Node1 + + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1color__256-members.html b/docs/structclutchlog_1_1fmt_1_1color__256-members.html new file mode 100644 index 0000000..fce44af --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1color__256-members.html @@ -0,0 +1,114 @@ + + + + + + + +clutchlog: Member List + + + + + + + + + + + + + + +
    +
    + + + + + + + +
    +
    clutchlog +  0.13 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    clutchlog::fmt::color_256 Member List
    +
    +
    + +

    This is the complete list of members for clutchlog::fmt::color_256, including all inherited members.

    + + + + + + + + + + +
    color(ansi a, ground g)clutchlog::fmt::colorinline
    color_256(ground t)clutchlog::fmt::color_256inline
    color_256(ground t, const short i)clutchlog::fmt::color_256inline
    ground enum nameclutchlog::fmt::color
    indexclutchlog::fmt::color_256
    is_set() constclutchlog::fmt::color_256inlinevirtual
    mode (defined in clutchlog::fmt::color)clutchlog::fmt::color
    print_on(std::ostream &os) constclutchlog::fmt::color_256inlinevirtual
    typeclutchlog::fmt::color
    +
    + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1color__256.html b/docs/structclutchlog_1_1fmt_1_1color__256.html new file mode 100644 index 0000000..f3a6646 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1color__256.html @@ -0,0 +1,284 @@ + + + + + + + +clutchlog: clutchlog::fmt::color_256 Struct Reference + + + + + + + + + + + + + + +
    +
    + + + + + + + +
    +
    clutchlog +  0.13 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + + +
    + +

    Abstract base class for 256 colors objects (8-bits ANSI). + More...

    + +

    #include <clutchlog.h>

    +
    + + Inheritance diagram for clutchlog::fmt::color_256:
    +
    +
    + +
    + + Collaboration diagram for clutchlog::fmt::color_256:
    +
    +
    + +

    Detailed Description

    +

    Abstract base class for 256 colors objects (8-bits ANSI).

    + +

    Definition at line 509 of file clutchlog.h.

    +
    + + + + + + + + + + + + + + + + + +

    +Public Member Functions

     color_256 (ground t)
     Constructor. More...
     
     color_256 (ground t, const short i)
     Constructor. More...
     
    +bool is_set () const
     Returns true if the underying representation encodes an existing color.
     
    +std::ostream & print_on (std::ostream &os) const
     Print the color index on the given stream.
     
    - Public Member Functions inherited from clutchlog::fmt::color
     color (ansi a, ground g)
     Constructor. More...
     
    + + + + + + + + + + +

    +Public Attributes

    short index
     The encoded color index in 4-bits ANSI. More...
     
    - Public Attributes inherited from clutchlog::fmt::color
    +ansi mode
     
    +enum clutchlog::fmt::color::ground type
     Type of color (foreground or background).
     
    + + + + + +

    +Additional Inherited Members

    - Public Types inherited from clutchlog::fmt::color
    enum  ground { fore = 38, +back = 48 + }
     Codes for representing foreground or background.
     
    +

    Constructor & Destructor Documentation

    + +

    ◆ color_256() [1/2]

    + +
    +
    + + + + + +
    + + + + + + + + +
    clutchlog::fmt::color_256::color_256 (ground t)
    +
    +inline
    +
    + +

    Constructor.

    +
    Parameters
    + + +
    tForeground or background tag.
    +
    +
    + +

    Definition at line 518 of file clutchlog.h.

    + +
    +
    + +

    ◆ color_256() [2/2]

    + +
    +
    + + + + + +
    + + + + + + + + + + + + + + + + + + +
    clutchlog::fmt::color_256::color_256 (ground t,
    const short i 
    )
    +
    +inline
    +
    + +

    Constructor.

    +
    Parameters
    + + + +
    tForeground or background tag.
    iColor index (within [-1,255], -1 being "no color").
    +
    +
    + +

    Definition at line 525 of file clutchlog.h.

    + +
    +
    +

    Member Data Documentation

    + +

    ◆ index

    + +
    +
    + + + + +
    short clutchlog::fmt::color_256::index
    +
    + +

    The encoded color index in 4-bits ANSI.

    +

    "No color" is encoded as -1.

    + +

    Definition at line 513 of file clutchlog.h.

    + +

    Referenced by is_set(), and print_on().

    + +
    +
    +
    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1color__256__coll__graph.map b/docs/structclutchlog_1_1fmt_1_1color__256__coll__graph.map new file mode 100644 index 0000000..9dd0992 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1color__256__coll__graph.map @@ -0,0 +1,4 @@ + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1color__256__coll__graph.md5 b/docs/structclutchlog_1_1fmt_1_1color__256__coll__graph.md5 new file mode 100644 index 0000000..29d054e --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1color__256__coll__graph.md5 @@ -0,0 +1 @@ +47f04ed4e698cdf28222a6cb57fcc2c6 \ No newline at end of file diff --git a/docs/structclutchlog_1_1fmt_1_1color__256__coll__graph.svg b/docs/structclutchlog_1_1fmt_1_1color__256__coll__graph.svg new file mode 100644 index 0000000..26c8502 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1color__256__coll__graph.svg @@ -0,0 +1,37 @@ + + + + + + +clutchlog::fmt::color_256 + + + +Node1 + + +clutchlog::fmt::color_256 + + + + + +Node2 + + +clutchlog::fmt::color + + + + + +Node2->Node1 + + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1color__256__inherit__graph.map b/docs/structclutchlog_1_1fmt_1_1color__256__inherit__graph.map new file mode 100644 index 0000000..fdb380a --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1color__256__inherit__graph.map @@ -0,0 +1,6 @@ + + + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1color__256__inherit__graph.md5 b/docs/structclutchlog_1_1fmt_1_1color__256__inherit__graph.md5 new file mode 100644 index 0000000..1ca0e80 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1color__256__inherit__graph.md5 @@ -0,0 +1 @@ +94ca57a2f8cfa4e3f7bc8cd6d161a718 \ No newline at end of file diff --git a/docs/structclutchlog_1_1fmt_1_1color__256__inherit__graph.svg b/docs/structclutchlog_1_1fmt_1_1color__256__inherit__graph.svg new file mode 100644 index 0000000..777b6fc --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1color__256__inherit__graph.svg @@ -0,0 +1,67 @@ + + + + + + +clutchlog::fmt::color_256 + + + +Node1 + + +clutchlog::fmt::color_256 + + + + + +Node3 + + +clutchlog::fmt::bg_256 + + + + + +Node1->Node3 + + + + + +Node4 + + +clutchlog::fmt::fg_256 + + + + + +Node1->Node4 + + + + + +Node2 + + +clutchlog::fmt::color + + + + + +Node2->Node1 + + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1color__inherit__graph.map b/docs/structclutchlog_1_1fmt_1_1color__inherit__graph.map new file mode 100644 index 0000000..2b183ff --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1color__inherit__graph.map @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1color__inherit__graph.md5 b/docs/structclutchlog_1_1fmt_1_1color__inherit__graph.md5 new file mode 100644 index 0000000..e8a20b9 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1color__inherit__graph.md5 @@ -0,0 +1 @@ +85d4ff8e61f86137af23d267cf9fe06e \ No newline at end of file diff --git a/docs/structclutchlog_1_1fmt_1_1color__inherit__graph.svg b/docs/structclutchlog_1_1fmt_1_1color__inherit__graph.svg new file mode 100644 index 0000000..1855cb2 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1color__inherit__graph.svg @@ -0,0 +1,112 @@ + + + + + + +clutchlog::fmt::color + + + +Node1 + + +clutchlog::fmt::color + + + + + +Node2 + + +clutchlog::fmt::color_16M + + + + + +Node1->Node2 + + + + + +Node5 + + +clutchlog::fmt::color_256 + + + + + +Node1->Node5 + + + + + +Node3 + + +clutchlog::fmt::bg_16M + + + + + +Node2->Node3 + + + + + +Node4 + + +clutchlog::fmt::fg_16M + + + + + +Node2->Node4 + + + + + +Node6 + + +clutchlog::fmt::bg_256 + + + + + +Node5->Node6 + + + + + +Node7 + + +clutchlog::fmt::fg_256 + + + + + +Node5->Node7 + + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1fg__16_m-members.html b/docs/structclutchlog_1_1fmt_1_1fg__16_m-members.html new file mode 100644 index 0000000..84fec36 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1fg__16_m-members.html @@ -0,0 +1,121 @@ + + + + + + + +clutchlog: Member List + + + + + + + + + + + + + + +
    +
    + + + + + + + +
    +
    clutchlog +  0.13 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    clutchlog::fmt::fg_16M Member List
    +
    +
    + +

    This is the complete list of members for clutchlog::fmt::fg_16M, including all inherited members.

    + + + + + + + + + + + + + + + + + +
    blue (defined in clutchlog::fmt::color_16M)clutchlog::fmt::color_16M
    color(ansi a, ground g)clutchlog::fmt::colorinline
    color_16M(ground t)clutchlog::fmt::color_16Minline
    color_16M(ground t, short r, short g, short b)clutchlog::fmt::color_16Minline
    color_16M(ground t, const std::string &srgb)clutchlog::fmt::color_16Minline
    fg_16M()clutchlog::fmt::fg_16Minline
    fg_16M(short r, short g, short b)clutchlog::fmt::fg_16Minline
    fg_16M(const std::string &srgb)clutchlog::fmt::fg_16Minline
    fg_16M(const fg &)clutchlog::fmt::fg_16Minline
    green (defined in clutchlog::fmt::color_16M)clutchlog::fmt::color_16M
    ground enum nameclutchlog::fmt::color
    is_set() constclutchlog::fmt::color_16Minlinevirtual
    mode (defined in clutchlog::fmt::color)clutchlog::fmt::color
    print_on(std::ostream &os) constclutchlog::fmt::color_16Minlinevirtual
    redclutchlog::fmt::color_16M
    typeclutchlog::fmt::color
    +
    + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1fg__16_m.html b/docs/structclutchlog_1_1fmt_1_1fg__16_m.html new file mode 100644 index 0000000..db89eeb --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1fg__16_m.html @@ -0,0 +1,322 @@ + + + + + + + +clutchlog: clutchlog::fmt::fg_16M Struct Reference + + + + + + + + + + + + + + +
    +
    + + + + + + + +
    +
    clutchlog +  0.13 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + + +
    + +

    Foreground in 256-colors mode. + More...

    + +

    #include <clutchlog.h>

    +
    + + Inheritance diagram for clutchlog::fmt::fg_16M:
    +
    +
    + +
    + + Collaboration diagram for clutchlog::fmt::fg_16M:
    +
    +
    + +

    Detailed Description

    +

    Foreground in 256-colors mode.

    + +

    Definition at line 634 of file clutchlog.h.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Public Member Functions

    fg_16M ()
     Empty constructor: no color.
     
     fg_16M (short r, short g, short b)
     Numeric triplet constructor. More...
     
     fg_16M (const std::string &srgb)
     Hex triplet string constructor. More...
     
     fg_16M (const fg &)
     Conversion constructor from 16-colors mode. More...
     
    - Public Member Functions inherited from clutchlog::fmt::color_16M
     color_16M (ground t)
     Constructor. More...
     
     color_16M (ground t, short r, short g, short b)
     Numeric triplet constructor. More...
     
     color_16M (ground t, const std::string &srgb)
     Hex triplet string constructor. More...
     
    +bool is_set () const
     Returns true if the underying representation encodes an existing color.
     
    +std::ostream & print_on (std::ostream &os) const
     Print the color RGB triplet on the given stream.
     
    - Public Member Functions inherited from clutchlog::fmt::color
     color (ansi a, ground g)
     Constructor. More...
     
    + + + + + + + + + + + + + + + + + + + +

    +Additional Inherited Members

    - Public Attributes inherited from clutchlog::fmt::color_16M
    short red
     The encoded RGB indices. More...
     
    +short green
     
    +short blue
     
    - Public Attributes inherited from clutchlog::fmt::color
    +ansi mode
     
    +enum clutchlog::fmt::color::ground type
     Type of color (foreground or background).
     
    - Public Types inherited from clutchlog::fmt::color
    enum  ground { fore = 38, +back = 48 + }
     Codes for representing foreground or background.
     
    +

    Constructor & Destructor Documentation

    + +

    ◆ fg_16M() [1/3]

    + +
    +
    + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    clutchlog::fmt::fg_16M::fg_16M (short r,
    short g,
    short b 
    )
    +
    +inline
    +
    + +

    Numeric triplet constructor.

    +

    Parameters are expected to be in [0,255].

    +
    Parameters
    + + + + +
    rRed color component.
    gGreen color component.
    bBlue color component.
    +
    +
    + +

    Definition at line 646 of file clutchlog.h.

    + +
    +
    + +

    ◆ fg_16M() [2/3]

    + +
    +
    + + + + + +
    + + + + + + + + +
    clutchlog::fmt::fg_16M::fg_16M (const std::string & srgb)
    +
    +inline
    +
    + +

    Hex triplet string constructor.

    +
    Note
    If the given string is ill-formed, it will silently encode a "no color".
    +
    Parameters
    + + +
    srgbA "web color" hexadecimal triplet of two characters, starting with a leading number sign (e.g. "#0055ff").
    +
    +
    + +

    Definition at line 654 of file clutchlog.h.

    + +
    +
    + +

    ◆ fg_16M() [3/3]

    + +
    +
    + + + + + +
    + + + + + + + + +
    clutchlog::fmt::fg_16M::fg_16M (const fg)
    +
    +inline
    +
    + +

    Conversion constructor from 16-colors mode.

    +
    Warning
    Only encodes "no color", whatever is passed.
    + +

    Definition at line 659 of file clutchlog.h.

    + +
    +
    +
    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1fg__16_m__coll__graph.map b/docs/structclutchlog_1_1fmt_1_1fg__16_m__coll__graph.map new file mode 100644 index 0000000..a32a90d --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1fg__16_m__coll__graph.map @@ -0,0 +1,5 @@ + + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1fg__16_m__coll__graph.md5 b/docs/structclutchlog_1_1fmt_1_1fg__16_m__coll__graph.md5 new file mode 100644 index 0000000..c848766 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1fg__16_m__coll__graph.md5 @@ -0,0 +1 @@ +86e3c9ea35f81489acc382ed4fa6cf19 \ No newline at end of file diff --git a/docs/structclutchlog_1_1fmt_1_1fg__16_m__coll__graph.svg b/docs/structclutchlog_1_1fmt_1_1fg__16_m__coll__graph.svg new file mode 100644 index 0000000..8436d1a --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1fg__16_m__coll__graph.svg @@ -0,0 +1,52 @@ + + + + + + +clutchlog::fmt::fg_16M + + + +Node1 + + +clutchlog::fmt::fg_16M + + + + + +Node2 + + +clutchlog::fmt::color_16M + + + + + +Node2->Node1 + + + + + +Node3 + + +clutchlog::fmt::color + + + + + +Node3->Node2 + + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1fg__16_m__inherit__graph.map b/docs/structclutchlog_1_1fmt_1_1fg__16_m__inherit__graph.map new file mode 100644 index 0000000..a32a90d --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1fg__16_m__inherit__graph.map @@ -0,0 +1,5 @@ + + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1fg__16_m__inherit__graph.md5 b/docs/structclutchlog_1_1fmt_1_1fg__16_m__inherit__graph.md5 new file mode 100644 index 0000000..c848766 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1fg__16_m__inherit__graph.md5 @@ -0,0 +1 @@ +86e3c9ea35f81489acc382ed4fa6cf19 \ No newline at end of file diff --git a/docs/structclutchlog_1_1fmt_1_1fg__16_m__inherit__graph.svg b/docs/structclutchlog_1_1fmt_1_1fg__16_m__inherit__graph.svg new file mode 100644 index 0000000..8436d1a --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1fg__16_m__inherit__graph.svg @@ -0,0 +1,52 @@ + + + + + + +clutchlog::fmt::fg_16M + + + +Node1 + + +clutchlog::fmt::fg_16M + + + + + +Node2 + + +clutchlog::fmt::color_16M + + + + + +Node2->Node1 + + + + + +Node3 + + +clutchlog::fmt::color + + + + + +Node3->Node2 + + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1fg__256-members.html b/docs/structclutchlog_1_1fmt_1_1fg__256-members.html new file mode 100644 index 0000000..d713712 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1fg__256-members.html @@ -0,0 +1,117 @@ + + + + + + + +clutchlog: Member List + + + + + + + + + + + + + + +
    +
    + + + + + + + +
    +
    clutchlog +  0.13 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    clutchlog::fmt::fg_256 Member List
    +
    +
    + +

    This is the complete list of members for clutchlog::fmt::fg_256, including all inherited members.

    + + + + + + + + + + + + + +
    color(ansi a, ground g)clutchlog::fmt::colorinline
    color_256(ground t)clutchlog::fmt::color_256inline
    color_256(ground t, const short i)clutchlog::fmt::color_256inline
    fg_256()clutchlog::fmt::fg_256inline
    fg_256(const short f)clutchlog::fmt::fg_256inline
    fg_256(const fg &)clutchlog::fmt::fg_256inline
    ground enum nameclutchlog::fmt::color
    indexclutchlog::fmt::color_256
    is_set() constclutchlog::fmt::color_256inlinevirtual
    mode (defined in clutchlog::fmt::color)clutchlog::fmt::color
    print_on(std::ostream &os) constclutchlog::fmt::color_256inlinevirtual
    typeclutchlog::fmt::color
    +
    + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1fg__256.html b/docs/structclutchlog_1_1fmt_1_1fg__256.html new file mode 100644 index 0000000..5e639b3 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1fg__256.html @@ -0,0 +1,254 @@ + + + + + + + +clutchlog: clutchlog::fmt::fg_256 Struct Reference + + + + + + + + + + + + + + +
    +
    + + + + + + + +
    +
    clutchlog +  0.13 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + + +
    + +

    Foreground in 256-colors mode. + More...

    + +

    #include <clutchlog.h>

    +
    + + Inheritance diagram for clutchlog::fmt::fg_256:
    +
    +
    + +
    + + Collaboration diagram for clutchlog::fmt::fg_256:
    +
    +
    + +

    Detailed Description

    +

    Foreground in 256-colors mode.

    + +

    Definition at line 539 of file clutchlog.h.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Public Member Functions

    fg_256 ()
     Empty constructor: no color.
     
     fg_256 (const short f)
     Constructor. More...
     
     fg_256 (const fg &)
     Conversion constructor from 16-colors mode. More...
     
    - Public Member Functions inherited from clutchlog::fmt::color_256
     color_256 (ground t)
     Constructor. More...
     
     color_256 (ground t, const short i)
     Constructor. More...
     
    +bool is_set () const
     Returns true if the underying representation encodes an existing color.
     
    +std::ostream & print_on (std::ostream &os) const
     Print the color index on the given stream.
     
    - Public Member Functions inherited from clutchlog::fmt::color
     color (ansi a, ground g)
     Constructor. More...
     
    + + + + + + + + + + + + + + + +

    +Additional Inherited Members

    - Public Attributes inherited from clutchlog::fmt::color_256
    short index
     The encoded color index in 4-bits ANSI. More...
     
    - Public Attributes inherited from clutchlog::fmt::color
    +ansi mode
     
    +enum clutchlog::fmt::color::ground type
     Type of color (foreground or background).
     
    - Public Types inherited from clutchlog::fmt::color
    enum  ground { fore = 38, +back = 48 + }
     Codes for representing foreground or background.
     
    +

    Constructor & Destructor Documentation

    + +

    ◆ fg_256() [1/2]

    + +
    +
    + + + + + +
    + + + + + + + + +
    clutchlog::fmt::fg_256::fg_256 (const short f)
    +
    +inline
    +
    + +

    Constructor.

    +
    Parameters
    + + +
    fForeground color index (within [-1,255], -1 being "no color").
    +
    +
    + +

    Definition at line 546 of file clutchlog.h.

    + +
    +
    + +

    ◆ fg_256() [2/2]

    + +
    +
    + + + + + +
    + + + + + + + + +
    clutchlog::fmt::fg_256::fg_256 (const fg)
    +
    +inline
    +
    + +

    Conversion constructor from 16-colors mode.

    +
    Warning
    Only encodes "no color", whatever is passed.
    + +

    Definition at line 551 of file clutchlog.h.

    + +
    +
    +
    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1fg__256__coll__graph.map b/docs/structclutchlog_1_1fmt_1_1fg__256__coll__graph.map new file mode 100644 index 0000000..d05746d --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1fg__256__coll__graph.map @@ -0,0 +1,5 @@ + + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1fg__256__coll__graph.md5 b/docs/structclutchlog_1_1fmt_1_1fg__256__coll__graph.md5 new file mode 100644 index 0000000..0406bf7 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1fg__256__coll__graph.md5 @@ -0,0 +1 @@ +f6c2cee087aafee8c05ce5892c70571b \ No newline at end of file diff --git a/docs/structclutchlog_1_1fmt_1_1fg__256__coll__graph.svg b/docs/structclutchlog_1_1fmt_1_1fg__256__coll__graph.svg new file mode 100644 index 0000000..53b40bd --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1fg__256__coll__graph.svg @@ -0,0 +1,52 @@ + + + + + + +clutchlog::fmt::fg_256 + + + +Node1 + + +clutchlog::fmt::fg_256 + + + + + +Node2 + + +clutchlog::fmt::color_256 + + + + + +Node2->Node1 + + + + + +Node3 + + +clutchlog::fmt::color + + + + + +Node3->Node2 + + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1fg__256__inherit__graph.map b/docs/structclutchlog_1_1fmt_1_1fg__256__inherit__graph.map new file mode 100644 index 0000000..d05746d --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1fg__256__inherit__graph.map @@ -0,0 +1,5 @@ + + + + + diff --git a/docs/structclutchlog_1_1fmt_1_1fg__256__inherit__graph.md5 b/docs/structclutchlog_1_1fmt_1_1fg__256__inherit__graph.md5 new file mode 100644 index 0000000..0406bf7 --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1fg__256__inherit__graph.md5 @@ -0,0 +1 @@ +f6c2cee087aafee8c05ce5892c70571b \ No newline at end of file diff --git a/docs/structclutchlog_1_1fmt_1_1fg__256__inherit__graph.svg b/docs/structclutchlog_1_1fmt_1_1fg__256__inherit__graph.svg new file mode 100644 index 0000000..53b40bd --- /dev/null +++ b/docs/structclutchlog_1_1fmt_1_1fg__256__inherit__graph.svg @@ -0,0 +1,52 @@ + + + + + + +clutchlog::fmt::fg_256 + + + +Node1 + + +clutchlog::fmt::fg_256 + + + + + +Node2 + + +clutchlog::fmt::color_256 + + + + + +Node2->Node1 + + + + + +Node3 + + +clutchlog::fmt::color + + + + + +Node3->Node2 + + + + + diff --git a/docs/structclutchlog_1_1scope__t-members.html b/docs/structclutchlog_1_1scope__t-members.html index a9f1f0c..44ff5bf 100644 --- a/docs/structclutchlog_1_1scope__t-members.html +++ b/docs/structclutchlog_1_1scope__t-members.html @@ -28,7 +28,7 @@ Logo
    clutchlog -  0.12 +  0.13
    diff --git a/docs/structclutchlog_1_1scope__t.html b/docs/structclutchlog_1_1scope__t.html index 621fb92..3511232 100644 --- a/docs/structclutchlog_1_1scope__t.html +++ b/docs/structclutchlog_1_1scope__t.html @@ -28,7 +28,7 @@ Logo
    clutchlog -  0.12 +  0.13
    @@ -100,7 +100,7 @@ $(document).ready(function(){initNavTree('structclutchlog_1_1scope__t.html','');

    Detailed Description

    Structure holding a location matching.

    -

    Definition at line 666 of file clutchlog.h.

    +

    Definition at line 1050 of file clutchlog.h.

    diff --git a/docs/t-assert_8cpp_source.html b/docs/t-assert_8cpp_source.html index 6dcbbbf..be34ca5 100644 --- a/docs/t-assert_8cpp_source.html +++ b/docs/t-assert_8cpp_source.html @@ -28,7 +28,7 @@ diff --git a/docs/t-color16_m_8cpp_source.html b/docs/t-color16_m_8cpp_source.html new file mode 100644 index 0000000..2e2acdc --- /dev/null +++ b/docs/t-color16_m_8cpp_source.html @@ -0,0 +1,154 @@ + + + + + + + +clutchlog: t-color16M.cpp Source File + + + + + + + + + + + + + + +
    +
    +

    Public Member Functions

    clutchlog -  0.12 +  0.13
    + + + + + + +
    +
    clutchlog +  0.13 +
    +
    + + + + + + + + + +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    t-color16M.cpp
    +
    +
    +
    1 #include <iostream>
    +
    2 #include <limits>
    +
    3 
    +
    4 #include "../clutchlog/clutchlog.h"
    +
    5 
    +
    6 int main(/*const int argc, char* argv[]*/)
    +
    7 {
    +
    8  using typo = clutchlog::fmt::typo;
    +
    9  // using fg = clutchlog::fmt::fg;
    +
    10  // using bg = clutchlog::fmt::bg;
    +
    11 
    +
    12  clutchlog::fmt none;
    +
    13  clutchlog::fmt end(typo::reset);
    +
    14  clutchlog::fmt note(typo::bold);
    +
    15  clutchlog::fmt info(120,255,120); // greenish
    +
    16  clutchlog::fmt warning("#ff0055", typo::bold); // magentaish
    +
    17  clutchlog::fmt error(255,100,150, typo::bold); // redish magenta
    +
    18  clutchlog::fmt critical("#ffff00", "#ff0000"); // Yellow over red.
    +
    19 
    +
    20  auto& log = clutchlog::logger();
    +
    21  log.threshold(clutchlog::level::info);
    +
    22 
    +
    23  // Change a style.
    +
    24  log.style(clutchlog::level::critical, error);
    +
    25  CLUTCHLOG(critical,"Styles demo");
    +
    26 
    +
    27  CLUTCHLOG(info,"Either using functions...");
    +
    28  std::cout << none("No style: ") << std::endl;
    +
    29  std::cout << note("NOTE: bold") << std::endl;
    +
    30  std::cout << info("INFO: green") << std::endl;
    +
    31 
    +
    32  CLUTCHLOG(info,"... or tags.");
    +
    33  std::cout << warning << "WARNING" << end << ": bold magenta" << std::endl;
    +
    34  std::cout << error << "ERROR" << end << ": bold red" << std::endl;
    +
    35  std::cout << critical << "CRITICAL" << end << ": underlined black over red background" << std::endl;
    +
    36 
    +
    37  std::ostringstream format;
    +
    38  clutchlog::fmt discreet("#888888", typo::inverse);
    +
    39  format << "{level}: "
    +
    40  << discreet("{file}") << ":"
    +
    41  << clutchlog::fmt(/*front RGB*/200,150,0, /*back RGB*/0,0,0) << "{line}" // gold yellow over black
    +
    42  << clutchlog::fmt(typo::reset) << " {msg} ! " << std::endl;
    +
    43  log.format(format.str());
    +
    44  CLUTCHLOG(critical,"After having inserted styles within a new format template");
    +
    45 }
    +
    46 
    +
    47 
    +
    +
    +
    static clutchlog & logger()
    Get the logger instance.
    Definition: clutchlog.h:296
    +
    Color and style formatter for ANSI terminal escape sequences.
    Definition: clutchlog.h:366
    +
    #define CLUTCHLOG(LEVEL, WHAT)
    Log a message at the given level.
    Definition: clutchlog.h:81
    +
    typo
    Typographic style codes.
    Definition: clutchlog.h:379
    + + + + diff --git a/docs/t-color256_8cpp_source.html b/docs/t-color256_8cpp_source.html new file mode 100644 index 0000000..0a483ed --- /dev/null +++ b/docs/t-color256_8cpp_source.html @@ -0,0 +1,153 @@ + + + + + + + +clutchlog: t-color256.cpp Source File + + + + + + + + + + + + + + +
    +
    + + + + + + + +
    +
    clutchlog +  0.13 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    t-color256.cpp
    +
    +
    +
    1 #include <iostream>
    +
    2 #include <limits>
    +
    3 
    +
    4 #include "../clutchlog/clutchlog.h"
    +
    5 
    +
    6 int main(/*const int argc, char* argv[]*/)
    +
    7 {
    +
    8  using typo = clutchlog::fmt::typo;
    +
    9  // using fg = clutchlog::fmt::fg;
    +
    10  // using bg = clutchlog::fmt::bg;
    +
    11 
    +
    12  clutchlog::fmt none;
    +
    13  clutchlog::fmt end(typo::reset);
    +
    14  clutchlog::fmt note(typo::bold);
    +
    15  clutchlog::fmt info(106); // greenish
    +
    16  clutchlog::fmt warning(171, typo::bold); // magentaish
    +
    17  clutchlog::fmt error(198, typo::bold); // redish magenta
    +
    18  clutchlog::fmt critical(226, 196, typo::underline); // Yellow over red.
    +
    19 
    +
    20  auto& log = clutchlog::logger();
    +
    21  log.threshold(clutchlog::level::info);
    +
    22 
    +
    23  // Change a style.
    +
    24  log.style(clutchlog::level::critical, error);
    +
    25  CLUTCHLOG(critical,"Styles demo");
    +
    26 
    +
    27  CLUTCHLOG(info,"Either using functions...");
    +
    28  std::cout << none("No style: ") << std::endl;
    +
    29  std::cout << note("NOTE: bold") << std::endl;
    +
    30  std::cout << info("INFO: green") << std::endl;
    +
    31 
    +
    32  CLUTCHLOG(info,"... or tags.");
    +
    33  std::cout << warning << "WARNING" << end << ": bold magenta" << std::endl;
    +
    34  std::cout << error << "ERROR" << end << ": bold red" << std::endl;
    +
    35  std::cout << critical << "CRITICAL" << end << ": underlined black over red background" << std::endl;
    +
    36 
    +
    37  std::ostringstream format;
    +
    38  clutchlog::fmt discreet(254);
    +
    39  format << "{level}: "
    +
    40  << discreet("{file}:")
    +
    41  << clutchlog::fmt(220, typo::inverse) << "{line}" // gold yellow
    +
    42  << clutchlog::fmt(typo::reset) << " {msg} ! " << std::endl;
    +
    43  log.format(format.str());
    +
    44  CLUTCHLOG(critical,"After having inserted styles within a new format template");
    +
    45 }
    +
    46 
    +
    +
    +
    static clutchlog & logger()
    Get the logger instance.
    Definition: clutchlog.h:296
    +
    Color and style formatter for ANSI terminal escape sequences.
    Definition: clutchlog.h:366
    +
    #define CLUTCHLOG(LEVEL, WHAT)
    Log a message at the given level.
    Definition: clutchlog.h:81
    +
    typo
    Typographic style codes.
    Definition: clutchlog.h:379
    + + + + diff --git a/docs/t-color_8cpp_source.html b/docs/t-color_8cpp_source.html index 67f1526..8ed2576 100644 --- a/docs/t-color_8cpp_source.html +++ b/docs/t-color_8cpp_source.html @@ -28,7 +28,7 @@ Logo
    clutchlog -  0.12 +  0.13
    @@ -96,8 +96,8 @@ $(document).ready(function(){initNavTree('t-color_8cpp_source.html',''); initRes
    6 int main(/*const int argc, char* argv[]*/)
    7 {
    8  using typo = clutchlog::fmt::typo;
    -
    9  using fg = clutchlog::fmt::fg;
    -
    10  using bg = clutchlog::fmt::bg;
    +
    9  using fg = clutchlog::fmt::fg;
    +
    10  using bg = clutchlog::fmt::bg;
    11 
    12  clutchlog::fmt none;
    13  clutchlog::fmt end(typo::reset);
    @@ -135,12 +135,12 @@ $(document).ready(function(){initNavTree('t-color_8cpp_source.html',''); initRes
    45 }
    -
    fg
    Foreground color codes.
    Definition: clutchlog.h:317
    -
    bg
    Background color codes.
    Definition: clutchlog.h:330
    static clutchlog & logger()
    Get the logger instance.
    Definition: clutchlog.h:296
    -
    Color and style formatter for ANSI terminal escape sequences.
    Definition: clutchlog.h:314
    +
    Color and style formatter for ANSI terminal escape sequences.
    Definition: clutchlog.h:366
    +
    bg
    Background color codes.
    Definition: clutchlog.h:411
    #define CLUTCHLOG(LEVEL, WHAT)
    Log a message at the given level.
    Definition: clutchlog.h:81
    -
    typo
    Typographic style codes.
    Definition: clutchlog.h:343
    +
    typo
    Typographic style codes.
    Definition: clutchlog.h:379
    +
    fg
    Foreground color codes.
    Definition: clutchlog.h:390
    static clutchlog & logger()
    Get the logger instance.
    Definition: clutchlog.h:296
    -
    Color and style formatter for ANSI terminal escape sequences.
    Definition: clutchlog.h:314
    +
    Color and style formatter for ANSI terminal escape sequences.
    Definition: clutchlog.h:366
    #define CLUTCHLOG(LEVEL, WHAT)
    Log a message at the given level.
    Definition: clutchlog.h:81