search for: jsonfile

Displaying 1 result from an estimated 1 matches for "jsonfile".

Did you mean: isofile
2013 Mar 11
0
[LLVMdev] YAML IO problems
...IO &io, FooBar& fb) { io.mapRequired("bool_test", fb.boolTest); io.mapRequired("directory", fb.directory); io.mapRequired("suffix", fb.suffix); io.mapRequired("int_test", fb.intTest); } }; } } int main() { ifstream jsonFile("yaml.json"); if (jsonFile.is_open()) { // Read file into a string string jsonSource((istreambuf_iterator<char>(jsonFile)), istreambuf_iterator<char>()); jsonFile.close(); FooBar doc; Input yin(jsonSource.c_str()); yin >...