MCPcopy Create free account
hub / github.com/LAStools/LAStools / reopen

Method reopen

LASlib/src/lasreader_qfit.cpp:405–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405BOOL LASreaderQFIT::reopen(const char* file_name)
406{
407 if (file_name == 0)
408 {
409 laserror("file name pointer is zero");
410 return FALSE;
411 }
412
413 // open file
414 file = LASfopen(file_name, "rb");
415 if (file == 0)
416 {
417 laserror("cannot open file '%s'", file_name);
418 return FALSE;
419 }
420
421 // create input stream
422
423 if (Endian::IS_LITTLE_ENDIAN)
424 stream = new ByteStreamInFileLE(file);
425 else
426 stream = new ByteStreamInFileBE(file);
427
428 p_idx = 0;
429 p_cnt = 0;
430 return stream->seek(offset);
431}
432
433LASreaderQFIT::LASreaderQFIT(LASreadOpener* opener) :LASreader(opener)
434{

Callers

nothing calls this directly

Calls 3

laserrorFunction · 0.85
LASfopenFunction · 0.85
seekMethod · 0.45

Tested by

no test coverage detected