00001 /* 00002 * Copyright (C) 1991-9 Eric M. Hopper <hopper@omnifarious.mn.org> 00003 * 00004 * This program is free software; you can redistribute it and/or modify it 00005 * under the terms of the GNU Lesser General Public License as published 00006 * by the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, but 00010 * WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public 00015 * License along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00017 */ 00018 00019 /* $Header: /home/hopper/src/cvs/C++/StrMod/LinearExtentStrmOp.cxx,v 1.6 2002/02/05 22:50:06 hopper Exp $ */ 00020 00021 // See ChangLog for log. 00022 // Revision 1.2 1998/08/24 02:08:39 hopper 00023 // Changed to return the value it's supposed to return. 00024 // 00025 // Revision 1.1 1996/06/29 06:53:20 hopper 00026 // New file for implementation of stream operator for class LinearExtent. 00027 // 00028 00029 #include <StrMod/LinearExtent.h> 00030 #include <iostream> 00031 00032 namespace strmod { 00033 namespace strmod { 00034 00035 std::ostream &operator <<(std::ostream &os, const LinearExtent &ext) 00036 { 00037 #ifdef __GNUG__ 00038 unsigned long long end; 00039 #else 00040 unsigned long end; 00041 #endif 00042 00043 end = ext.Offset(); 00044 end += ext.Length(); 00045 return(os << "[" << ext.Offset() << "--(" << ext.Length() 00046 << ")-->" << end << ")"); 00047 } 00048 00049 }; // End namespace strmod 00050 }; // End namespace strmod
1.3-rc1