lasunzipper.hpp
Go to the documentation of this file.
1 /*
2 ===============================================================================
3 
4  FILE: LASunzipper.hpp
5 
6  CONTENTS:
7 
8  Reads (optionally compressed) LIDAR points to LAS formats 1.0 - 1.3
9 
10  PROGRAMMERS:
11 
12  martin.isenburg@gmail.com
13 
14  COPYRIGHT:
15 
16  (c) 2010-2011, Martin Isenburg, LASSO - tools to catch reality
17 
18  This is free software; you can redistribute and/or modify it under the
19  terms of the GNU Lesser General Licence as published by the Free Software
20  Foundation. See the COPYING file for more information.
21 
22  This software is distributed WITHOUT ANY WARRANTY and without even the
23  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24 
25  CHANGE HISTORY:
26 
27  23 April 2011 -- changed interface for easier future compressor support
28  10 January 2011 -- licensing change for LGPL release and liblas integration
29  12 December 2010 -- created from LASwriter/LASreader after Howard got pushy (-;
30 
31 ===============================================================================
32 */
33 #ifndef LAS_UNZIPPER_HPP
34 #define LAS_UNZIPPER_HPP
35 
36 #include <stdio.h>
37 
38 #include "laszip.hpp"
39 
40 #ifdef LZ_WIN32_VC6
41 #include <fstream.h>
42 #else
43 #include <istream>
44 #include <fstream>
45 using namespace std;
46 #endif
47 
48 class ByteStreamIn;
49 class LASreadPoint;
50 
52 {
53 public:
54  bool open(FILE* file, const LASzip* laszip);
55  bool open(istream& stream, const LASzip* laszip);
56 
57  unsigned int tell() const;
58  bool seek(const unsigned int position);
59  bool read(unsigned char * const * point);
60  bool close();
61 
62  LASunzipper();
63  ~LASunzipper();
64 
65  // in case a function returns false this string describes the problem
66  const char* get_error() const;
67 
68 private:
69  unsigned int count;
72  bool return_error(const char* err);
73  char* error_string;
74 };
75 
76 #endif
LASunzipper::count
unsigned int count
Definition: lasunzipper.hpp:69
LASreadPoint
Definition: lasreadpoint.hpp:48
LASzip
Definition: laszip.hpp:80
ByteStreamIn
Definition: bytestreamin.hpp:36
LASunzipper::error_string
char * error_string
Definition: lasunzipper.hpp:73
file
FILE * file
Definition: arithmeticencoder.cpp:77
std
Definition: HalfEdge.hpp:124
LASunzipper::reader
LASreadPoint * reader
Definition: lasunzipper.hpp:71
LASunzipper::stream
ByteStreamIn * stream
Definition: lasunzipper.hpp:70
LASunzipper
Definition: lasunzipper.hpp:51
LASZIP_DLL
#define LASZIP_DLL
Definition: laszip.hpp:68
laszip.hpp
lvr2::hdf5util::open
std::shared_ptr< HighFive::File > open(const std::string &filename)
Definition: Hdf5Util.cpp:202


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:23