Giter Site home page Giter Site logo

vxapps / modern.cpp.core Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 3.0 782 KB

Modern C++ Core Classes

Home Page: https://vxapps.com

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

CMake 16.26% C++ 83.74%
serial cpu cpp17 singleton timer double timing exec daemon service

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

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

waj-vx sarvex

modern.cpp.core's Issues

Read aarch64 CPU Information

Read aarch64 CPU information to restore the CPU.cpp functions for aarch64. Also the informations about enclaves have to fill back again.

Exec.cpp will read stderr instead of stdout

Exec.cpp will read stderr if the first data will response on stderr. Also, it would than just only read stderr and not stdout. So this has to be enchanged to read stdout and stderr and fix the output channel to read. Also receive the exit code of the called application.

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.