Skip to content

Includes (usage)

Tsukini edited this page Aug 19, 2026 · 12 revisions

There is tow way to include the libutils

#include <utils.hpp>
#include <utils/utils.hpp>

Both are the same on user side, #include <utils.hpp> is only a redirection with some change on how internal include work

Defines

Used to include only some part of the lib, by default: everything

Global Define

Define Content
_Utils Include everything (defined by default), defines: _Handling, _Tools, _Attribute

Group Defines

Define Content
_Handling _Exception, _Verbose, _Pool, _Cli, _Arguments, _Network
_Tools _BLT, _Concepts, _Math, _Manip, _Algorithms, _Security

Individual Defines

_Hanlding

Define Content
_Exception Custom exception with better output formatting and customization
_Verbose Multiple macro to enable/disable with different level the verbosity
_Pool Handling of groups/mass of entity like cluster
_Cli Full customizable & automated command line interface (doesn't handle line warping)
_Arguments Handle argv/argc custom parsing and also settings/options storage (any type)
_Network Allow an easy handling for Client/Server based on unix socket

_Tools

Define Content
_BLT Implementation of a bidirectional lookup table
_Concepts Different concepts that could be used for math and other things
_Math Set of tools to manipulate point/angle and vector
_Manip Set of tools to manipulate the i/o or string
_Algorithms Multiple algorithms such has c2dmp-hsm or s.o.s
_Security Different tools used to encrypt/decrypt or secure lib usage

Individual

Define Content From
_Attribute Auto selection of attribute definition for fallback, c++14, c++17 and c++20, such has: [[likely]], [[nodiscard]]... none
_Middleware Small class to store and use multiple middleware (or hooks) _Pool
_Socket Handle unix socket init/close/send... _Network `
_IOManip Set of tools to manipulate the i/o _Manip
_SManip Set of tools to manipulate string _Manip
_C2DMP Algorithm that give the distance between 2 string _Algorithms
_SOS Algorithm used to hide data into any type of file _Algorithms
_Encryption Tools such has RSA or AES to encrypt or decrypt data _Security
_Observer Doesn't do any things, this is a dull import, maybe in the future _Security
_Vector Definition of 2D/3D Vector (x, y, z) _Math
_Geometry Different function to compute point/angle (2D/3D) _Math
_Trigo Different function to compute point/angle (2D/3D) _Math

Clone this wiki locally