Keep (deprecated) SGTime::update method for a while

allowing dependent projects to adapt.
This commit is contained in:
ThorstenB
2012-11-19 23:42:51 +01:00
parent 0b26c69222
commit ff65b82671
3 changed files with 15 additions and 0 deletions

View File

@@ -184,6 +184,12 @@ inline int (isnan)(double r) { return !(r <= 0 || r >= 0); }
# define SG_UNIX
#endif
#if defined( __GNUC__ )
# define DEPRECATED __attribute__ ((deprecated))
#else
# define DEPRECATED
#endif
//
// No user modifiable definitions beyond here.
//

View File

@@ -182,6 +182,12 @@ static double sidereal_course( time_t cur_time, const struct tm *gmt, double lng
return lstTmp;
}
/** Deprecated method. To be removed after the next release... */
void SGTime::update( double lon_rad, double lat_rad, time_t ct, long int warp )
{
const SGGeod& location = SGGeod::fromRad(lon_rad, lat_rad);
update(location, ct, warp);
}
// Update the time related variables
void SGTime::update( const SGGeod& location, time_t ct, long int warp )

View File

@@ -148,6 +148,9 @@ public:
* allows us to advance or rewind "time" if we choose to. */
void update( const SGGeod& location, time_t ct, long int warp );
/** Deprecated method. To be removed after the next release... */
void update( double lon_rad, double lat_rad, time_t ct, long int warp ) DEPRECATED;
/**
* Given lon/lat, update timezone information and local_offset
* The updateLocal() method is intended to be called less