OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Types | Public Member Functions | Protected Attributes | List of all members
ossimNitfUse00aTag Class Reference

#include <ossimNitfUse00aTag.h>

Inheritance diagram for ossimNitfUse00aTag:
ossimNitfRegisteredTag ossimObject ossimPropertyInterface ossimReferenced

Public Types

enum  {
  ANGLE_TO_NORTH_SIZE = 3, MEAN_GSD_SIZE = 5, FIELD3_SIZE = 1, DYNAMIC_RANGE_SIZE = 5,
  FIELD5_SIZE = 3, FIELD6_SIZE = 1, FIELD7_SIZE = 3, OBL_ANG_SIZE = 5,
  ROLL_ANG_SIZE = 6, FIELD10_SIZE = 12, FIELD11_SIZE = 15, FIELD12_SIZE = 4,
  FIELD13_SIZE = 1, FIELD14_SIZE = 3, FIELD15_SIZE = 1, FIELD16_SIZE = 1,
  N_REF_SIZE = 2, REV_NUM_SIZE = 5, N_SEG_SIZE = 3, MAX_LP_SEG_SIZE = 6,
  FIELD20_SIZE = 6, FIELD21_SIZE = 6, SUN_EL_SIZE = 5, SUN_AZ_SIZE = 5
}
 

Public Member Functions

 ossimNitfUse00aTag ()
 
virtual ~ossimNitfUse00aTag ()
 
virtual void parseStream (std::istream &in)
 
virtual void writeStream (std::ostream &out)
 
virtual void clearFields ()
 
void setAngleToNorth (const ossimString &angleToNorth)
 
ossimString getAngleToNorth () const
 
void setMeanGsd (const ossimString &meanGsd)
 
ossimString getMeanGsd () const
 
ossim_float64 getMeanGsdInMeters () const
 
void setField3 (const ossimString &field3)
 
ossimString getField3 () const
 
void setDynamicRange (const ossimString &dynamicRange)
 
ossimString getDynamicRange () const
 
void setField5 (const ossimString &field5)
 
ossimString getField5 () const
 
void setField6 (const ossimString &field6)
 
ossimString getField6 () const
 
void setField7 (const ossimString &field7)
 
ossimString getField7 () const
 
void setOblAng (const ossimString &oblAng)
 
ossimString getOblAng () const
 
void setRollAng (const ossimString &rollAng)
 
ossimString getRollAng () const
 
void setField10 (const ossimString &field10)
 
ossimString getField10 () const
 
void setField11 (const ossimString &field11)
 
ossimString getField11 () const
 
void setField12 (const ossimString &field12)
 
ossimString getField12 () const
 
void setField13 (const ossimString &field13)
 
ossimString getField13 () const
 
void setField14 (const ossimString &field14)
 
ossimString getField14 () const
 
void setField15 (const ossimString &field15)
 
ossimString getField15 () const
 
void setField16 (const ossimString &field16)
 
ossimString getField16 () const
 
void setNRef (const ossimString &nRef)
 
ossimString getNRef () const
 
void setRevNum (const ossimString &revNum)
 
ossimString getRevNum () const
 
void setNSeg (const ossimString &nSeg)
 
ossimString getNSeg () const
 
void setMaxLpSeg (const ossimString &maxLpSeg)
 
ossimString getMaxLpSeg () const
 
void setField20 (const ossimString &field20)
 
ossimString getField20 () const
 
void setField21 (const ossimString &field21)
 
ossimString getField21 () const
 
void setSunEl (const ossimString &sunEl)
 
ossimString getSunEl () const
 
void setSunAz (const ossimString &sunAz)
 
ossimString getSunAz () const
 
virtual std::ostream & print (std::ostream &out, const std::string &prefix=std::string()) const
 Print method that outputs a key/value type format adding prefix to keys. More...
 
virtual void setProperty (ossimRefPtr< ossimProperty > property)
 
virtual ossimRefPtr< ossimPropertygetProperty (const ossimString &name) const
 
virtual void getPropertyNames (std::vector< ossimString > &propertyNames) const
 
- Public Member Functions inherited from ossimNitfRegisteredTag
 ossimNitfRegisteredTag ()
 default constructor More...
 
 ossimNitfRegisteredTag (const std::string &tagName, ossim_uint32 tagLength)
 Constructor that takes name and size. More...
 
virtual ~ossimNitfRegisteredTag ()
 destructor More...
 
virtual std::string getRegisterTagName () const
 This will return the name of the registered tag for this user defined header. More...
 
virtual const std::string & getTagName () const
 This will return the name of the registered tag for this user defined header. More...
 
virtual void setTagName (const std::string &tagName)
 
virtual ossim_uint32 getSizeInBytes () const
 Returns the length in bytes of the tag from the CEL or REL field. More...
 
virtual ossim_uint32 getTagLength () const
 Returns the length in bytes of the tag from the CEL or REL field. More...
 
virtual void setTagLength (ossim_uint32 length)
 Set the tag length. More...
 
virtual void parseStream (ossim::istream &in)=0
 This will allow the user defined data to parse the stream. More...
 
virtual void writeStream (ossim::ostream &out)=0
 
virtual void getMetadata (ossimKeywordlist &kwl, const char *prefix=0) const
 Default interface to populate keyword list with metadata. More...
 
virtual bool saveState (ossimKeywordlist &kwl, const ossimString &prefix) const
 
- Public Member Functions inherited from ossimObject
 ossimObject ()
 
virtual ~ossimObject ()
 
virtual ossimObjectdup () const
 
virtual ossimString getShortName () const
 
virtual ossimString getLongName () const
 
virtual ossimString getDescription () const
 
virtual ossimString getClassName () const
 
virtual RTTItypeid getType () const
 
virtual bool canCastTo (ossimObject *obj) const
 
virtual bool canCastTo (const RTTItypeid &id) const
 
virtual bool canCastTo (const ossimString &parentClassName) const
 
virtual bool saveState (ossimKeywordlist &kwl, const char *prefix=0) const
 
virtual bool loadState (const ossimKeywordlist &kwl, const char *prefix=0)
 
virtual std::ostream & print (std::ostream &out) const
 Generic print method. More...
 
virtual bool isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const
 
virtual void accept (ossimVisitor &visitor)
 
- Public Member Functions inherited from ossimReferenced
 ossimReferenced ()
 
 ossimReferenced (const ossimReferenced &)
 
ossimReferencedoperator= (const ossimReferenced &)
 
void ref () const
 increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
void unref () const
 decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
void unref_nodelete () const
 decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
int referenceCount () const
 
- Public Member Functions inherited from ossimPropertyInterface
 ossimPropertyInterface ()
 
virtual ~ossimPropertyInterface ()
 
virtual void setProperty (const ossimString &name, const ossimString &value)
 
virtual ossimString getPropertyValueAsString (const ossimString &name) const
 
void getPropertyList (std::vector< ossimRefPtr< ossimProperty > > &propertyList) const
 
void setProperties (std::vector< ossimRefPtr< ossimProperty > > &propertyList)
 

Protected Attributes

char theAngleToNorth [ANGLE_TO_NORTH_SIZE+1]
 FIELD: ANGLETONORTH. More...
 
char theMeanGsd [MEAN_GSD_SIZE+1]
 FIELD: MEANGSD. More...
 
char theField3 [FIELD3_SIZE+1]
 FIELD: FIELD3. More...
 
char theDynamicRange [DYNAMIC_RANGE_SIZE+1]
 FIELD: DYNAMICRANGE. More...
 
char theField5 [FIELD5_SIZE+1]
 FIELD: FIELD5. More...
 
char theField6 [FIELD6_SIZE+1]
 FIELD: FIELD6. More...
 
char theField7 [FIELD7_SIZE+1]
 FIELD: FIELD7. More...
 
char theOblAng [OBL_ANG_SIZE+1]
 FIELD: OBLANG. More...
 
char theRollAng [ROLL_ANG_SIZE+1]
 FIELD: ROLLANG. More...
 
char theField10 [FIELD10_SIZE+1]
 FIELD: FIELD10. More...
 
char theField11 [FIELD11_SIZE+1]
 FIELD: FIELD11. More...
 
char theField12 [FIELD12_SIZE+1]
 FIELD: FIELD12. More...
 
char theField13 [FIELD13_SIZE+1]
 FIELD: FIELD13. More...
 
char theField14 [FIELD14_SIZE+1]
 FIELD: FIELD14. More...
 
