// Build the path name for this bucket
-string FGBucket::gen_base_path() {
+string FGBucket::gen_base_path() const {
// long int index;
int top_lon, top_lat, main_lon, main_lat;
char hem, pole;
// $Log$
+// Revision 1.4 1999/03/27 05:34:05 curt
+// Elimitated some const warnings from the compiler.
+//
// Revision 1.3 1999/02/26 22:07:54 curt
// Added initial support for native SGI compilers.
//
// Generate the unique scenery tile index for this bucket
long int gen_index();
- string gen_index_str();
+ string gen_index_str() const;
// Build the path name for this bucket
- string gen_base_path();
+ string gen_base_path() const;
// return the center lon of a tile
double get_center_lon() const;
return ((lon + 180) << 14) + ((lat + 90) << 6) + (y << 3) + x;
}
-inline string FGBucket::gen_index_str() {
+inline string FGBucket::gen_index_str() const {
char tmp[20];
- sprintf(tmp, "%ld", (((long)lon + 180) << 14) + ((lat + 90) << 6) + (y << 3) + x);
+ sprintf(tmp, "%ld",
+ (((long)lon + 180) << 14) + ((lat + 90) << 6) + (y << 3) + x);
return (string)tmp;
}
// $Log$
+// Revision 1.8 1999/03/27 05:34:06 curt
+// Elimitated some const warnings from the compiler.
+//
// Revision 1.7 1999/03/25 19:01:51 curt
// Jettisoned old bucketutils.[ch] for newbucket.[ch]xx
//