Points&Forces (survey)
Software tools facilitating the task of surveying architecture
a_vertex.cxx
Go to the documentation of this file.
1 /*
2 Copyright 2010-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_vertex.h"
17 
18 //***************************************************************************
19 //-operator>>----------------------------------------------------------------
20 std::istream& operator>> (std::istream& i, a_vertex& b)
21 {
22  i >> b.ref_;
23  i >> b.pos_;
24  return i;
25 }
26 //-operator<<----------------------------------------------------------------
27 std::ostream& operator<< (std::ostream& o, const a_vertex& b)
28 {
29  o << b.ref_ << " " << b.pos_ << std::endl;
30  return o;
31 }
32 
std::istream & operator>>(std::istream &i, a_vertex &b)
Definition: a_vertex.cxx:20
std::ostream & operator<<(std::ostream &o, const a_vertex &b)
Definition: a_vertex.cxx:27
int ref_
Definition: a_vertex.h:30
a_point pos_
Definition: a_vertex.h:31