char theField15 [FIELD15_SIZE+1]
 FIELD: FIELD15. More...
 
char theField16 [FIELD16_SIZE+1]
 FIELD: FIELD16. More...
 
char theNRef [N_REF_SIZE+1]
 FIELD: NREF. More...
 
char theRevNum [REV_NUM_SIZE+1]
 FIELD: REVNUM. More...
 
char theNSeg [N_SEG_SIZE+1]
 FIELD: NSEG. More...
 
char theMaxLpSeg [MAX_LP_SEG_SIZE+1]
 FIELD: MAXLPSEG. More...
 
char theField20 [FIELD20_SIZE+1]
 FIELD: FIELD20. More...
 
char theField21 [FIELD21_SIZE+1]
 FIELD: FIELD21. More...
 
char theSunEl [SUN_EL_SIZE+1]
 FIELD: SUNEL. More...
 
char theSunAz [SUN_AZ_SIZE+1]
 FIELD: SUNAZ. More...
 
- Protected Attributes inherited from ossimNitfRegisteredTag
std::string m_tagName
 
ossim_uint32 m_tagLength
 

Additional Inherited Members

- Protected Member Functions inherited from ossimReferenced
virtual ~ossimReferenced ()
 

Detailed Description

Definition at line 19 of file ossimNitfUse00aTag.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ANGLE_TO_NORTH_SIZE 
MEAN_GSD_SIZE 
FIELD3_SIZE 
DYNAMIC_RANGE_SIZE 
FIELD5_SIZE 
FIELD6_SIZE 
FIELD7_SIZE 
OBL_ANG_SIZE 
ROLL_ANG_SIZE 
FIELD10_SIZE 
FIELD11_SIZE 
FIELD12_SIZE 
FIELD13_SIZE 
FIELD14_SIZE 
FIELD15_SIZE 
FIELD16_SIZE 
N_REF_SIZE 
REV_NUM_SIZE 
N_SEG_SIZE 
MAX_LP_SEG_SIZE 
FIELD20_SIZE 
FIELD21_SIZE 
SUN_EL_SIZE 
SUN_AZ_SIZE 

Definition at line 23 of file ossimNitfUse00aTag.h.

24  {
26  MEAN_GSD_SIZE = 5,
27  FIELD3_SIZE = 1,
29  FIELD5_SIZE = 3,
30  FIELD6_SIZE = 1,
31  FIELD7_SIZE = 3,
32  OBL_ANG_SIZE = 5,
33  ROLL_ANG_SIZE = 6,
34  FIELD10_SIZE = 12,
35  FIELD11_SIZE = 15,
36  FIELD12_SIZE = 4,
37  FIELD13_SIZE = 1,
38  FIELD14_SIZE = 3,
39  FIELD15_SIZE = 1,
40  FIELD16_SIZE = 1,
41  N_REF_SIZE = 2,
42  REV_NUM_SIZE = 5,
43  N_SEG_SIZE = 3,
44  MAX_LP_SEG_SIZE = 6,
45  FIELD20_SIZE = 6,
46  FIELD21_SIZE = 6,
47  SUN_EL_SIZE = 5,
48  SUN_AZ_SIZE = 5
49  // -----
50  // 107 bytes
51  };

Constructor & Destructor Documentation

◆ ossimNitfUse00aTag()

ossimNitfUse00aTag::ossimNitfUse00aTag ( )

Definition at line 36 of file ossimNitfUse00aTag.cpp.

References clearFields().

37  : ossimNitfRegisteredTag(std::string("USE00A"), 107)
38 {
39  clearFields();
40 }
ossimNitfRegisteredTag()
default constructor
virtual void clearFields()

◆ ~ossimNitfUse00aTag()

ossimNitfUse00aTag::~ossimNitfUse00aTag ( )
virtual

Definition at line 42 of file ossimNitfUse00aTag.cpp.

43 {
44 }

Member Function Documentation

◆ clearFields()

void ossimNitfUse00aTag::clearFields ( )
virtual

Definition at line 104 of file ossimNitfUse00aTag.cpp.

References ANGLE_TO_NORTH_SIZE, DYNAMIC_RANGE_SIZE, FIELD10_SIZE, FIELD11_SIZE, FIELD12_SIZE, FIELD13_SIZE, FIELD14_SIZE, FIELD15_SIZE, FIELD16_SIZE, FIELD20_SIZE, FIELD21_SIZE, FIELD3_SIZE, FIELD5_SIZE, FIELD6_SIZE, FIELD7_SIZE, MAX_LP_SEG_SIZE, MEAN_GSD_SIZE, N_REF_SIZE, N_SEG_SIZE, OBL_ANG_SIZE, REV_NUM_SIZE, ROLL_ANG_SIZE, SUN_AZ_SIZE, SUN_EL_SIZE, theAngleToNorth, theDynamicRange, theField10, theField11, theField12, theField13, theField14, theField15, theField16, theField20, theField21, theField3, theField5, theField6, theField7, theMaxLpSeg, theMeanGsd, theNRef, theNSeg, theOblAng, theRevNum, theRollAng, theSunAz, and theSunEl.

Referenced by ossimNitfUse00aTag(), and parseStream().

105 {
106  memset(theAngleToNorth, ' ', ANGLE_TO_NORTH_SIZE);
107  memset(theMeanGsd, ' ', MEAN_GSD_SIZE);
108  memset(theField3, ' ', FIELD3_SIZE);
109  memset(theDynamicRange, ' ', DYNAMIC_RANGE_SIZE);
110  memset(theField5, ' ', FIELD5_SIZE);
111  memset(theField6, ' ', FIELD6_SIZE);
112  memset(theField7, ' ', FIELD7_SIZE);
113  memset(theOblAng, ' ', OBL_ANG_SIZE);
114  memset(theRollAng, ' ', ROLL_ANG_SIZE);
115  memset(theField10, ' ', FIELD10_SIZE);
116  memset(theField11, ' ', FIELD11_SIZE);
117  memset(theField12, ' ', FIELD12_SIZE);
118  memset(theField13, ' ', FIELD13_SIZE);
119  memset(theField14, ' ', FIELD14_SIZE);
120  memset(theField15, ' ', FIELD15_SIZE);
121  memset(theField16, ' ', FIELD16_SIZE);
122  memset(theNRef, ' ', N_REF_SIZE);
123  memset(theRevNum, ' ', REV_NUM_SIZE);
124  memset(theNSeg, ' ', N_SEG_SIZE);
125  memset(theMaxLpSeg, ' ', MAX_LP_SEG_SIZE);
126  memset(theField20, ' ', FIELD20_SIZE);
127  memset(theField21, ' ', FIELD21_SIZE);
128  memset(theSunEl, ' ', SUN_EL_SIZE);
129  memset(theSunAz, ' ', SUN_AZ_SIZE);
130 
132  theMeanGsd[MEAN_GSD_SIZE] = '\0';
133  theField3[FIELD3_SIZE] = '\0';
135  theField5[FIELD5_SIZE] = '\0';
136  theField6[FIELD6_SIZE] = '\0';
137  theField7[FIELD7_SIZE] = '\0';
138  theOblAng[OBL_ANG_SIZE] = '\0';
139  theRollAng[ROLL_ANG_SIZE] = '\0';
140  theField10[FIELD10_SIZE] = '\0';
141  theField11[FIELD11_SIZE] = '\0';
142  theField12[FIELD12_SIZE] = '\0';
143  theField13[FIELD13_SIZE] = '\0';
144  theField14[FIELD14_SIZE] = '\0';
145  theField15[FIELD15_SIZE] = '\0';
146  theField16[FIELD16_SIZE] = '\0';
147  theNRef[N_REF_SIZE] = '\0';
148  theRevNum[REV_NUM_SIZE] = '\0';
149  theNSeg[N_SEG_SIZE] = '\0';
151  theField20[FIELD20_SIZE] = '\0';
152  theField21[FIELD21_SIZE] = '\0';
153  theSunEl[SUN_EL_SIZE] = '\0';
154  theSunAz[SUN_AZ_SIZE] = '\0';
155 }
char theNSeg[N_SEG_SIZE+1]
FIELD: NSEG.
char theMaxLpSeg[MAX_LP_SEG_SIZE+1]
FIELD: MAXLPSEG.
char theField15[FIELD15_SIZE+1]
FIELD: FIELD15.
char theRevNum[REV_NUM_SIZE+1]
FIELD: REVNUM.
char theField14[FIELD14_SIZE+1]
FIELD: FIELD14.
char theField3[FIELD3_SIZE+1]
FIELD: FIELD3.
char theNRef[N_REF_SIZE+1]
FIELD: NREF.
char theField12[FIELD12_SIZE+1]
FIELD: FIELD12.
char theField11[FIELD11_SIZE+1]
FIELD: FIELD11.
char theMeanGsd[MEAN_GSD_SIZE+1]
FIELD: MEANGSD.
char theField6[FIELD6_SIZE+1]
FIELD: FIELD6.
char theField13[FIELD13_SIZE+1]
FIELD: FIELD13.
char theField5[FIELD5_SIZE+1]
FIELD: FIELD5.
char theField7[FIELD7_SIZE+1]
FIELD: FIELD7.
char theField21[FIELD21_SIZE+1]
FIELD: FIELD21.
char theRollAng[ROLL_ANG_SIZE+1]
FIELD: ROLLANG.
char theField10[FIELD10_SIZE+1]
FIELD: FIELD10.
char theAngleToNorth[ANGLE_TO_NORTH_SIZE+1]
FIELD: ANGLETONORTH.
char theSunEl[SUN_EL_SIZE+1]
FIELD: SUNEL.
char theOblAng[OBL_ANG_SIZE+1]
FIELD: OBLANG.
char theDynamicRange[DYNAMIC_RANGE_SIZE+1]
FIELD: DYNAMICRANGE.
char theField20[FIELD20_SIZE+1]
FIELD: FIELD20.
char theSunAz[SUN_AZ_SIZE+1]
FIELD: SUNAZ.
char theField16[FIELD16_SIZE+1]
FIELD: FIELD16.

