Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/furfurylic/commata
Just another header-only C++17 CSV parser
https://github.com/furfurylic/commata
cpp17 csv header-only
Last synced: 2 months ago
JSON representation
Just another header-only C++17 CSV parser
- Host: GitHub
- URL: https://github.com/furfurylic/commata
- Owner: furfurylic
- License: unlicense
- Created: 2017-03-24T06:01:44.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T10:09:19.000Z (2 months ago)
- Last Synced: 2024-10-29T12:13:13.242Z (2 months ago)
- Topics: cpp17, csv, header-only
- Language: C++
- Homepage:
- Size: 1.77 MB
- Stars: 13
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Commata
Just another header-only C++17 CSV parser
## For users
- [Primer](CommataPrimer.md)
- [Specification](https://furfurylic.github.io/commata/CommataSpecification.xml)Commata's version numbers strictly comply to
[Semantic Versioning](https://semver.org/) only since the major version one.
With the major version zero, each pre-release version has been misapplied to
indicate a bugfix release.
So, for example, 0.2.4-bug1 came after 0.2.4, which is not an order that
Semantic Versioning mandates.## For developers
Commata is written in C++17 and consists only of headers.
All C++ codes in this repository shall compile and link with
Microsoft Visual Studio 2019, 2022, GCC 7.3 and Clang 7.0.This repository also contains a test of it in `src_test` directory.
Tests are written on [GoogleTest](https://github.com/google/googletest) v1.15.0.
Commata employs CMake 3.13 or later to make the test.
You can build it as follows:1. At the top directory of the repository, prepare GoogleTest and the tests for
Commata with CMake into `build` directory:
```bash
$ cmake -S . -B build -DCOMMATA_BUILD_TESTS=ON
```
You can also explicitly specify the geneator, the platform, the build type, and so on. For example:
```bash
$ cmake -S . -B build -GNinja -DCMAKE_BUILD_TYPE=Debug -DCOMMATA_BUILD_TESTS=ON
```
or
```bash
$ cmake -S . -B build -G "Visual Studio 17 2022" -A x64 -DCOMMATA_BUILD_TESTS=ON
```1. Now you can make and execute the tests.
All you have to do should be `cd build`, `cmake --build .`, and then `src_test/test_commata`.
Or, with Microsoft Visual Studio, open `commata.sln` in `build` directory, build `test_commata` project, and run it.