Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shuzhengz/jec-cpp
Jabacat's Easy Config, C++ edition
https://github.com/shuzhengz/jec-cpp
Last synced: 10 days ago
JSON representation
Jabacat's Easy Config, C++ edition
- Host: GitHub
- URL: https://github.com/shuzhengz/jec-cpp
- Owner: Shuzhengz
- License: mit
- Created: 2022-08-03T18:53:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-27T07:01:43.000Z (almost 2 years ago)
- Last Synced: 2023-03-03T23:20:55.281Z (over 1 year ago)
- Language: C++
- Size: 26.4 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JEC-CPP ![C++](https://github.com/Shuzhengz/JEC-cpp/actions/workflows/C++.yml/badge.svg)
Jabacat's Easy Config, C++ edition
[JEC-py](https://github.com/JakeRoggenbuck/JEC-py) | [JEC-rs](https://github.com/JakeRoggenbuck/JEC-rs) | [JEC-go](https://github.com/JakeRoggenbuck/JEC-go) | JEC-c | [JEC-c++](https://github.com/Shuzhengz/JEC-cpp) | JEC-zig | JEC-ts | [JEC-kt](https://github.com/EdwinChang24/JEC-kt)
Works in progress
TODO:
- [x] Complete Functions
- [ ] Make Tests
- [ ] Make Documentation## API
```rs
ConfigFile
- from_home
- exists
- remove
- create
ConfigDir
- from_home
- exists
- remove
- create
```## Usage
``` cpp
// Files and Directories
static bool exists(fs::path& path); // Checks if file or directory exists// Files
static void remove(fs::path& path); // Removes file
static void create(fs::path& path, std::string& name); // Creates file
static std::string from_home(fs::path& path); // Gets path from home// Directories
static void remove(fs::path& path); // Removes Directory
static void create(fs::path& path, char name); // Creates directory
static std::string from_home(fs::path& path); // Gets directory path from home (auto delete filename)
```