◆ getAngleToNorth()

ossimString ossimNitfUse00aTag::getAngleToNorth ( ) const

Definition at line 157 of file ossimNitfUse00aTag.cpp.

References theAngleToNorth.

158 {
159  return theAngleToNorth;
160 }
char theAngleToNorth[ANGLE_TO_NORTH_SIZE+1]
FIELD: ANGLETONORTH.

◆ getDynamicRange()

ossimString ossimNitfUse00aTag::getDynamicRange ( ) const

Definition at line 207 of file ossimNitfUse00aTag.cpp.

References theDynamicRange.

208 {
209  return theDynamicRange;
210 }
char theDynamicRange[DYNAMIC_RANGE_SIZE+1]
FIELD: DYNAMICRANGE.

◆ getField10()

ossimString ossimNitfUse00aTag::getField10 ( ) const

Definition at line 273 of file ossimNitfUse00aTag.cpp.

References theField10.

274 {
275  return theField10;
276 }
char theField10[FIELD10_SIZE+1]
FIELD: FIELD10.

◆ getField11()

ossimString ossimNitfUse00aTag::getField11 ( ) const

Definition at line 284 of file ossimNitfUse00aTag.cpp.

References theField11.

285 {
286  return theField11;
287 }
char theField11[FIELD11_SIZE+1]
FIELD: FIELD11.

◆ getField12()

ossimString ossimNitfUse00aTag::getField12 ( ) const

Definition at line 295 of file ossimNitfUse00aTag.cpp.

References theField12.

296 {
297  return theField12;
298 }
char theField12[FIELD12_SIZE+1]
FIELD: FIELD12.

◆ getField13()

ossimString ossimNitfUse00aTag::getField13 ( ) const

Definition at line 306 of file ossimNitfUse00aTag.cpp.

References theField13.

307 {
308  return theField13;
309 }
char theField13[FIELD13_SIZE+1]
FIELD: FIELD13.

◆ getField14()

ossimString ossimNitfUse00aTag::getField14 ( ) const

Definition at line 317 of file ossimNitfUse00aTag.cpp.

References theField14.

318 {
319  return theField14;
320 }
char theField14[FIELD14_SIZE+1]
FIELD: FIELD14.

◆ getField15()

ossimString ossimNitfUse00aTag::getField15 ( ) const

Definition at line 328 of file ossimNitfUse00aTag.cpp.

References theField15.

329 {
330  return theField15;
331 }
char theField15[FIELD15_SIZE+1]
FIELD: FIELD15.

◆ getField16()

ossimString ossimNitfUse00aTag::getField16 ( ) const

Definition at line 339 of file ossimNitfUse00aTag.cpp.

References theField16.

340 {
341  return theField16;
342 }
char theField16[FIELD16_SIZE+1]
FIELD: FIELD16.

◆ getField20()

ossimString ossimNitfUse00aTag::getField20 ( ) const

Definition at line 394 of file ossimNitfUse00aTag.cpp.

References theField20.

395 {
396  return theField20;
397 }
char theField20[FIELD20_SIZE+1]
FIELD: FIELD20.

◆ getField21()

ossimString ossimNitfUse00aTag::getField21 ( ) const

Definition at line 405 of file ossimNitfUse00aTag.cpp.

References theField21.

406 {
407  return theField21;
408 }
char theField21[FIELD21_SIZE+1]
FIELD: FIELD21.

◆ getField3()

ossimString ossimNitfUse00aTag::getField3 ( ) const

Definition at line 196 of file ossimNitfUse00aTag.cpp.

References theField3.

197 {
198  return theField3;
199 }
char theField3[FIELD3_SIZE+1]
FIELD: FIELD3.

◆ getField5()

ossimString ossimNitfUse00aTag::getField5 ( ) const

Definition at line 218 of file ossimNitfUse00aTag.cpp.

References theField5.

219 {
220  return theField5;
221 }
char theField5[FIELD5_SIZE+1]
FIELD: FIELD5.

◆ getField6()

ossimString ossimNitfUse00aTag::getField6 ( ) const

Definition at line 229 of file ossimNitfUse00aTag.cpp.

References theField6.

230 {
231  return theField6;
232 }
char theField6[FIELD6_SIZE+1]
FIELD: FIELD6.

◆ getField7()

ossimString ossimNitfUse00aTag::getField7 ( ) const

Definition at line 240 of file ossimNitfUse00aTag.cpp.

References theField7.

241 {
242  return theField7;
243 }
char theField7[FIELD7_SIZE+1]
FIELD: FIELD7.

◆ getMaxLpSeg()

ossimString ossimNitfUse00aTag::getMaxLpSeg ( ) const

Definition at line 383 of file ossimNitfUse00aTag.cpp.

References theMaxLpSeg.

384 {
385  return theMaxLpSeg;
386 }
char theMaxLpSeg[MAX_LP_SEG_SIZE+1]
FIELD: MAXLPSEG.

◆ getMeanGsd()

ossimString ossimNitfUse00aTag::getMeanGsd ( ) const

Definition at line 168 of file ossimNitfUse00aTag.cpp.

References theMeanGsd.

169 {
170  return theMeanGsd;
171 }
char theMeanGsd[MEAN_GSD_SIZE+1]
FIELD: MEANGSD.

◆ getMeanGsdInMeters()

ossim_float64 ossimNitfUse00aTag::getMeanGsdInMeters ( ) const
Returns
MEANGSD field as a double converted to meters.
Note
Conversion used: gsd_in_meters = gsd / 12.0 * MTRS_PER_FT

Definition at line 173 of file ossimNitfUse00aTag.cpp.

References ossim::isnan(), MTRS_PER_FT, ossimString::size(), theMeanGsd, and ossimString::toFloat64().

174 {
175  ossim_float64 gsd = 0.0;
176 
178  if (s.size())
179  {
180  ossim_float64 d = s.toFloat64();
181  if ( (d != 0.0) && (ossim::isnan(d) == false) )
182  {
183  gsd = d / 12.0 * MTRS_PER_FT;
184  }
185  }
186 
187  return gsd;
188 }
char theMeanGsd[MEAN_GSD_SIZE+1]
FIELD: MEANGSD.
double ossim_float64
std::string::size_type size() const
Definition: ossimString.h:405
ossim_float64 toFloat64() const
#define MTRS_PER_FT
bool isnan(const float &v)
isnan Test for floating point Not A Number (NAN) value.
Definition: ossimCommon.h:91

◆ getNRef()

ossimString ossimNitfUse00aTag::getNRef ( ) const

Definition at line 350 of file ossimNitfUse00aTag.cpp.

References theNRef.

351 {
352  return theNRef;
353 }
char theNRef[N_REF_SIZE+1]
FIELD: NREF.

◆ getNSeg()

ossimString ossimNitfUse00aTag::getNSeg ( ) const

Definition at line 372 of file ossimNitfUse00aTag.cpp.

References theNSeg.

