MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / parse

Method parse

radiantcore/map/PointFile.cpp:88–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void PointFile::parse(const fs::path& pointfile)
89{
90 // Open the first pointfile and get its input stream if possible
91 std::ifstream inFile(pointfile);
92 if (!inFile)
93 {
94 throw cmd::ExecutionFailure(
95 fmt::format(_("Could not open pointfile: {0}"), pointfile.string())
96 );
97 }
98
99 // Construct vertices from parsed point data
100 PointTrace trace(inFile);
101 for (auto pos: trace.points())
102 {
103 _points.emplace_back(pos, RED);
104 }
105}
106
107// advance camera to previous point
108void PointFile::advance(bool forward)

Callers 2

loadInfoFileMethod · 0.45

Calls 4

ExecutionFailureClass · 0.85
stringMethod · 0.80
formatFunction · 0.50
_Function · 0.50

Tested by

no test coverage detected