14 static std::string IID_KW =
"iid";
15 static std::string EDITION_KW =
"edition";
17 static std::string R0_KW =
"r0";
18 static std::string RX_KW =
"rx";
19 static std::string RY_KW =
"ry";
20 static std::string RZ_KW =
"rz";
22 static std::string RXX_KW =
"rxx";
23 static std::string RXY_KW =
"rxy";
24 static std::string RXZ_KW =
"rxz";
26 static std::string RYY_KW =
"ryy";
27 static std::string RYZ_KW =
"ryz";
28 static std::string RZZ_KW =
"rzz";
30 static std::string C0_KW =
"c0";
31 static std::string CX_KW =
"cx";
32 static std::string CY_KW =
"cy";
33 static std::string CZ_KW =
"cz";
35 static std::string CXX_KW =
"cxx";
36 static std::string CXY_KW =
"cxy";
37 static std::string CXZ_KW =
"cxz";
39 static std::string CYY_KW =
"cyy";
40 static std::string CYZ_KW =
"cyz";
41 static std::string CZZ_KW =
"czz";
43 static std::string RNIS_KW =
"rnis";
44 static std::string CNIS_KW =
"cnis";
45 static std::string TNIS_KW =
"tnis";
47 static std::string RSSIZ_KW =
"rssiz";
48 static std::string CSSIZ_KW =
"cssiz";
93 m_edition( obj.m_edition ),
121 m_rnis( obj.m_rnis ),
122 m_cnis( obj.m_cnis ),
123 m_tnis( obj.m_tnis ),
125 m_rssiz( obj.m_rssiz ),
126 m_cssiz( obj.m_cssiz )
174 const std::string& prefix )
const 176 std::string pfx = prefix + std::string(
"rsmpia.");
178 kwl.
add(pfx.c_str(), IID_KW.c_str(),
m_iid.c_str());
179 kwl.
add(pfx.c_str(), EDITION_KW.c_str(),
m_edition.c_str());
181 kwl.
add(pfx.c_str(), R0_KW.c_str(),
m_r0);
182 kwl.
add(pfx.c_str(), RX_KW.c_str(),
m_rx);
183 kwl.
add(pfx.c_str(), RY_KW.c_str(),
m_ry);
184 kwl.
add(pfx.c_str(), RZ_KW.c_str(),
m_rz);
186 kwl.
add(pfx.c_str(), RXX_KW.c_str(),
m_rxx);
187 kwl.
add(pfx.c_str(), RXY_KW.c_str(),
m_rxy);
188 kwl.
add(pfx.c_str(), RXZ_KW.c_str(),
m_rxz);
190 kwl.
add(pfx.c_str(), RYY_KW.c_str(),
m_ryy);
191 kwl.
add(pfx.c_str(), RYZ_KW.c_str(),
m_ryz);
192 kwl.
add(pfx.c_str(), RZZ_KW.c_str(),
m_rzz);
194 kwl.
add(pfx.c_str(), C0_KW.c_str(),
m_c0);
195 kwl.
add(pfx.c_str(), CX_KW.c_str(),
m_cx);
196 kwl.
add(pfx.c_str(), CY_KW.c_str(),
m_cy);
197 kwl.
add(pfx.c_str(), CZ_KW.c_str(),
m_cz);
199 kwl.
add(pfx.c_str(), CXX_KW.c_str(),
m_cxx);
200 kwl.
add(pfx.c_str(), CXY_KW.c_str(),
m_cxy);
201 kwl.
add(pfx.c_str(), CXZ_KW.c_str(),
m_cxz);
203 kwl.
add(pfx.c_str(), CYY_KW.c_str(),
m_cyy);
204 kwl.
add(pfx.c_str(), CYZ_KW.c_str(),
m_cyz);
205 kwl.
add(pfx.c_str(), CZZ_KW.c_str(),
m_czz);
207 kwl.
add(pfx.c_str(), RNIS_KW.c_str(),
m_rnis);
208 kwl.
add(pfx.c_str(), CNIS_KW.c_str(),
m_cnis);
209 kwl.
add(pfx.c_str(), TNIS_KW.c_str(),
m_tnis);
211 kwl.
add(pfx.c_str(), RSSIZ_KW.c_str(),
m_rssiz);
212 kwl.
add(pfx.c_str(), CSSIZ_KW.c_str(),
m_cssiz);
217 const std::string& prefix )
219 std::string pfx = prefix + std::string(
"rsmpia.");
228 value = kwl.
findKey( pfx, key );
239 value = kwl.
findKey( pfx, key );
250 value = kwl.
findKey( pfx, key );
261 value = kwl.
findKey( pfx, key );
272 value = kwl.
findKey( pfx, key );
283 value = kwl.
findKey( pfx, key );
294 value = kwl.
findKey( pfx, key );
305 value = kwl.
findKey( pfx, key );
316 value = kwl.
findKey( pfx, key );
327 value = kwl.
findKey( pfx, key );
338 value = kwl.
findKey( pfx, key );
349 value = kwl.
findKey( pfx, key );
360 value = kwl.
findKey( pfx, key );
371 value = kwl.
findKey( pfx, key );
382 value = kwl.
findKey( pfx, key );
393 value = kwl.
findKey( pfx, key );
404 value = kwl.
findKey( pfx, key );
415 value = kwl.
findKey( pfx, key );
426 value = kwl.
findKey( pfx, key );
437 value = kwl.
findKey( pfx, key );
448 value = kwl.
findKey( pfx, key );
459 value = kwl.
findKey( pfx, key );
470 value = kwl.
findKey( pfx, key );
481 value = kwl.
findKey( pfx, key );
492 value = kwl.
findKey( pfx, key );
503 value = kwl.
findKey( pfx, key );
514 value = kwl.
findKey( pfx, key );
532 if ( result ==
false )
536 <<
"ossimRsmpia::loadState WARNING:\n" 537 <<
"Error encountered parsing the following required keyword: " 538 <<
"<" << key <<
">. Check the keywordlist for proper syntax." ossimString getRx() const
Represents serializable keyword/value map.
const std::string & findKey(const std::string &key) const
Find methods that take std::string(s).
ossimString getEdition() const
void saveState(ossimKeywordlist &kwl, const std::string &prefix) const
saveState Saves state to keyword list.
const ossimRsmpia & operator=(const ossimRsmpia &rhs)
assignment operator
ossim_uint32 toUInt32() const
ossimString getRxy() const
ossimString getRz() const
ossimString getRy() const
ossimString getRssiz() const
ossimString getCz() const
bool loadState(const ossimKeywordlist &kwl, const std::string &prefix)
loadState Loads state from keyword list.
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
ossimString getCxy() const
ossimString getIid() const
ossimString getCzz() const
ossimString getRnis() const
ossimString getR0() const
ossimString getCnis() const
ossimString trim(const ossimString &valueToTrim=ossimString(" \\)) const
this will strip lead and trailing character passed in.
ossim_float64 toFloat64() const
ossimRsmpia()
default constructor
ossimString getRxz() const
ossimString getCxz() const
ossimString getRxx() const
ossimString getCssiz() const
ossimString getRyz() const
ossimString getCx() const
ossimString getCxx() const
ossimString getRzz() const
ossimString getTnis() const
ossimString getCyz() const
bool initialize(const ossimNitfRsmpiaTag *rsmpiaTag)
initialize Initializes from nitf rsmpia tag.
ossimString getCyy() const
ossimString getRyy() const
ossimString getC0() const
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
ossimString getCy() const
const std::string & string() const