28 static ossimTrace traceDebug(
"ossimErsSarLeader:debug");
50 std::map<int, ErsSarRecord*>::const_iterator it = data.
theRecords.begin();
53 (*it).second->Write(os);
81 data.
theRecords[header.get_rec_seq()] = record;
85 char* buff =
new char[header.get_length()-12];
86 is.read(buff, header.get_length() - 12);
97 std::map<int, ErsSarRecord*>::const_iterator it = rhs.
theRecords.begin();
100 theRecords[(*it).first] = (*it).second->Clone();
108 std::map<int, ErsSarRecord*>::const_iterator it = rhs.
theRecords.begin();
111 theRecords[(*it).first] = (*it).second->Clone();
120 std::map<int, ErsSarRecord*>::const_iterator it =
theRecords.begin();
130 const char* prefix)
const 133 static const char MODULE[] =
"ErsSarLeader::saveState";
149 if (leaderfiledesc != NULL)
162 if ((datasetSummary != NULL) && (result ==
true))
164 kwl.
add(prefix,
"inp_sctim", (datasetSummary->
get_inp_sctim()).c_str(),
true);
167 kwl.
add(prefix,
"sc_lin", datasetSummary->
get_sc_lin(),
true);
168 kwl.
add(prefix,
"sc_pix", datasetSummary->
get_sc_pix(),
true);
170 kwl.
add(prefix,
"fr", datasetSummary->
get_fr(),
true);
171 kwl.
add(prefix,
"fa", datasetSummary->
get_fa(),
true);
188 if ((mapprojectiondata != NULL) && (result ==
true))
191 kwl.
add(prefix,
"num_lines", (
double) mapprojectiondata->
get_num_lines(),
true);
208 if ((platformposition != NULL) && (result ==
true))
210 kwl.
add(prefix,
"neph", platformposition->
get_ndata(),
true);
211 kwl.
add(prefix,
"eph_year", platformposition->
get_year(),
true);
212 kwl.
add(prefix,
"eph_month", platformposition->
get_month(),
true);
213 kwl.
add(prefix,
"eph_day", platformposition->
get_day(),
true);
214 kwl.
add(prefix,
"eph_gmt_day", platformposition->
get_gmt_day(),
true);
215 kwl.
add(prefix,
"eph_sec", platformposition->
get_gmt_sec(),
true);
216 kwl.
add(prefix,
"eph_hr_angle", platformposition->
get_hr_angle(),
true);
219 for (
int i = 0; i < platformposition->
get_ndata(); i++)
221 sprintf(name,
"eph%i_posX", i);
222 kwl.
add(prefix, name, (platformposition->
get_pos_vect()[i]).get_pos()[0],
true);
223 sprintf(name,
"eph%i_posY", i);
224 kwl.
add(prefix, name, (platformposition->
get_pos_vect()[i]).get_pos()[1],
true);
225 sprintf(name,
"eph%i_posZ", i);
226 kwl.
add(prefix, name, (platformposition->
get_pos_vect()[i]).get_pos()[2],
true);
228 sprintf(name,
"eph%i_velX", i);
229 kwl.
add(prefix, name, (platformposition->
get_pos_vect()[i]).get_vel()[0],
true);
230 sprintf(name,
"eph%i_velY", i);
231 kwl.
add(prefix, name, (platformposition->
get_pos_vect()[i]).get_vel()[1],
true);
232 sprintf(name,
"eph%i_velZ", i);
233 kwl.
add(prefix, name, (platformposition->
get_pos_vect()[i]).get_vel()[2],
true);
244 if ((facilitydata != NULL) && (result ==
true))
260 << MODULE <<
" exit status = " << (result ?
"true" :
"false\n")
Represents serializable keyword/value map.
static const char * TYPE_KW
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
std::ostream & operator<<(std::ostream &os, const AlosPalsarData &data)
std::istream & operator>>(std::istream &is, AlosPalsarData &data)
std::basic_istream< char > istream
Base class for char input streams.
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
std::basic_ostream< char > ostream
Base class for char output streams.