Points&Forces (core)
Software tools facilitating the task of surveying architecture
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 
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 }
std::istream * file_
Definition: a_dxf_entity.h:37
a dxf group
Definition: a_dxf_group.h:30
int code()
Definition: a_dxf_group.h:36
void putback()
Definition: a_dxf_group.cxx:68