22 static const char PREFIX[] =
"ephemeris.";
23 static const char DATE_JULIAN_KW[] =
"date.julian";
24 static const char DATE_SECOND_KW[] =
"date.second";
25 static const char DATE_DECIMAL_KW[] =
"date.decimal";
26 static const char POSITION_KW[] =
"position";
27 static const char VELOCITY_KW[] =
"velocity";
94 kwl.
add(pfx.c_str(), POSITION_KW, pos.
toString(15).c_str());
95 kwl.
add(pfx.c_str(), VELOCITY_KW, vit.
toString(15).c_str());
102 static const char MODULE[] =
"Ephemeris::loadState";
113 const char* lookup = 0;
117 lookup = kwl.
find(pfx.c_str(), DATE_JULIAN_KW);
128 << MODULE <<
" Keyword not found: " << DATE_JULIAN_KW <<
"\n";
133 lookup = kwl.
find(pfx.c_str(), DATE_SECOND_KW);
143 << MODULE <<
" Keyword not found: " << DATE_SECOND_KW <<
"\n";
147 lookup = kwl.
find(pfx.c_str(), DATE_DECIMAL_KW);
157 << MODULE <<
" Keyword not found: " << DATE_DECIMAL_KW <<
"\n";
161 lookup = kwl.
find(pfx.c_str(), POSITION_KW);
164 std::string ps = lookup;
176 << MODULE <<
" Keyword not found: " << POSITION_KW <<
"\n";
180 lookup = kwl.
find(pfx.c_str(), VELOCITY_KW);
183 std::string ps = lookup;
195 << MODULE <<
" Keyword not found: " << VELOCITY_KW <<
"\n";
void toPoint(const std::string &s)
Initializes this point from string.
bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save object state to a keyword list.
double get_julianDate() const
Represents serializable keyword/value map.
const char * find(const char *key) const
void set_day0hTU(JulianDate day)
std::string toString(ossim_uint32 precision=15) const
To string method.
void set_second(double second)
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
This class represents a date in the julian referential.
This class represents an ephemeris.
bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of the object from a keyword list.
JulianDate get_day0hTU() const
void set_decimal(double decimal)
double get_second() const
double get_decimal() const
virtual ~Ephemeris()
Destructor.
This class represents a date.
Ephemeris & operator=(const Ephemeris &rhs)
Affectation operator.
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)