// Build a path name from an tile index
void fgBucketGenBasePath( const fgBUCKET *p, char *path) {
- long int index;
+ // long int index;
int top_lon, top_lat, main_lon, main_lat;
char hem, pole;
- index = fgBucketGenIndex(p);
+ // index = fgBucketGenIndex(p);
path[0] = '\0';
// Given a lat/lon, fill in the local tile index array
void fgBucketGenIdxArray(fgBUCKET *p1, fgBUCKET *tiles, int width, int height) {
- fgBUCKET *p2;
+ // fgBUCKET *p2;
int dw, dh, i, j;
dh = height / 2;
for ( j = 0; j < height; j++ ) {
for ( i = 0; i < width; i++ ) {
fgBucketOffset(p1, &tiles[(j*width)+i], i - dw, j - dh);
- p2 = &tiles[(j*width)+i];
+ // p2 = &tiles[(j*width)+i];
/* printf( " bucket = %d %d %d %d index = %ld\n",
p2->lon, p2->lat, p2->x, p2->y,
fgBucketGenIndex(&tiles[(j*width)+i])); */
// $Log$
+// Revision 1.2 1999/02/26 22:07:53 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.1 1999/02/17 20:52:05 curt
// Renamed bucketutils.c -> bucketutils.cxx
//
// Build the path name for this bucket
string FGBucket::gen_base_path() {
- long int index;
+ // long int index;
int top_lon, top_lat, main_lon, main_lat;
char hem, pole;
char path[256];
- index = gen_index();
+ // index = gen_index();
path[0] = '\0';
// $Log$
+// Revision 1.3 1999/02/26 22:07:54 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.2 1999/02/11 01:09:33 curt
// Added a routine to calculate the offset in bucket units between two buckets.
//
// fgBUCKET struct and C routines. This FGBucket class adjusts the tile
// width towards the poles to ensure the tiles are at least 8 miles wide.
//
+
#include <Include/compiler.h>
-#include <string>
+#include STL_STRING
FG_USING_STD(string);
FG_USING_NAMESPACE(std);
// $Log$
+// Revision 1.3 1999/02/26 22:07:55 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.2 1999/02/11 01:09:34 curt
// Added a routine to calculate the offset in bucket units between two buckets.
//
// (Log is kept at end of this file)
-#include <string>
+#include <Include/compiler.h>
+
+#include STL_STRING
#include <Debug/logstream.hxx>
#include <Include/fg_zlib.h>
// $Log$
+// Revision 1.7 1999/02/26 22:08:03 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.6 1999/01/27 04:46:16 curt
// Portability tweaks by Bernie Bright.
//
# error This library requires C++
#endif
-
-#include <string>
-
#include "Include/compiler.h"
+
+#include STL_STRING
FG_USING_STD(string);
+#ifdef FG_HAVE_NATIVE_SGI_COMPILERS
+FG_USING_NAMESPACE(std);
+#endif
+
#define MAX_TABLE_SIZE 32
// $Log$
+// Revision 1.5 1999/02/26 22:08:05 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.4 1999/01/27 04:46:17 curt
// Portability tweaks by Bernie Bright.
//
# include "Include/config.h"
#endif
-#include <string>
+#include <Include/compiler.h>
-#include "Include/compiler.h"
-#ifdef FG_HAVE_STD_INCLUDES
+#if defined( FG_HAVE_STD_INCLUDES )
# include <istream>
+#elif defined ( FG_HAVE_NATIVE_SGI_COMPILERS )
+# include <CC/stream.h>
#else
# include <istream.h>
#endif
+#include STL_STRING
+
+#include "zfstream.hxx"
+
FG_USING_STD(string);
FG_USING_STD(istream);
+#ifdef FG_HAVE_NATIVE_SGI_COMPILERS
+FG_USING_NAMESPACE(std);
+#endif
-#include "zfstream.hxx"
//-----------------------------------------------------------------------------
//
#endif /* _FGSTREAM_HXX */
// $Log$
+// Revision 1.7 1999/02/26 22:08:08 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.6 1999/01/19 20:41:46 curt
// Portability updates contributed by Bernie Bright.
//
#ifndef STRUTILS_H
#define STRUTILS_H
-#include <string>
-#include "Include/compiler.h"
+#include <Include/compiler.h>
+#include STL_STRING
#ifdef FG_HAVE_STD_INCLUDES
# include <cstdlib>
FG_USING_STD(string);
+#ifdef FG_HAVE_NATIVE_SGI_COMPILERS
+FG_USING_NAMESPACE(std);
+#endif
+
// Default characters to remove.
extern const string whitespace;
#endif // STRUTILS_H
// $Log$
+// Revision 1.5 1999/02/26 22:08:09 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.4 1999/01/19 20:41:47 curt
// Portability updates contributed by Bernie Bright.
//
#if defined(__GNUC__) && __GNUC_MINOR__ < 8
# define ios_binary ios::bin
+#elif defined( FG_HAVE_NATIVE_SGI_COMPILERS )
+# define ios_binary 1
#else
# define ios_binary ios::binary
#endif
#endif // _zfstream_hxx
// $Log$
+// Revision 1.8 1999/02/26 22:08:10 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.7 1999/01/19 20:41:49 curt
// Portability updates contributed by Bernie Bright.
//
# include <config.h>
#endif
-#include "Include/compiler.h"
-#include <string>
-FG_USING_STD(string);
-
#if defined( WIN32 ) && !defined( __CYGWIN__) && !defined( __CYGWIN32__ )
# include <windows.h>
#endif
+#include <Include/compiler.h>
+#include STL_STRING
+FG_USING_STD(string);
+
+#ifdef FG_HAVE_NATIVE_SGI_COMPILERS
+FG_USING_NAMESPACE(std);
+#endif
+
+
// if someone know how to do this all with C++ streams let me know
// #include <stdio.h>
// $Log$
+// Revision 1.4 1999/02/26 22:08:13 curt
+// Added initial support for native SGI compilers.
+//
// Revision 1.3 1999/02/02 20:13:24 curt
// MSVC++ portability changes by Bernie Bright:
//