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  };
55  {
56  if (!outstream) return FALSE;
57  this->outstream = outstream;
58  return TRUE;
59  };
60  virtual ~LASwriteItemRaw(){};
61 protected:
63 };
64 
66 {
67 public:
68  virtual BOOL init(const U8* item)=0;
69 
71 };
72 
73 #endif
LASwriteItemCompressed::init
virtual BOOL init(const U8 *item)=0
LASwriteItem::~LASwriteItem
virtual ~LASwriteItem()
Definition: laswriteitem.hpp:44
TRUE
#define TRUE
Definition: mydefs.hpp:137
LASwriteItemRaw::LASwriteItemRaw
LASwriteItemRaw()
Definition: laswriteitem.hpp:50
LASwriteItemRaw
Definition: laswriteitem.hpp:47
LASwriteItem::write
virtual BOOL write(const U8 *item)=0
ByteStreamOut
Definition: bytestreamout.hpp:36
LASwriteItemRaw::init
BOOL init(ByteStreamOut *outstream)
Definition: laswriteitem.hpp:54
mydefs.hpp
LASwriteItemCompressed
Definition: laswriteitem.hpp:65
U8
unsigned char U8
Definition: mydefs.hpp:41
BOOL
int BOOL
Definition: mydefs.hpp:57
FALSE
#define FALSE
Definition: mydefs.hpp:133
LASwriteItemCompressed::~LASwriteItemCompressed
virtual ~LASwriteItemCompressed()
Definition: laswriteitem.hpp:70
LASwriteItemRaw::~LASwriteItemRaw
virtual ~LASwriteItemRaw()
Definition: laswriteitem.hpp:60
LASwriteItemRaw::outstream
ByteStreamOut * outstream
Definition: laswriteitem.hpp:60
LASwriteItem
Definition: laswriteitem.hpp:39


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