/* ---- This file is part of SECONDO. Copyright (C) 2013, Faculty of Mathematics and Computer Science, Database Systems for New Applications. SECONDO is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. SECONDO is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with SECONDO; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ---- 1 Includes and global variables */ #include "PreciseHalfSegment.h" using namespace std; ostream& operator<<(ostream& os, const OWNER& owner){ switch(owner){ case FIRST : os << "first"; break; case SECOND : os << "second"; break; case BOTH : os << "both"; break; case NONE : os << "none"; break; default : os << "unknown"; } return os; } ostream& operator<<(ostream& os, const MPrecHalfSegment& hs){ os << "scale: " << hs.getScale() << ":: " << "lp: " << hs.getLeftPoint().toString(false) << ", rp : " << hs.getRightPoint().toString(false) << ", ldp : " << hs.isLeftDomPoint() << ", owner : " << hs.getOwner() << " Attr : " << hs.attributes; return os; } ostream& operator<<(ostream& os, const PPrecHalfSegment& hs){ os << "ldp : " << hs.getLeftDomPoint() << ", lp = " << hs.getLeftPoint() << ", rp = " << hs.getRightPoint() << ", Attributes " << hs.attributes; return os; }