Giter Site home page Giter Site logo

sarvex / modern.cpp.core Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vxapps/modern.cpp.core

0.0 1.0 0.0 703 KB

Modern C++ Core Classes

Home Page: https://vxapps.com

License: BSD 3-Clause "New" or "Revised" License

C++ 83.64% CMake 16.36%

modern.cpp.core's Introduction

modern.cpp.core

Modern C++ core classes for specific functions in most native and modern C++23 or C++20 or at least C++17.

Build

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE:STRING=Debug|Release ../modern.cpp.core
make -j`nproc`

Classes

  • CPU - Get CPU information.
  • Demangle - abi, simple, extreme
  • Exec - Run command and return stdout or mixed (stdout and stderr) and result code.
  • Keyboard - Check for caps lock state.
  • Logger - Log everything, everywhere.
  • Serial - Serial communication class (Not for Windows).
  • StringUtils - TrimLeft, TrimRight, Trim, StartsWith, EndsWith, Tokenize, Simplified.
  • Timestamp - ISO 8601 timestamp.
  • Timing - Measuring time, cpu and wall time.

Templates

  • Cpp23 - std::is_scoped_enum, std::to_underlying, std::unreachable.
  • CSVWriter - Write out comma-separated values.
  • FloatingPoint - Less, Greater, Equal, Between, Round, Split.
  • SharedQueue - Queue, which is thread-safe.
  • Singleton - Singleton template class.
  • Timer - Timeout thread on time or interval.
  • TypeCheck - Template variant for typename check.

Rectangle templates

  • Line - Line based on two points.
  • Point - Point from x and y.
  • Rect - Rectangle template based on Point and Size.
  • Size - Size from width and height.

Unix daemon body

  • Main function to run as a unix daemon (Not for Windows).

modern.cpp.core's People

Contributors

florianbecker avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.