Main Page   Class Hierarchy   Compound List   File List   Compound Members  

zipios_common.h

Go to the documentation of this file.
00001 #ifndef ZIPIOS_COMMON_H
00002 #define ZIPIOS_COMMON_H
00003 
00004 #include "zipios++/zipios-config.h"
00005 
00006 #include <vector>
00007 
00008 namespace zipios {
00009 
00010 using std::vector;
00011 
00012 static const char separator = '/' ;
00013 
00014 template< class Type >
00015 void operator += ( vector< Type > &v1, const vector< Type > &v2 ) {
00016   std::vector<Type>::const_iterator cit ;
00017   for ( cit = v2.begin() ; cit != v2.end() ; cit++ )
00018     v1.push_back( *cit ) ;
00019 }
00020 
00021 template< class T >
00022 inline const T& min( const T& a, const T& b ) {
00023   return b < a ? b : a ;
00024 }
00025 
00026 
00027 } // namespace
00028 
00029 #endif
00030 
00035 /*
00036   Zipios++ - a small C++ library that provides easy access to .zip files.
00037   Copyright (C) 2000  Thomas Søndergaard
00038   
00039   This library is free software; you can redistribute it and/or
00040   modify it under the terms of the GNU Lesser General Public
00041   License as published by the Free Software Foundation; either
00042   version 2 of the License, or (at your option) any later version.
00043   
00044   This library is distributed in the hope that it will be useful,
00045   but WITHOUT ANY WARRANTY; without even the implied warranty of
00046   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00047   Lesser General Public License for more details.
00048   
00049   You should have received a copy of the GNU Lesser General Public
00050   License along with this library; if not, write to the Free Software
00051   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00052 */

Generated at Tue Aug 14 20:39:26 2001 for Zipios++ by doxygen1.2.0 written by Dimitri van Heesch, © 1997-2000