373 {
374  return theNSeg;
375 }
char theNSeg[N_SEG_SIZE+1]
FIELD: NSEG.

◆ getOblAng()

ossimString ossimNitfUse00aTag::getOblAng ( ) const

Definition at line 251 of file ossimNitfUse00aTag.cpp.

References theOblAng.

252 {
253  return theOblAng;
254 }
char theOblAng[OBL_ANG_SIZE+1]
FIELD: OBLANG.

◆ getProperty()

ossimRefPtr< ossimProperty > ossimNitfUse00aTag::getProperty ( const ossimString name) const
virtual

Reimplemented from ossimNitfRegisteredTag.

Definition at line 468 of file ossimNitfUse00aTag.cpp.

469 {
470  ossimProperty* result = 0;
471 
472  if(name == ANGLETONORTH_KW)
473  {
474  result = new ossimStringProperty(name, theAngleToNorth);
475  }
476  else if(name == MEANGSD_KW)
477  {
478  result = new ossimStringProperty(name, theMeanGsd);
479  }
480  else if(name == DYNAMICRANGE_KW)
481  {
482  result = new ossimStringProperty(name, theDynamicRange);
483  }
484  else if(name == OBLANG_KW)
485  {
486  result = new ossimStringProperty(name, theOblAng);
487  }
488  else if(name == ROLLANG_KW)
489  {
490  result = new ossimStringProperty(name, theRollAng);
491  }
492  else if(name == NREF_KW)
493  {
494  result = new ossimStringProperty(name, theNRef);
495  }
496  else if(name == REVNUM_KW)
497  {
498  result = new ossimStringProperty(name, theRevNum);
499  }
500  else if(name == NSEG_KW)
501  {
502  result = new ossimStringProperty(name, theNSeg);
503  }
504  else if(name == MAXLPSEG_KW)
505  {
506  result = new ossimStringProperty(name, theMaxLpSeg);
507  }
508  else if(name == SUNEL_KW)
509  {
510  result = new ossimStringProperty(name, theSunEl);
511  }
512  else if(name == SUNAZ_KW)
513  {
514  result = new ossimStringProperty(name, theSunAz);
515  }
516  else
517  {
519  }
520 
521  return result;
522 }
char theNSeg[N_SEG_SIZE+1]
FIELD: NSEG.
char theMaxLpSeg[MAX_LP_SEG_SIZE+1]
FIELD: MAXLPSEG.
char theRevNum[REV_NUM_SIZE+1]
FIELD: REVNUM.
char theNRef[N_REF_SIZE+1]
FIELD: NREF.
char theMeanGsd[MEAN_GSD_SIZE+1]
FIELD: MEANGSD.
char theRollAng[ROLL_ANG_SIZE+1]
FIELD: ROLLANG.
char theAngleToNorth[ANGLE_TO_NORTH_SIZE+1]
FIELD: ANGLETONORTH.
char theSunEl[SUN_EL_SIZE+1]
FIELD: SUNEL.
char theOblAng[OBL_ANG_SIZE+1]
FIELD: OBLANG.
char theDynamicRange[DYNAMIC_RANGE_SIZE+1]
FIELD: DYNAMICRANGE.
virtual ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
char theSunAz[SUN_AZ_SIZE+1]
FIELD: SUNAZ.

◆ getPropertyNames()

void ossimNitfUse00aTag::getPropertyNames ( std::vector< ossimString > &  propertyNames) const
virtual

Reimplemented from ossimNitfRegisteredTag.

Definition at line 524 of file ossimNitfUse00aTag.cpp.

References ossimNitfRegisteredTag::getPropertyNames().

525 {
527 
528  propertyNames.push_back(ANGLETONORTH_KW);
529  propertyNames.push_back(MEANGSD_KW);
530  propertyNames.push_back(DYNAMICRANGE_KW);
531  propertyNames.push_back(OBLANG_KW);
532  propertyNames.push_back(ROLLANG_KW);
533  propertyNames.push_back(NREF_KW);
534  propertyNames.push_back(REVNUM_KW);
535  propertyNames.push_back(NSEG_KW);
536  propertyNames.push_back(MAXLPSEG_KW);
537  propertyNames.push_back(SUNEL_KW);
538  propertyNames.push_back(SUNAZ_KW);
539 }
virtual void getPropertyNames(std::vector< ossimString > &propertyNames) const

◆ getRevNum()

ossimString ossimNitfUse00aTag::getRevNum ( ) const

Definition at line 361 of file ossimNitfUse00aTag.cpp.

References theRevNum.

362 {
363  return theRevNum;
364 }
char theRevNum[REV_NUM_SIZE+1]
FIELD: REVNUM.

◆ getRollAng()

ossimString ossimNitfUse00aTag::getRollAng ( ) const

Definition at line 262 of file ossimNitfUse00aTag.cpp.

References theRollAng.

263 {
264  return theRollAng;
265 }
char theRollAng[ROLL_ANG_SIZE+1]
FIELD: ROLLANG.

◆ getSunAz()

ossimString ossimNitfUse00aTag::getSunAz ( ) const

Definition at line 427 of file ossimNitfUse00aTag.cpp.

References theSunAz.

428 {
429  return theSunAz;
430 }
char theSunAz[SUN_AZ_SIZE+1]
FIELD: SUNAZ.

◆ getSunEl()

ossimString ossimNitfUse00aTag::getSunEl ( ) const

Definition at line 416 of file ossimNitfUse00aTag.cpp.

References theSunEl.

417 {
418  return theSunEl;
419 }
char theSunEl[SUN_EL_SIZE+1]
FIELD: SUNEL.

◆ parseStream()

void ossimNitfUse00aTag::parseStream ( std::istream &  in)
virtual

Definition at line 46 of file ossimNitfUse00aTag.cpp.

References ANGLE_TO_NORTH_SIZE, clearFields(), DYNAMIC_RANGE_SIZE, FIELD10_SIZE, FIELD11_SIZE, FIELD12_SIZE, FIELD13_SIZE, FIELD14_SIZE, FIELD15_SIZE, FIELD16_SIZE, FIELD20_SIZE, FIELD21_SIZE, FIELD3_SIZE, FIELD5_SIZE, FIELD6_SIZE, FIELD7_SIZE, MAX_LP_SEG_SIZE, MEAN_GSD_SIZE, N_REF_SIZE, N_SEG_SIZE, OBL_ANG_SIZE, REV_NUM_SIZE, ROLL_ANG_SIZE, SUN_AZ_SIZE, SUN_EL_SIZE, theAngleToNorth, theDynamicRange, theField10, theField11, theField12, theField13, theField14, theField15, theField16, theField20, theField21, theField3, theField5, theField6, theField7, theMaxLpSeg, theMeanGsd, theNRef, theNSeg, theOblAng, theRevNum, theRollAng, theSunAz, and theSunEl.

