Skip to content

pointcache/YACL

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yet Another Config Library for C++

About

YACL is library for operating configs with large and complex hierarchy. Library designed to be as simple as possible to read config and operate with them in code

Installation

YACL using cmake to build project.

Build example provided below

$ mkdir build
$ cd build
$ cmake .. && cmake --build .

Documentation

All documentation can be found in doc/ folder. It's generated with doxygen.

Usage

#include <YACL/config.h>
int main() {
  yacl::Setting *root = yacl::Config::parseConfigFromFile("config.yacl");
  yacl::Config::printConfig(root);

  int var1 = *root->field("var1");
  std::string var2 = *root->field("var2");
  std::string var3 = *root->field("var3");

  yacl::Setting::recDeleteGraph(root);
  return 0;
}

Other examples can be found in example/ folder.

Todo List

  • Add gtest
  • Add write functionality
  • Python, Java, ObjC wrappers
  • Add crypt and convert to binary

About

Yet Another Config Library for C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 97.5%
  • CMake 2.5%