| 576 | }; |
| 577 | |
| 578 | void open(const char* mode) |
| 579 | { |
| 580 | if (fp == 0) |
| 581 | { |
| 582 | fp = LASfopen(filename_points, mode); |
| 583 | if (fp == 0) |
| 584 | { |
| 585 | laserror("cannot open file '%s': %s", filename_points, strerror(errno)); |
| 586 | } |
| 587 | fseek_las(fp, 0, SEEK_END); |
| 588 | num_connexions++; |
| 589 | } |
| 590 | } |
| 591 | |
| 592 | void close(bool force = false) |
| 593 | { |