I m 撰写嵌入的C++方案,需要添加序列化/代号。 格式应当为人读和书写,我更喜欢使用(a小类)标准格式,如《国际马法》。 我也更喜欢奥马尼马,因为它更加简明扼要。
虽然Myaml-cpp与我一样具有确切的功能,但来源代码几乎是300K,几乎将我的代码尺寸增加一倍,这似乎对我来说是过分的,以便增加人类可读的序列化/代号。
Before I start writing my own reader/writer for a subset of YAML, I d like to first check whether this already exists? I have not been able to find one, but would much prefer to use existing code rather than rolling my own. Are there any C or C++ YAML readers/writers out there of, say, 50K code or less? I only need functionality for the basic data structures (scalar, array, hash), not any advanced stuff.
With many thanks in advance.