Utility library for my c++ projects
Go to file
matthias@arch a8ec1fbc10 Lots of improvements
Log can now log any type for which to_string() exists
Path to the logfile can now be specified, log attempts to create missing
directories.
Added option to clear logfile at start
Added more documentation.
2022-09-11 01:25:02 +02:00
src Lots of improvements 2022-09-11 01:25:02 +02:00
.gitignore Initial commit 2022-09-04 23:09:54 +02:00
gen_enum_str.py Added gen_enum_str 2022-09-05 03:08:19 +02:00
generate_vec.py Added shebang 2022-09-05 03:11:04 +02:00
LICENSE Added license 2022-09-05 01:03:46 +02:00
PKGBUILD Changed folder names 2022-09-05 01:00:33 +02:00
README.md Added gen_enum_str 2022-09-05 03:10:27 +02:00

gz-cpp-util

cpp-20 utility library for my projects

Features

  • Extensive logger using variadic templates to log almost anything
  • VecX classes
  • Some containers like a thread safe queue and a ringbuffer
  • Regex that works with std::string_view
  • Type conversion utility (from string to int/float/uint/bool)

Installation

Arch Linux (ABS)

  • Download PKGBUILD: wget https://raw.github.com/MatthiasQuintern/gz-cpp-util/main/PKGBUILD
  • Build and install with the Arch Build System: makepkg -si

Linux

  • Make a clone of this repo: git clone https://github.com/MatthiasQuintern/gz-cpp-util
  • Build and install: cd src && make && make install

Usage

Library

  • Add -lgzutil to your linker flags
  • Include the wanted header: #include <gz-util/*dir*/*header.hpp*>

Enumeration-to-string script

  • The gen_enum_str.py script will be installed to /usr/bin/gz-enum-str.
  • Run gz-enum-str -h to list available options.

Documentation

The documentation for this library can be generated using doxygen. Install doxygen and run make docs, then open docs/html/index.html.

Changelog

2022-09-05

  • initial version