yaml-cpp
How to overload operator>> for bool
I 开发者_运维知识库want to parse scalar as bool. This example works: #include <yaml.h> #include <iostream>[详细]
2023-04-03 01:50 分类:问答How to use yaml-cpp to emit a complicated data structure?
This question is targeted principally at the author of yaml-cpp (Jesse Beder), who has requested questions regarding yaml-cpp usage be posted here.[详细]
2023-04-01 20:51 分类:问答How to align map entries
I wonder if there is a way to align the map lines so that the colons appear vertically? I have tried SetIndent() and SetLocalIndent(), bu开发者_运维知识库t with now visible effects.[详细]
2023-03-28 17:12 分类:问答yaml scientific notation syntax
While working with a yaml document, I found that one of my values was getting parsed as a string with snakeyaml:[详细]
2023-03-22 06:39 分类:问答Retrieve anchor & alias string in yaml-cpp from document
I\'ve looked through the yaml-cpp documentation & source code and know that linking of anchored nodes is 开发者_JAVA百科handled by yaml-cpp lib but I would still like to access the string value of[详细]
2023-03-18 08:31 分类:问答How to link to yaml-cpp on Arch Linux with qtcreator?
I\'m interested in using Yaml in my media player project. The only problem is I can\'t figure out how you compile with Yaml, especially on qt-creator. The AUR package for yaml-cpp doesn\'t seem to ins[详细]
2023-03-18 07:52 分类:问答How can I format a number when emitting using yaml-cpp?
I need to output my data in scientific notation with fixed width like the sample below. Is there any way to achieve it?[详细]
2023-03-15 19:22 分类:问答YAML ofstream emitter
I find this example: ofstream ofstr(\"output.yaml\"); YAML::Emitter out(ofstr); out << some_large_document;[详细]
2023-03-12 11:05 分类:问答Trouble in getting to content within brackets
monsters.yaml - name: Ogre position: [0, 5, 0] powers: - name: Club damage: 10 - name: Fist damage: 8 - name: Dragon[详细]
2023-02-13 06:42 分类:问答why do you have only AlphaNumeric allowed in anchor name?
I am using yaml-cpp in my project, and find out that an anchor name is only allowed to consist of AlphaNumeric characters. I failed to find such restriction in the spec, only found this:[详细]
2023-02-08 03:08 分类:问答