MCPcopy Create free account
hub / github.com/LASzip/LASzip / make_zipper

Function make_zipper

example/laszippertest.cpp:264–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262//---------------------------------------------------------------------------
263
264static LASzipper* make_zipper(OStream* ost, const LASzip* laszip)
265{
266 LASzipper* zipper = new LASzipper();
267 if (zipper == 0)
268 {
269 log("ERROR: could not alloc laszipper\n");
270 exit(1);
271 }
272 bool success;
273 if (ost->m_use_iostream)
274 success = zipper->open(*ost->streamo, laszip);
275 else
276 success = zipper->open(ost->ofile, laszip);
277 if (!success)
278 {
279 log("ERROR: could not open laszipper with %s because %s\n", ost->m_filename, zipper->get_error());
280 exit(1);
281 }
282 return zipper;
283}
284
285//---------------------------------------------------------------------------
286

Callers 1

run_testFunction · 0.85

Calls 3

logFunction · 0.85
openMethod · 0.45
get_errorMethod · 0.45

Tested by

no test coverage detected