47 {
48  clearFields();
49 
51  in.read(theMeanGsd, MEAN_GSD_SIZE);
52  in.read(theField3, FIELD3_SIZE);
54  in.read(theField5, FIELD5_SIZE);
55  in.read(theField6, FIELD6_SIZE);
56  in.read(theField7, FIELD7_SIZE);
57  in.read(theOblAng, OBL_ANG_SIZE);
58  in.read(theRollAng, ROLL_ANG_SIZE);
59  in.read(theField10, FIELD10_SIZE);
60  in.read(theField11, FIELD11_SIZE);
61  in.read(theField12, FIELD12_SIZE);
62  in.read(theField13, FIELD13_SIZE);
63  in.read(theField14, FIELD14_SIZE);
64  in.read(theField15, FIELD15_SIZE);
65  in.read(theField16, FIELD16_SIZE);
66  in.read(theNRef, N_REF_SIZE);
67  in.read(theRevNum, REV_NUM_SIZE);
68  in.read(theNSeg, N_SEG_SIZE);
69  in.read(theMaxLpSeg, MAX_LP_SEG_SIZE);
70  in.read(theField20, FIELD20_SIZE);
71  in.read(theField21, FIELD21_SIZE);
72  in.read(theSunEl, SUN_EL_SIZE);
73  in.read(theSunAz, SUN_AZ_SIZE);
74 }
char theNSeg[N_SEG_SIZE+1]
FIELD: NSEG.
char theMaxLpSeg[MAX_LP_SEG_SIZE+1]
FIELD: MAXLPSEG.
char theField15[FIELD15_SIZE+1]
FIELD: FIELD15.
char theRevNum[REV_NUM_SIZE+1]
FIELD: REVNUM.
char theField14[FIELD14_SIZE+1]
FIELD: FIELD14.
char theField3[FIELD3_SIZE+1]
FIELD: FIELD3.
char theNRef[N_REF_SIZE+1]
FIELD: NREF.
char theField12[FIELD12_SIZE+1]
FIELD: FIELD12.
char theField11[FIELD11_SIZE+1]
FIELD: FIELD11.
char theMeanGsd[MEAN_GSD_SIZE+1]
FIELD: MEANGSD.
char theField6[FIELD6_SIZE+1]
FIELD: FIELD6.
char theField13[FIELD13_SIZE+1]
FIELD: FIELD13.
char theField5[FIELD5_SIZE+1]
FIELD: FIELD5.
char theField7[FIELD7_SIZE+1]
FIELD: FIELD7.
char theField21[FIELD21_SIZE+1]
FIELD: FIELD21.
virtual void clearFields()
char theRollAng[ROLL_ANG_SIZE+1]
FIELD: ROLLANG.
char theField10[FIELD10_SIZE+1]
FIELD: FIELD10.
char theAngleToNorth[ANGLE_TO_NORTH_SIZE+1]
FIELD: ANGLETONORTH.
char theSunEl[SUN_EL_SIZE+1]
FIELD: SUNEL.
char theOblAng[OBL_ANG_SIZE+1]
FIELD: OBLANG.
char theDynamicRange[DYNAMIC_RANGE_SIZE+1]
FIELD: DYNAMICRANGE.
char theField20[FIELD20_SIZE+1]
FIELD: FIELD20.
char theSunAz[SUN_AZ_SIZE+1]
FIELD: SUNAZ.
char theField16[FIELD16_SIZE+1]
FIELD: FIELD16.

◆ print()

std::ostream & ossimNitfUse00aTag::print ( std::ostream &  out,
const std::string &  prefix = std::string() 
) const
virtual

Print method that outputs a key/value type format adding prefix to keys.

Parameters
outStream to output to.
prefixPrefix added to key like "image0.";

Reimplemented from ossimNitfRegisteredTag.

Definition at line 438 of file ossimNitfUse00aTag.cpp.

References ossimNitfRegisteredTag::getTagLength(), ossimNitfRegisteredTag::getTagName(), theAngleToNorth, theDynamicRange, theMaxLpSeg, theMeanGsd, theNRef, theNSeg, theOblAng, theRevNum, theRollAng, theSunAz, and theSunEl.

440 {
441  std::string pfx = prefix;
442  pfx += getTagName();
443  pfx += ".";
444 
445  out << setiosflags(std::ios::left)
446  << pfx << std::setw(24) << "CETAG:" << getTagName() << "\n"
447  << pfx << std::setw(24) << "CEL:" << getTagLength() << "\n"
448  << pfx << std::setw(24) << "ANGLETONORTH:" << theAngleToNorth << "\n"
449  << pfx << std::setw(24) << "MEANGSD:" << theMeanGsd << "\n"
450  << pfx << std::setw(24) << "DYNAMICRANGE:" << theDynamicRange << "\n"
451  << pfx << std::setw(24) << "OBLANG:" << theOblAng << "\n"
452  << pfx << std::setw(24) << "ROLLANG:" << theRollAng << "\n"
453  << pfx << std::setw(24) << "NREF:" << theNRef << "\n"
454  << pfx << std::setw(24) << "REVNUM:" << theRevNum << "\n"
455  << pfx << std::setw(24) << "NSEG:" << theNSeg << "\n"
456  << pfx << std::setw(24) << "MAXLPSEG:" << theMaxLpSeg << "\n"
457  << pfx << std::setw(24) << "SUNEL:" << theSunEl << "\n"
458  << pfx << std::setw(24) << "SUNAZ:" << theSunAz << "\n";
459 
460  return out;
461 }
char theNSeg[N_SEG_SIZE+1]
FIELD: NSEG.
virtual const std::string & getTagName() const
This will return the name of the registered tag for this user defined header.
char theMaxLpSeg[MAX_LP_SEG_SIZE+1]
FIELD: MAXLPSEG.
char theRevNum[REV_NUM_SIZE+1]
FIELD: REVNUM.
char theNRef[N_REF_SIZE+1]
FIELD: NREF.
char theMeanGsd[MEAN_GSD_SIZE+1]
FIELD: MEANGSD.
virtual ossim_uint32 getTagLength() const
Returns the length in bytes of the tag from the CEL or REL field.
char theRollAng[ROLL_ANG_SIZE+1]
FIELD: ROLLANG.
char theAngleToNorth[ANGLE_TO_NORTH_SIZE+1]
FIELD: ANGLETONORTH.
char theSunEl[SUN_EL_SIZE+1]
FIELD: SUNEL.
char theOblAng[OBL_ANG_SIZE+1]
FIELD: OBLANG.
char theDynamicRange[DYNAMIC_RANGE_SIZE+1]
FIELD: DYNAMICRANGE.
char theSunAz[SUN_AZ_SIZE+1]
FIELD: SUNAZ.

◆ setAngleToNorth()

void ossimNitfUse00aTag::setAngleToNorth ( const ossimString angleToNorth)

Definition at line 162 of file ossimNitfUse00aTag.cpp.

References ANGLE_TO_NORTH_SIZE, ossimString::c_str(), ossimString::length(), min, and theAngleToNorth.

163 {
164  memset(theAngleToNorth, ' ', ANGLE_TO_NORTH_SIZE);
165  memcpy(theAngleToNorth, angleToNorth.c_str(), std::min((size_t)ANGLE_TO_NORTH_SIZE, angleToNorth.length()));
166 }
std::string::size_type length() const
Definition: ossimString.h:408
char theAngleToNorth[ANGLE_TO_NORTH_SIZE+1]
FIELD: ANGLETONORTH.
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
#define min(a, b)
Definition: auxiliary.h:75

◆ setDynamicRange()

void ossimNitfUse00aTag::setDynamicRange ( const ossimString dynamicRange)

Definition at line 212 of file ossimNitfUse00aTag.cpp.

References ossimString::c_str(), DYNAMIC_RANGE_SIZE, ossimString::length(), min, and theDynamicRange.

213 {
214  memset(theDynamicRange, ' ', DYNAMIC_RANGE_SIZE);
215  memcpy(theDynamicRange, dynamicRange.c_str(), std::min((size_t)DYNAMIC_RANGE_SIZE, dynamicRange.length()));
216 }
std::string::size_type length() const
Definition: ossimString.h:408
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
char theDynamicRange[DYNAMIC_RANGE_SIZE+1]
FIELD: DYNAMICRANGE.
#define min(a, b)
Definition: auxiliary.h:75

◆ setField10()

void ossimNitfUse00aTag::setField10 ( const ossimString field10)

Definition at line 278 of file ossimNitfUse00aTag.cpp.

References ossimString::c_str(), FIELD10_SIZE, ossimString::length(), min, and theField10.

279 {
280  memset(theField10, ' ', FIELD10_SIZE);
281  memcpy(theField10, field10.c_str(), std::min((size_t)FIELD10_SIZE, field10.length()));
282 }
std::string::size_type length() const
Definition: ossimString.h:408
char theField10[FIELD10_SIZE+1]
FIELD: FIELD10.
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
#define min(a, b)
Definition: auxiliary.h:75

◆ setField11()

void ossimNitfUse00aTag::setField11 ( const ossimString field11)

Definition at line 289 of file ossimNitfUse00aTag.cpp.

References ossimString::c_str(), FIELD11_SIZE, ossimString::length(), min, and theField11.

290 {
291  memset(theField11, ' ', FIELD11_SIZE);
292  memcpy(theField11, field11.c_str(), std::min((size_t)FIELD11_SIZE, field11.length()));
293 }
char theField11[FIELD11_SIZE+1]
FIELD: FIELD11.
std::string::size_type length() const
Definition: ossimString.h:408
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
#define min(a, b)
Definition: auxiliary.h:75

◆ setField12()

void ossimNitfUse00aTag::setField12 ( const ossimString field12)

Definition at line 300 of file ossimNitfUse00aTag.cpp.

References ossimString::c_str(), FIELD12_SIZE, ossimString::length(), min, and theField12.

301 {
302  memset(theField12, ' ', FIELD12_SIZE);
303  memcpy(theField12, field12.c_str(), std::min((size_t)FIELD12_SIZE, field12.length()));
304 }
char theField12[FIELD12_SIZE+1]
FIELD: FIELD12.
std::string::size_type length() const
Definition: ossimString.h:408
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
#define min(a, b)
Definition: auxiliary.h:75

