laswriteitem.hpp
Go to the documentation of this file.
1 /*
2 ===============================================================================
3 
4  FILE: LASwriteitem.hpp
5 
6  CONTENTS:
7 
8  Common interface for all classes that write the items that compose a point.
9 
10  PROGRAMMERS:
11 
12  martin.isenburg@gmail.com
13 
14  COPYRIGHT:
15 
16  (c) 2007-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  10 January 2011 -- licensing change for LGPL release and liblas integration
28  12 December 2010 -- refactored after watching two movies with silke
29 
30 ===============================================================================
31 */
32 #ifndef LAS_WRITE_ITEM_H
33 #define LAS_WRITE_ITEM_H
34 
35 #include "mydefs.hpp"
36 
37 class ByteStreamOut;
38 
40 {
41 public:
42  virtual BOOL write(const U8* item)=0;
43 
44  virtual ~LASwriteItem(){};
45 };
46 
48 {
49 public:
51  {
52  outstream = 0;
53  };
54  BOOL init(ByteStreamOut* outstream)
55  {
56  if (!outstream) return FALSE;
57  this->outstream = outstream;
58  return TRUE;
59  };
60  virtual ~LASwriteItemRaw(){};
61 protected:
62  ByteStreamOut* outstream;
63 };
64 
66 {
67 public:
68  virtual BOOL init(const U8* item)=0;
69 
71 };
72 
73 #endif
int BOOL
Definition: mydefs.hpp:57
#define FALSE
Definition: mydefs.hpp:133
virtual ~LASwriteItemCompressed()
unsigned char U8
Definition: mydefs.hpp:41
virtual ~LASwriteItemRaw()
virtual ~LASwriteItem()
virtual BOOL write(const U8 *item)=0
#define TRUE
Definition: mydefs.hpp:137
BOOL init(ByteStreamOut *outstream)


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 Mon Feb 28 2022 22:46:07