[Liblas-commits] laszip: new interface for chunking

liblas-commits at liblas.org liblas-commits at liblas.org
Mon Apr 25 19:16:11 EDT 2011


details:   http://hg.liblas.orglaszip/rev/2a9b8b99bf2d
changeset: 212:2a9b8b99bf2d
user:      isenburg
date:      Mon Apr 25 16:18:10 2011 -0700
description:
new interface for chunking

diffstat:

 include/laszip/laszipper.hpp |  12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (41 lines):

diff -r 22d7c227b155 -r 2a9b8b99bf2d include/laszip/laszipper.hpp
--- a/include/laszip/laszipper.hpp	Mon Apr 25 16:16:45 2011 -0700
+++ b/include/laszip/laszipper.hpp	Mon Apr 25 16:18:10 2011 -0700
@@ -24,13 +24,14 @@
   
   CHANGE HISTORY:
   
+    23 April 2011 -- changed interface for easier future compressor support
     10 January 2011 -- licensing change for LGPL release and liblas integration
     12 December 2010 -- created from LASwriter/LASreader after Howard got pushy (-;
   
 ===============================================================================
 */
-#ifndef LAS_ZIPPER_H
-#define LAS_ZIPPER_H
+#ifndef LAS_ZIPPER_HPP
+#define LAS_ZIPPER_HPP
 
 #include <stdio.h>
 
@@ -50,8 +51,9 @@
 class LASZIP_DLL LASzipper
 {
 public:
-  unsigned int open(FILE* outfile, unsigned int num_items, LASitem items[], LASzip::Algorithm algorithm);
-  unsigned int open(ostream& outstream, unsigned int num_items, LASitem items[], LASzip::Algorithm algorithm);
+  unsigned int setup(LASzip* laszip);
+  unsigned int open(FILE* outfile);
+  unsigned int open(ostream& outstream);
   bool write(const unsigned char* const * point);
   unsigned int close();
 
@@ -59,7 +61,7 @@
   ~LASzipper();
 
 private:
-  int count;
+  unsigned int count;
   ByteStreamOut* stream;
   LASwritePoint* writer;
 };


More information about the Liblas-commits mailing list