◆ setField13()

void ossimNitfUse00aTag::setField13 ( const ossimString field13)

Definition at line 311 of file ossimNitfUse00aTag.cpp.

References ossimString::c_str(), FIELD13_SIZE, ossimString::length(), min, and theField13.

312 {
313  memset(theField13, ' ', FIELD13_SIZE);
314  memcpy(theField13, field13.c_str(), std::min((size_t)FIELD13_SIZE, field13.length()));
315 }
char theField13[FIELD13_SIZE+1]
FIELD: FIELD13.
std::string::size_type length() const
Definition: ossimString.h:408
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
#define min(a, b)
Definition: auxiliary.h:75

◆ setField14()

void ossimNitfUse00aTag::setField14 ( const ossimString field14)

Definition at line 322 of file ossimNitfUse00aTag.cpp.

References ossimString::c_str(), FIELD14_SIZE, ossimString::length(), min, and theField14.

323 {
324  memset(theField14, ' ', FIELD14_SIZE);
325  memcpy(theField14, field14.c_str(), std::min((size_t)FIELD14_SIZE, field14.length()));
326 }
char theField14[FIELD14_SIZE+1]
FIELD: FIELD14.
std::string::size_type length() const
Definition: ossimString.h:408
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
#define min(a, b)
Definition: auxiliary.h:75

◆ setField15()

void ossimNitfUse00aTag::setField15 ( const ossimString field15)

Definition at line 333 of file ossimNitfUse00aTag.cpp.

References ossimString::c_str(), FIELD15_SIZE, ossimString::length(), min, and theField15.

334 {
335  memset(theField15, ' ', FIELD15_SIZE);
336  memcpy(theField15, field15.c_str(), std::min((size_t)FIELD15_SIZE, field15.length()));
337 }
char theField15[FIELD15_SIZE+1]
FIELD: FIELD15.
std::string::size_type length() const
Definition: ossimString.h:408
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
#define min(a, b)
Definition: auxiliary.h:75

◆ setField16()

void ossimNitfUse00aTag::setField16 ( const ossimString field16)

Definition at line 344 of file ossimNitfUse00aTag.cpp.

References ossimString::c_str(), FIELD16_SIZE, ossimString::length(), min, and theField16.

345 {
346  memset(theField16, ' ', FIELD16_SIZE);
347  memcpy(theField16, field16.c_str(), std::min((size_t)FIELD16_SIZE, field16.length()));
348 }
std::string::size_type length() const
Definition: ossimString.h:408
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
#define min(a, b)
Definition: auxiliary.h:75
char theField16[FIELD16_SIZE+1]
FIELD: FIELD16.

◆ setField20()

void ossimNitfUse00aTag::setField20 ( const ossimString field20)

Definition at line 399 of file ossimNitfUse00aTag.cpp.

References ossimString::c_str(), FIELD20_SIZE, ossimString::length(), min, and theField20.

400 {
401  memset(theField20, ' ', FIELD20_SIZE);
402  memcpy(theField20, field20.c_str(), std::min((size_t)FIELD20_SIZE, field20.length()));
403 }
std::string::size_type length() const
Definition: ossimString.h:408
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
char theField20[FIELD20_SIZE+1]
FIELD: FIELD20.
#define min(a, b)
Definition: auxiliary.h:75

◆ setField21()

void ossimNitfUse00aTag::setField21 ( const ossimString field21)

Definition at line 410 of file ossimNitfUse00aTag.cpp.

References ossimString::c_str(), FIELD21_SIZE, ossimString::length(), min, and theField21.

411 {
412  memset(theField21, ' ', FIELD21_SIZE);
413  memcpy(theField21, field21.c_str(), std::min((size_t)FIELD21_SIZE, field21.length()));
414 }
std::string::size_type length() const
Definition: ossimString.h:408
char theField21[FIELD21_SIZE+1]
FIELD: FIELD21.
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
#define min(a, b)
Definition: auxiliary.h:75

◆ setField3()

void ossimNitfUse00aTag::setField3 ( const ossimString field3)

Definition at line 201 of file ossimNitfUse00aTag.cpp.

References ossimString::c_str(), FIELD3_SIZE, ossimString::length(), min, and theField3.

202 {
203  memset(theField3, ' ', FIELD3_SIZE);
204  memcpy(theField3, field3.c_str(), std::min((size_t)FIELD3_SIZE, field3.length()));
205 }
char theField3[FIELD3_SIZE+1]
FIELD: FIELD3.
std::string::size_type length() const
Definition: ossimString.h:408
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
#define min(a, b)
Definition: auxiliary.h:75

◆ setField5()

void ossimNitfUse00aTag::setField5 ( const ossimString field5)

Definition at line 223 of file ossimNitfUse00aTag.cpp.

References ossimString::c_str(), FIELD5_SIZE, ossimString::length(), min, and theField5.

224 {
225  memset(theField5, ' ', FIELD5_SIZE);
226  memcpy(theField5, field5.c_str(), std::min((size_t)FIELD5_SIZE, field5.length()));
227 }
char theField5[FIELD5_SIZE+1]
FIELD: FIELD5.
std::string::size_type length() const
Definition: ossimString.h:408
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
#define min(a, b)
Definition: auxiliary.h:75

◆ setField6()

void ossimNitfUse00aTag::setField6 ( const ossimString field6)

Definition at line 234 of file ossimNitfUse00aTag.cpp.

References ossimString::c_str(), FIELD6_SIZE, ossimString::length(), min, and theField6.

235 {
236  memset(theField6, ' ', FIELD6_SIZE);
237  memcpy(theField6, field6.c_str(), std::min((size_t)FIELD6_SIZE, field6.length()));
238 }
char theField6[FIELD6_SIZE+1]
FIELD: FIELD6.
std::string::size_type length() const
Definition: ossimString.h:408
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
#define min(a, b)
Definition: auxiliary.h:75

◆ setField7()

void ossimNitfUse00aTag::setField7 ( const ossimString field7)

Definition at line 245 of file ossimNitfUse00aTag.cpp.

References ossimString::c_str(), FIELD7_SIZE, ossimString::length(), min, and theField7.

246 {
247  memset(theField7, ' ', FIELD7_SIZE);
248  memcpy(theField7, field7.c_str(), std::min((size_t)FIELD7_SIZE, field7.length()));
249 }
char theField7[FIELD7_SIZE+1]
FIELD: FIELD7.
std::string::size_type length() const
Definition: ossimString.h:408
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
#define min(a, b)
Definition: auxiliary.h:75

◆ setMaxLpSeg()

void ossimNitfUse00aTag::setMaxLpSeg ( const ossimString maxLpSeg)

Definition at line 388 of file ossimNitfUse00aTag.cpp.

References ossimString::c_str(), ossimString::length(), MAX_LP_SEG_SIZE, min, and theMaxLpSeg.

389 {
390  memset(theMaxLpSeg, ' ', MAX_LP_SEG_SIZE);
391  memcpy(theMaxLpSeg, maxLpSeg.c_str(), std::min((size_t)MAX_LP_SEG_SIZE, maxLpSeg.length()));
392 }
char theMaxLpSeg[MAX_LP_SEG_SIZE+1]
FIELD: MAXLPSEG.
std::string::size_type length() const
Definition: ossimString.h:408
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
#define min(a, b)
Definition: auxiliary.h:75

◆ setMeanGsd()

void ossimNitfUse00aTag::setMeanGsd ( const ossimString meanGsd)

Definition at line 190 of file ossimNitfUse00aTag.cpp.

References ossimString::c_str(), ossimString::length(), MEAN_GSD_SIZE, min, and theMeanGsd.

191 {
192  memset(theMeanGsd, ' ', MEAN_GSD_SIZE);
193  memcpy(theMeanGsd, meanGsd.c_str(), std::min((size_t)MEAN_GSD_SIZE, meanGsd.length()));
194 }
char theMeanGsd[MEAN_GSD_SIZE+1]
FIELD: MEANGSD.
std::string::size_type length() const
Definition: ossimString.h:408
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
#define min(a, b)
Definition: auxiliary.h:75

◆ setNRef()

void ossimNitfUse00aTag::setNRef ( const ossimString nRef)

Definition at line 355 of file ossimNitfUse00aTag.cpp.

References ossimString::c_str(), ossimString::length(), min, N_REF_SIZE, and theNRef.

