ext
laslib
src
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
39
class
LASreadItem
40
{
41
public
:
42
virtual
void
read
(
U8
* item)=0;
43
44
virtual
~LASreadItem
(){};
45
};
46
47
class
LASreadItemRaw
:
public
LASreadItem
48
{
49
public
:
50
LASreadItemRaw
()
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
65
class
LASreadItemCompressed
:
public
LASreadItem
66
{
67
public
:
68
virtual
BOOL
init
(
const
U8
* item)=0;
69
70
virtual
~LASreadItemCompressed
(){};
71
};
72
73
#endif
LASreadItemCompressed::init
virtual BOOL init(const U8 *item)=0
LASreadItem::read
virtual void read(U8 *item)=0
LASreadItemRaw::instream
ByteStreamIn * instream
Definition:
lasreaditem.hpp:60
TRUE
#define TRUE
Definition:
mydefs.hpp:137
LASreadItemCompressed
Definition:
lasreaditem.hpp:65
LASreadItem::~LASreadItem
virtual ~LASreadItem()
Definition:
lasreaditem.hpp:44
LASreadItemRaw::~LASreadItemRaw
virtual ~LASreadItemRaw()
Definition:
lasreaditem.hpp:60
LASreadItemRaw::LASreadItemRaw
LASreadItemRaw()
Definition:
lasreaditem.hpp:50
LASreadItemRaw
Definition:
lasreaditem.hpp:47
mydefs.hpp
ByteStreamIn
Definition:
bytestreamin.hpp:36
U8
unsigned char U8
Definition:
mydefs.hpp:41
BOOL
int BOOL
Definition:
mydefs.hpp:57
LASreadItem
Definition:
lasreaditem.hpp:39
FALSE
#define FALSE
Definition:
mydefs.hpp:133
LASreadItemRaw::init
BOOL init(ByteStreamIn *instream)
Definition:
lasreaditem.hpp:54
LASreadItemCompressed::~LASreadItemCompressed
virtual ~LASreadItemCompressed()
Definition:
lasreaditem.hpp:70
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