Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

YAML serialization library for C++?

YAML seems like a great format for configuration files & data binding persistent objects in human-readable form...

Is there a C++ library that handles YAML? Does Boost::Serialization have plans for a YAML option?

EDIT: I would prefer an OO library.

like image 292
paxos1977 Avatar asked Oct 28 '08 20:10

paxos1977


People also ask

What is YAML serialization?

YAML is a data serialization language that is often used for writing configuration files. Depending on whom you ask, YAML stands for yet another markup language or YAML ain't markup language (a recursive acronym), which emphasizes that YAML is for data, not documents.

Is YAML a serialization language?

YAML is a recursive acronym for “YAML Ain't Markup Language.” It is a human-readable data serialization language commonly used for data storage and configuration files.

Is YAML a data serialization format?

YAML is a digestible data serialization language often used to create configuration files with any programming language. Designed for human interaction, YAML is a strict superset of JSON, another data serialization language.

What is YAML library?

YAML (/ˈjæməl/ and YAH-ml) (see § History and name) is a human-readable data-serialization language. It is commonly used for configuration files and in applications where data is being stored or transmitted.


2 Answers

A quick search gave me this: yaml-cpp

like image 57
Luc Hermitte Avatar answered Sep 27 '22 19:09

Luc Hermitte


Try the YAML component from the BOOST vault serialization library.

EDIT 2014: A recent development, https://groups.google.com/d/msg/boost-devel-archive/mhT7qIh1nsI/uXAuXFAWrxQJ

EDIT 2019: Didn't try it yet, but this seems to be a serious take: https://github.com/rwols/yaml-archive

like image 41
alfC Avatar answered Sep 27 '22 20:09

alfC