356 {
357  memset(theNRef, ' ', N_REF_SIZE);
358  memcpy(theNRef, nRef.c_str(), std::min((size_t)N_REF_SIZE, nRef.length()));
359 }
char theNRef[N_REF_SIZE+1]
FIELD: NREF.
std::string::size_type length() const
Definition: ossimString.h:408
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
#define min(a, b)
Definition: auxiliary.h:75

◆ setNSeg()

void ossimNitfUse00aTag::setNSeg ( const ossimString nSeg)

Definition at line 377 of file ossimNitfUse00aTag.cpp.

References ossimString::c_str(), ossimString::length(), min, N_SEG_SIZE, and theNSeg.

378 {
379  memset(theNSeg, ' ', N_SEG_SIZE);
380  memcpy(theNSeg, nSeg.c_str(), std::min((size_t)N_SEG_SIZE, nSeg.length()));
381 }
char theNSeg[N_SEG_SIZE+1]
FIELD: NSEG.
std::string::size_type length() const
Definition: ossimString.h:408
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
#define min(a, b)
Definition: auxiliary.h:75

◆ setOblAng()

void ossimNitfUse00aTag::setOblAng ( const ossimString oblAng)

Definition at line 256 of file ossimNitfUse00aTag.cpp.

References ossimString::c_str(), ossimString::length(), min, OBL_ANG_SIZE, and theOblAng.

257 {
258  memset(theOblAng, ' ', OBL_ANG_SIZE);
259  memcpy(theOblAng, oblAng.c_str(), std::min((size_t)OBL_ANG_SIZE, oblAng.length()));
260 }
std::string::size_type length() const
Definition: ossimString.h:408
char theOblAng[OBL_ANG_SIZE+1]
FIELD: OBLANG.
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
#define min(a, b)
Definition: auxiliary.h:75

◆ setProperty()

void ossimNitfUse00aTag::setProperty ( ossimRefPtr< ossimProperty property)
virtual

Reimplemented from ossimNitfRegisteredTag.

Definition at line 463 of file ossimNitfUse00aTag.cpp.

References ossimNitfRegisteredTag::setProperty().

464 {
466 }
virtual void setProperty(ossimRefPtr< ossimProperty > property)

◆ setRevNum()

void ossimNitfUse00aTag::setRevNum ( const ossimString revNum)

Definition at line 366 of file ossimNitfUse00aTag.cpp.

References ossimString::c_str(), ossimString::length(), min, REV_NUM_SIZE, and theRevNum.

367 {
368  memset(theRevNum, ' ', REV_NUM_SIZE);
369  memcpy(theRevNum, revNum.c_str(), std::min((size_t)REV_NUM_SIZE, revNum.length()));
370 }
char theRevNum[REV_NUM_SIZE+1]
FIELD: REVNUM.
std::string::size_type length() const
Definition: ossimString.h:408
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
#define min(a, b)
Definition: auxiliary.h:75

◆ setRollAng()

void ossimNitfUse00aTag::setRollAng ( const ossimString rollAng)

Definition at line 267 of file ossimNitfUse00aTag.cpp.

References ossimString::c_str(), ossimString::length(), min, ROLL_ANG_SIZE, and theRollAng.

268 {
269  memset(theRollAng, ' ', ROLL_ANG_SIZE);
270  memcpy(theRollAng, rollAng.c_str(), std::min((size_t)ROLL_ANG_SIZE, rollAng.length()));
271 }
std::string::size_type length() const
Definition: ossimString.h:408
char theRollAng[ROLL_ANG_SIZE+1]
FIELD: ROLLANG.
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
#define min(a, b)
Definition: auxiliary.h:75

◆ setSunAz()

void ossimNitfUse00aTag::setSunAz ( const ossimString sunAz)

Definition at line 432 of file ossimNitfUse00aTag.cpp.

References ossimString::c_str(), ossimString::length(), min, SUN_AZ_SIZE, and theSunAz.

433 {
434  memset(theSunAz, ' ', SUN_AZ_SIZE);
435  memcpy(theSunAz, sunAz.c_str(), std::min((size_t)SUN_AZ_SIZE, sunAz.length()));
436 }
std::string::size_type length() const
Definition: ossimString.h:408
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
char theSunAz[SUN_AZ_SIZE+1]
FIELD: SUNAZ.
#define min(a, b)
Definition: auxiliary.h:75

◆ setSunEl()

void ossimNitfUse00aTag::setSunEl ( const ossimString sunEl)

Definition at line 421 of file ossimNitfUse00aTag.cpp.

References ossimString::c_str(), ossimString::length(), min, SUN_EL_SIZE, and theSunEl.

422 {
423  memset(theSunEl, ' ', SUN_EL_SIZE);
424  memcpy(theSunEl, sunEl.c_str(), std::min((size_t)SUN_EL_SIZE, sunEl.length()));
425 }
std::string::size_type length() const
Definition: ossimString.h:408
char theSunEl[SUN_EL_SIZE+1]
FIELD: SUNEL.
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
#define min(a, b)
Definition: auxiliary.h:75

◆ writeStream()

void ossimNitfUse00aTag::writeStream ( std::ostream &  out)
virtual

Definition at line 76 of file ossimNitfUse00aTag.cpp.

References ANGLE_TO_NORTH_SIZE, DYNAMIC_RANGE_SIZE, FIELD10_SIZE, FIELD11_SIZE, FIELD12_SIZE, FIELD13_SIZE, FIELD14_SIZE, FIELD15_SIZE, FIELD16_SIZE, FIELD20_SIZE, FIELD21_SIZE, FIELD3_SIZE, FIELD5_SIZE, FIELD6_SIZE, FIELD7_SIZE, MAX_LP_SEG_SIZE, MEAN_GSD_SIZE, N_REF_SIZE, N_SEG_SIZE, OBL_ANG_SIZE, REV_NUM_SIZE, ROLL_ANG_SIZE, SUN_AZ_SIZE, SUN_EL_SIZE, theAngleToNorth, theDynamicRange, theField10, theField11, theField12, theField13, theField14, theField15, theField16, theField20, theField21, theField3, theField5, theField6, theField7, theMaxLpSeg, theMeanGsd, theNRef, theNSeg, theOblAng, theRevNum, theRollAng, theSunAz, and theSunEl.

77 {
79  out.write(theMeanGsd, MEAN_GSD_SIZE);
80  out.write(theField3, FIELD3_SIZE);
82  out.write(theField5, FIELD5_SIZE);
83  out.write(theField6, FIELD6_SIZE);
84  out.write(theField7, FIELD7_SIZE);
85  out.write(theOblAng, OBL_ANG_SIZE);
86  out.write(theRollAng, ROLL_ANG_SIZE);
87  out.write(theField10, FIELD10_SIZE);
88  out.write(theField11, FIELD11_SIZE);
89  out.write(theField12, FIELD12_SIZE);
90  out.write(theField13, FIELD13_SIZE);
91  out.write(theField14, FIELD14_SIZE);
92  out.write(theField15, FIELD15_SIZE);
93  out.write(theField16, FIELD16_SIZE);
94  out.write(theNRef, N_REF_SIZE);
95  out.write(theRevNum, REV_NUM_SIZE);
96  out.write(theNSeg, N_SEG_SIZE);
97  out.write(theMaxLpSeg, MAX_LP_SEG_SIZE);
98  out.write(theField20, FIELD20_SIZE);
99  out.write(theField21, FIELD21_SIZE);
100  out.write(theSunEl, SUN_EL_SIZE);
101  out.write(theSunAz, SUN_AZ_SIZE);
102 }
char theNSeg[N_SEG_SIZE+1]
FIELD: NSEG.
char theMaxLpSeg[MAX_LP_SEG_SIZE+1]
FIELD: MAXLPSEG.
char theField15[FIELD15_SIZE+1]
FIELD: FIELD15.
char theRevNum[REV_NUM_SIZE+1]
FIELD: REVNUM.
char theField14[FIELD14_SIZE+1]
FIELD: FIELD14.
char theField3[FIELD3_SIZE+1]
FIELD: FIELD3.
char theNRef[N_REF_SIZE+1]
FIELD: NREF.
char theField12[FIELD12_SIZE+1]
FIELD: FIELD12.
char theField11[FIELD11_SIZE+1]
FIELD: FIELD11.
char theMeanGsd[MEAN_GSD_SIZE+1]
FIELD: MEANGSD.
char theField6[FIELD6_SIZE+1]
FIELD: FIELD6.
char theField13[FIELD13_SIZE+1]
FIELD: FIELD13.
char theField5[FIELD5_SIZE+1]
FIELD: FIELD5.
char theField7[FIELD7_SIZE+1]
FIELD: FIELD7.
char theField21[FIELD21_SIZE+1]
FIELD: FIELD21.
char theRollAng[ROLL_ANG_SIZE+1]
FIELD: ROLLANG.
char theField10[FIELD10_SIZE+1]
FIELD: FIELD10.
char theAngleToNorth[ANGLE_TO_NORTH_SIZE+1]
FIELD: ANGLETONORTH.
char theSunEl[SUN_EL_SIZE+1]
FIELD: SUNEL.
char theOblAng[OBL_ANG_SIZE+1]
FIELD: OBLANG.
char theDynamicRange[DYNAMIC_RANGE_SIZE+1]
FIELD: DYNAMICRANGE.
char theField20[FIELD20_SIZE+1]
FIELD: FIELD20.
char theSunAz[SUN_AZ_SIZE+1]
FIELD: SUNAZ.
char theField16[FIELD16_SIZE+1]
FIELD: FIELD16.

