https://github.com/maxrt101/mrt
C++ Utilities
https://github.com/maxrt101/mrt
cpp17
Last synced: 5 months ago
JSON representation
C++ Utilities
- Host: GitHub
- URL: https://github.com/maxrt101/mrt
- Owner: maxrt101
- License: mit
- Created: 2021-02-27T23:44:53.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-09-03T00:25:01.000Z (almost 4 years ago)
- Last Synced: 2025-04-05T18:51:31.781Z (about 1 year ago)
- Topics: cpp17
- Language: C++
- Homepage:
- Size: 87.9 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mrt
C++ Tools
# Overwriew
The library mainly consists of:
- Thread Utils (ThreadPool, Executors, Futures, etc)
- Test Framework
- String Utils
- Command Line Argument Parser
- Config File Parser
- Optional
- Template String Formatter
- Container Utils
- Logger
- Wrappers (File, DynamicLibrary)
- Console IO Utilities
- HTTP Request Support (in progress)
- Proccess Wrapper (in progress)
# How to install:
```sh
git clone https://github.com/maxrt101/mrt.git
cd mrt
make
```
The install copies headers to an installation location.
You can specify install folder, by setting `PREFIX`, e.g.
```sh
make PREFIX=/path/to/installation/folder
```
The header files will be installed into `/path/to/installation/folder/include/mrt`
Default `PREFIX` is `build/`
# Tests
Tests are located in `tests/` folder.
Every `test_*.cc` file is a test for some `mrt` component.
Tests are built into `build/test/test_*.so` files, which can then be run separately using `build/bin/mrt_test`.
```sh
make test # to build & run tests
make test RUN=0 # to build tests
./build/bin/mrt_test TESTS # to run individual tests (TESTS is one or more .so files from build/test)
```