laszipper.hpp
Go to the documentation of this file.
1 /*
2 ===============================================================================
3 
4  FILE: LASzipper.hpp
5 
6  CONTENTS:
7 
8  Writes (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  8 May 2011 -- added an option for variable chunking via chunk()
28  23 April 2011 -- changed interface for simplicity and chunking support
29  10 January 2011 -- licensing change for LGPL release and liblas integration
30  12 December 2010 -- created from LASwriter/LASreader after Howard got pushy (-;
31 
32 ===============================================================================
33 */
34 #ifndef LAS_ZIPPER_HPP
35 #define LAS_ZIPPER_HPP
36 
37 #include <stdio.h>
38 
39 #include "laszip.hpp"
40 
41 #ifdef LZ_WIN32_VC6
42 #include <fstream.h>
43 #else
44 #include <istream>
45 #include <fstream>
46 using namespace std;
47 #endif
48 
49 class ByteStreamOut;
50 class LASwritePoint;
51 
53 {
54 public:
55  bool open(FILE* outfile, const LASzip* laszip);
56  bool open(ostream& outstream, const LASzip* laszip);
57 
58  bool write(const unsigned char* const * point);
59  bool chunk();
60  bool close();
61 
62  LASzipper();
63  ~LASzipper();
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
LASzipper::error_string
char * error_string
Definition: laszipper.hpp:73
LASzip
Definition: laszip.hpp:80
LASzipper::count
unsigned int count
Definition: laszipper.hpp:69
ByteStreamOut
Definition: bytestreamout.hpp:36
LASzipper::stream
ByteStreamOut * stream
Definition: laszipper.hpp:70
LASzipper::writer
LASwritePoint * writer
Definition: laszipper.hpp:71
LASwritePoint
Definition: laswritepoint.hpp:48
std
Definition: HalfEdge.hpp:124
LASzipper
Definition: laszipper.hpp:52
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:24