1 /**************************************************************************
2 * bucketutils.hxx -- support routines to handle fgBUCKET operations
4 * Written by Bernie Bright, started January 1998.
6 * Copyright (C) 1998 Bernie Bright - bbright@c031.aone.net.au
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of the
11 * License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 * (Log is kept at end of this file)
24 **************************************************************************/
27 #ifndef _BUCKETUTILS_HXX
28 #define _BUCKETUTILS_HXX
32 #include "bucketutils.h"
34 #include <Include/compiler.h>
38 operator== ( const fgBUCKET& b1, const fgBUCKET& b2 )
40 return ( b1.lon == b2.lon &&
47 fgBucketGenIndex( const fgBUCKET& p )
50 sprintf( index_str, "%ld", fgBucketGenIndex( &p ) );
51 return string( index_str );
55 fgBucketGenBasePath( const fgBUCKET& p )
58 fgBucketGenBasePath( &p, base_path );
59 return string( base_path );
63 operator<< ( ostream& out, const fgBUCKET& b )
65 return out << b.lon << "," << b.lat << " " << b.x << "," << b.y;
68 #endif /* _BUCKETUTILS_HXX */
72 // Revision 1.1 1998/11/09 23:42:12 curt