lasreaditem.hpp
Go to the documentation of this file.
1 /*
2 ===============================================================================
3 
4  FILE: LASreaditem.hpp
5 
6  CONTENTS:
7 
8  Common interface for all classes that read the items that compose a point.
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  10 January 2011 -- licensing change for LGPL release and liblas integration
28  7 December 2010 -- refactored after getting invited to KAUST in Saudi Arabia
29 
30 ===============================================================================
31 */
32 #ifndef LAS_READ_ITEM_H
33 #define LAS_READ_ITEM_H
34 
35 #include "mydefs.hpp"
36 
37 class ByteStreamIn;
38 
40 {
41 public:
42  virtual void read(U8* item)=0;
43 
44  virtual ~LASreadItem(){};
45 };
46 
48 {
49 public:
51  {
52  instream = 0;
53  };
54  BOOL init(ByteStreamIn* instream)
55  {
56  if (!instream) return FALSE;
57  this->instream = instream;
58  return TRUE;
59  };
60  virtual ~LASreadItemRaw(){};
61 protected:
62  ByteStreamIn* instream;
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
BOOL init(ByteStreamIn *instream)
Definition: lasreaditem.hpp:54
virtual void read(U8 *item)=0
unsigned char U8
Definition: mydefs.hpp:41
virtual ~LASreadItemRaw()
Definition: lasreaditem.hpp:60
virtual ~LASreadItem()
Definition: lasreaditem.hpp:44
virtual ~LASreadItemCompressed()
Definition: lasreaditem.hpp:70
#define TRUE
Definition: mydefs.hpp:137


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