MCPcopy Create free account
hub / github.com/PDAL/PDAL / openProgress

Function openProgress

pdal/PDALUtils.hpp:220–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220inline int openProgress(const std::string& filename)
221{
222#ifdef _WIN32
223 return -1;
224#else
225 int fd = open(filename.c_str(), O_WRONLY | O_NONBLOCK);
226 if (fd == -1)
227 {
228 std::string out = "Can't open progress file '";
229 out += filename + "'.";
230 printError(out);
231 }
232 return fd;
233#endif
234}
235
236
237inline void closeProgress(int fd)

Callers 1

executeMethod · 0.85

Calls 2

printErrorFunction · 0.85
openFunction · 0.50

Tested by

no test coverage detected