Points&Forces (core)
Software tools facilitating the task of surveying architecture
dxf
a_dxf_entity.cxx
Go to the documentation of this file.
1
/*
2
Copyright 2002-2011 Pierre SMARS (smars@yuntech.edu.tw)
3
This program is free software: you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation, either version 2 of the License, or
6
(at your option) any later version.
7
8
This program is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
GNU General Public License for more details.
12
13
You should have received a copy of the GNU General Public License
14
along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*/
16
#include "
a_dxf_entity.h
"
17
#include "
a_dxf_group.h
"
18
19
bool
a_dxf_entity::read
()
20
{
21
a_dxf_group
group(
file_
);
22
for
(;;)
23
{
24
group.
read
();
25
if
(group.
code
()==0)
26
break
;
27
}
28
group.
putback
();
29
//if the code is 0, it indicates a new entity, and the group is put back in the stream
30
return
true
;
31
}
a_dxf_entity.h
a_dxf_group.h
a_dxf_entity::file_
std::istream * file_
Definition:
a_dxf_entity.h:37
a_dxf_entity::read
bool read()
Definition:
a_dxf_entity.cxx:19
a_dxf_group
a dxf group
Definition:
a_dxf_group.h:30
a_dxf_group::code
int code()
Definition:
a_dxf_group.h:36
a_dxf_group::putback
void putback()
Definition:
a_dxf_group.cxx:68
a_dxf_group::read
bool read()
Definition:
a_dxf_group.cxx:21
Generated on Tue Sep 6 2022 18:50:16 for Points&Forces (core) by
1.9.1