skandinaff / cpp-utilities

C++ Utilities for debug, generic filesystem checks and more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

C++ Utilities

C++ Utilities for debug, generic filesystem checks and more.

This is a library of small helpful snippets.

Most code is only tested for use in Linux, and there may be basic support for Windows or OS X, but no testing on those platforms. Compile and run the tests with the 'runTests.sh' file, or running the compiled executables directly.

Features

  • Debug
    • Basic printing macros - Info, Debug, Warning, Error, etc
    • CPU Timer class (benchmarking)
    • Clock Cycle Timer class (benchmarking)
  • Number
    • Check two floating point numbers are approximately equal.
  • String
    • Convert between string and number.
  • Hash
  • Filesystem
    • Check a file path exists.
    • Write a chunk of memory to disk.
    • List the contents of a directory.
    • Print the contents of a directory.
  • Operating System (Linux only)
    • Process memory usage.
    • Get total RAM size.
  • Visual Effects
    • Frame Relative time sampling calculations
  • File Path
    • Parse a file path to determine frame number start / end index.
    • Image sequence formating for adding frame numbers.

Usage

To be written.

Build and Install

To be written.

Dependencies

  • C++ compiler with support for C++0x or above

About

C++ Utilities for debug, generic filesystem checks and more.

License:GNU Lesser General Public License v3.0


Languages

Language:C++ 95.3%Language:CMake 3.9%Language:Shell 0.8%