cpp-hocon
cpp-hocon copied to clipboard
Is there a way to write configuration parameters to files ?
I appreciate the work you have done to provide a C++ support for the HOCON configuration file format. I wonder if there is API available to write configuration parameters to files at runtime or any schedules about this.
The general pattern is to load a config_document via https://github.com/puppetlabs/cpp-hocon/blob/master/lib/inc/hocon/parser/config_document_factory.hpp, make changes to it with https://github.com/puppetlabs/cpp-hocon/blob/master/lib/inc/hocon/parser/config_document.hpp, then call render().
This project could definitely benefit from some documented examples, but I don't know that anyone is currently planning to add them.