yaml-cppYAML的C++解析器
yaml-cpp 是一個 YAML 解析器,使用 C++ 編寫,支持 YAML 1.2 規(guī)范。
示例代碼:
#include <fstream>
#include "yaml.h"
int main()
{
std::ifstream fin("test.yaml");
YAML::Parser parser(fin);
YAML::Node doc;
while(parser.GetNextDocument(doc)) {
// ...
}
return 0;
}
評論
圖片
表情