Member Data Documentation

◆ theAngleToNorth

char ossimNitfUse00aTag::theAngleToNorth[ANGLE_TO_NORTH_SIZE+1]
protected

FIELD: ANGLETONORTH.

Definition at line 139 of file ossimNitfUse00aTag.h.

Referenced by clearFields(), getAngleToNorth(), parseStream(), print(), setAngleToNorth(), and writeStream().

◆ theDynamicRange

char ossimNitfUse00aTag::theDynamicRange[DYNAMIC_RANGE_SIZE+1]
protected

FIELD: DYNAMICRANGE.

Definition at line 157 of file ossimNitfUse00aTag.h.

Referenced by clearFields(), getDynamicRange(), parseStream(), print(), setDynamicRange(), and writeStream().

◆ theField10

char ossimNitfUse00aTag::theField10[FIELD10_SIZE+1]
protected

FIELD: FIELD10.

Definition at line 193 of file ossimNitfUse00aTag.h.

Referenced by clearFields(), getField10(), parseStream(), setField10(), and writeStream().

◆ theField11

char ossimNitfUse00aTag::theField11[FIELD11_SIZE+1]
protected

FIELD: FIELD11.

Definition at line 199 of file ossimNitfUse00aTag.h.

Referenced by clearFields(), getField11(), parseStream(), setField11(), and writeStream().

◆ theField12

char ossimNitfUse00aTag::theField12[FIELD12_SIZE+1]
protected

FIELD: FIELD12.

Definition at line 205 of file ossimNitfUse00aTag.h.

Referenced by clearFields(), getField12(), parseStream(), setField12(), and writeStream().

◆ theField13

char ossimNitfUse00aTag::theField13[FIELD13_SIZE+1]
protected

FIELD: FIELD13.

Definition at line 211 of file ossimNitfUse00aTag.h.

Referenced by clearFields(), getField13(), parseStream(), setField13(), and writeStream().

◆ theField14

char ossimNitfUse00aTag::theField14[FIELD14_SIZE+1]
protected

FIELD: FIELD14.

Definition at line 217 of file ossimNitfUse00aTag.h.

Referenced by clearFields(), getField14(), parseStream(), setField14(), and writeStream().

◆ theField15

char ossimNitfUse00aTag::theField15[FIELD15_SIZE+1]
protected

FIELD: FIELD15.

Definition at line 223 of file ossimNitfUse00aTag.h.

Referenced by clearFields(), getField15(), parseStream(), setField15(), and writeStream().

◆ theField16

char ossimNitfUse00aTag::theField16[FIELD16_SIZE+1]
protected

FIELD: FIELD16.

Definition at line 229 of file ossimNitfUse00aTag.h.

Referenced by clearFields(), getField16(), parseStream(), setField16(), and writeStream().

◆ theField20

char ossimNitfUse00aTag::theField20[FIELD20_SIZE+1]
protected

FIELD: FIELD20.

Definition at line 259 of file ossimNitfUse00aTag.h.

Referenced by clearFields(), getField20(), parseStream(), setField20(), and writeStream().

◆ theField21

char ossimNitfUse00aTag::theField21[FIELD21_SIZE+1]
protected

FIELD: FIELD21.

Definition at line 265 of file ossimNitfUse00aTag.h.

Referenced by clearFields(), getField21(), parseStream(), setField21(), and writeStream().

◆ theField3

char ossimNitfUse00aTag::theField3[FIELD3_SIZE+1]
protected

FIELD: FIELD3.

Definition at line 151 of file ossimNitfUse00aTag.h.

Referenced by clearFields(), getField3(), parseStream(), setField3(), and writeStream().

◆ theField5

char ossimNitfUse00aTag::theField5[FIELD5_SIZE+1]
protected

FIELD: FIELD5.

Definition at line 163 of file ossimNitfUse00aTag.h.

Referenced by clearFields(), getField5(), parseStream(), setField5(), and writeStream().

◆ theField6

char ossimNitfUse00aTag::theField6[FIELD6_SIZE+1]
protected

FIELD: FIELD6.

Definition at line 169 of file ossimNitfUse00aTag.h.

Referenced by clearFields(), getField6(), parseStream(), setField6(), and writeStream().

◆ theField7

char ossimNitfUse00aTag::theField7[FIELD7_SIZE+1]
protected

FIELD: FIELD7.

Definition at line 175 of file ossimNitfUse00aTag.h.

Referenced by clearFields(), getField7(), parseStream(), setField7(), and writeStream().

◆ theMaxLpSeg

char ossimNitfUse00aTag::theMaxLpSeg[MAX_LP_SEG_SIZE+1]
protected

FIELD: MAXLPSEG.

Definition at line 253 of file ossimNitfUse00aTag.h.

Referenced by clearFields(), getMaxLpSeg(), parseStream(), print(), setMaxLpSeg(), and writeStream().

◆ theMeanGsd

char ossimNitfUse00aTag::theMeanGsd[MEAN_GSD_SIZE+1]
protected

FIELD: MEANGSD.

Definition at line 145 of file ossimNitfUse00aTag.h.

Referenced by clearFields(), getMeanGsd(), getMeanGsdInMeters(), parseStream(), print(), setMeanGsd(), and writeStream().

◆ theNRef

char ossimNitfUse00aTag::theNRef[N_REF_SIZE+1]
protected

FIELD: NREF.

Definition at line 235 of file ossimNitfUse00aTag.h.

Referenced by clearFields(), getNRef(), parseStream(), print(), setNRef(), and writeStream().

◆ theNSeg

char ossimNitfUse00aTag::theNSeg[N_SEG_SIZE+1]
protected

FIELD: NSEG.

Definition at line 247 of file ossimNitfUse00aTag.h.

Referenced by clearFields(), getNSeg(), parseStream(), print(), setNSeg(), and writeStream().

◆ theOblAng

char ossimNitfUse00aTag::theOblAng[OBL_ANG_SIZE+1]
protected

FIELD: OBLANG.

Definition at line 181 of file ossimNitfUse00aTag.h.

Referenced by clearFields(), getOblAng(), parseStream(), print(), setOblAng(), and writeStream().

◆ theRevNum

char ossimNitfUse00aTag::theRevNum[REV_NUM_SIZE+1]
protected

FIELD: REVNUM.

Definition at line 241 of file ossimNitfUse00aTag.h.

Referenced by clearFields(), getRevNum(), parseStream(), print(), setRevNum(), and writeStream().

◆ theRollAng

char ossimNitfUse00aTag::theRollAng[ROLL_ANG_SIZE+1]
protected

FIELD: ROLLANG.

Definition at line 187 of file ossimNitfUse00aTag.h.

Referenced by clearFields(), getRollAng(), parseStream(), print(), setRollAng(), and writeStream().

◆ theSunAz

char ossimNitfUse00aTag::theSunAz[SUN_AZ_SIZE+1]
protected

FIELD: SUNAZ.

Definition at line 277 of file ossimNitfUse00aTag.h.

Referenced by clearFields(), getSunAz(), parseStream(), print(), setSunAz(), and writeStream().

◆ theSunEl

char ossimNitfUse00aTag::theSunEl[SUN_EL_SIZE+1]
protected

FIELD: SUNEL.

Definition at line 271 of file ossimNitfUse00aTag.h.

Referenced by clearFields(), getSunEl(), parseStream(), print(), setSunEl(), and writeStream().


The documentation for this class was generated from the following files: