OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimNitfMstgtaTag.h>
Public Types | |
enum | { TGT_NUM_SIZE = 5, TGT_ID_SIZE = 12, TGT_BE_SIZE = 15, TGT_PRI_SIZE = 3, TGT_REQ_SIZE = 12, TGT_LTIOV_SIZE = 12, TGT_TYPE_SIZE = 1, TGT_COLL_SIZE = 1, TGT_CAT_SIZE = 5, TGT_UTC_SIZE = 7, TGT_ELEV_SIZE = 6, TGT_ELEV_UNIT_SIZE = 1, TGT_LOC_SIZE = 21 } |
Public Member Functions | |
ossimNitfMstgtaTag () | |
default constructor More... | |
virtual | ~ossimNitfMstgtaTag () |
destructor More... | |
virtual void | parseStream (std::istream &in) |
Method to parse data from stream. More... | |
virtual void | writeStream (std::ostream &out) |
Method to write data to stream. More... | |
virtual void | clearFields () |
Method to clear all fields including null terminating. More... | |
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... | |
![]() | |
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 | setProperty (ossimRefPtr< ossimProperty > property) |
virtual ossimRefPtr< ossimProperty > | getProperty (const ossimString &name) const |
virtual void | getPropertyNames (std::vector< ossimString > &propertyNames) const |
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 |
![]() | |
ossimObject () | |
virtual | ~ossimObject () |
virtual ossimObject * | dup () 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) |
![]() | |
ossimReferenced () | |
ossimReferenced (const ossimReferenced &) | |
ossimReferenced & | operator= (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 |
![]() | |
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 | theTgtNum [TGT_NUM_SIZE+1] |
Type R = Required Type <R> = BCS spaces allowed for entire field. More... | |
char | theTgtId [TGT_ID_SIZE+1] |
FIELD: TGT_ID. More... | |
char | theTgtBe [TGT_BE_SIZE+1] |
FIELD: TGT_BE. More... | |
char | theTgtPri [TGT_PRI_SIZE+1] |
FIELD: TGT_PRI. More... | |
char | theTgtReq [TGT_REQ_SIZE+1] |
FIELD: TGT_REQ. More... | |
char | theTgtLtiov [TGT_LTIOV_SIZE+1] |
FIELD: TGT_LTIOV. More... | |
char | theTgtType [TGT_TYPE_SIZE+1] |
FIELD: TGT_TYPE. More... | |
char | theTgtColl [TGT_COLL_SIZE+1] |
FIELD: TGT_COLL. More... | |
char | theTgtCat [TGT_CAT_SIZE+1] |
FIELD: TGT_CAT. More... | |
char | theTgtUtc [TGT_UTC_SIZE+1] |
FIELD: TGT_UTC. More... | |
char | theTgtElev [TGT_ELEV_SIZE+1] |
FIELD: TGT_ELEV. More... | |
char | theTgtElevUnit [TGT_ELEV_UNIT_SIZE+1] |
FIELD: TGT_ELEV_UNIT. More... | |
char | theTgtLoc [TGT_LOC_SIZE+1] |
FIELD: TGT_LOC. More... | |
![]() | |
std::string | m_tagName |
ossim_uint32 | m_tagLength |
Additional Inherited Members | |
![]() | |
virtual | ~ossimReferenced () |
Definition at line 22 of file ossimNitfMstgtaTag.h.
anonymous enum |
Enumerator | |
---|---|
TGT_NUM_SIZE | |
TGT_ID_SIZE | |
TGT_BE_SIZE | |
TGT_PRI_SIZE | |
TGT_REQ_SIZE | |
TGT_LTIOV_SIZE | |
TGT_TYPE_SIZE | |
TGT_COLL_SIZE | |
TGT_CAT_SIZE | |
TGT_UTC_SIZE | |
TGT_ELEV_SIZE | |
TGT_ELEV_UNIT_SIZE | |
TGT_LOC_SIZE |
Definition at line 26 of file ossimNitfMstgtaTag.h.
ossimNitfMstgtaTag::ossimNitfMstgtaTag | ( | ) |
default constructor
Definition at line 27 of file ossimNitfMstgtaTag.cpp.
References clearFields().
|
virtual |
|
virtual |
Method to clear all fields including null terminating.
Definition at line 73 of file ossimNitfMstgtaTag.cpp.
References TGT_BE_SIZE, TGT_CAT_SIZE, TGT_COLL_SIZE, TGT_ELEV_SIZE, TGT_ELEV_UNIT_SIZE, TGT_ID_SIZE, TGT_LOC_SIZE, TGT_LTIOV_SIZE, TGT_NUM_SIZE, TGT_PRI_SIZE, TGT_REQ_SIZE, TGT_TYPE_SIZE, TGT_UTC_SIZE, theTgtBe, theTgtCat, theTgtColl, theTgtElev, theTgtElevUnit, theTgtId, theTgtLoc, theTgtLtiov, theTgtNum, theTgtPri, theTgtReq, theTgtType, and theTgtUtc.
Referenced by ossimNitfMstgtaTag(), and parseStream().
|
virtual |
Method to parse data from stream.
Definition at line 37 of file ossimNitfMstgtaTag.cpp.
References clearFields(), TGT_BE_SIZE, TGT_CAT_SIZE, TGT_COLL_SIZE, TGT_ELEV_SIZE, TGT_ELEV_UNIT_SIZE, TGT_ID_SIZE, TGT_LOC_SIZE, TGT_LTIOV_SIZE, TGT_NUM_SIZE, TGT_PRI_SIZE, TGT_REQ_SIZE, TGT_TYPE_SIZE, TGT_UTC_SIZE, theTgtBe, theTgtCat, theTgtColl, theTgtElev, theTgtElevUnit, theTgtId, theTgtLoc, theTgtLtiov, theTgtNum, theTgtPri, theTgtReq, theTgtType, and theTgtUtc.
|
virtual |
Print method that outputs a key/value type format adding prefix to keys.
out | Stream to output to. |
prefix | Prefix added to key like "image0."; |
Reimplemented from ossimNitfRegisteredTag.
Definition at line 108 of file ossimNitfMstgtaTag.cpp.
References ossimNitfRegisteredTag::getTagLength(), ossimNitfRegisteredTag::getTagName(), theTgtBe, theTgtCat, theTgtColl, theTgtElev, theTgtElevUnit, theTgtId, theTgtLoc, theTgtLtiov, theTgtNum, theTgtPri, theTgtReq, theTgtType, and theTgtUtc.
|
virtual |
Method to write data to stream.
Definition at line 56 of file ossimNitfMstgtaTag.cpp.
References TGT_BE_SIZE, TGT_CAT_SIZE, TGT_COLL_SIZE, TGT_ELEV_SIZE, TGT_ELEV_UNIT_SIZE, TGT_ID_SIZE, TGT_LOC_SIZE, TGT_LTIOV_SIZE, TGT_NUM_SIZE, TGT_PRI_SIZE, TGT_REQ_SIZE, TGT_TYPE_SIZE, TGT_UTC_SIZE, theTgtBe, theTgtCat, theTgtColl, theTgtElev, theTgtElevUnit, theTgtId, theTgtLoc, theTgtLtiov, theTgtNum, theTgtPri, theTgtReq, theTgtType, and theTgtUtc.
|
protected |
FIELD: TGT_BE.
TYPE: <R>
15 byte field
alphnumeric
Definition at line 102 of file ossimNitfMstgtaTag.h.
Referenced by clearFields(), parseStream(), print(), and writeStream().
|
protected |
FIELD: TGT_CAT.
TYPE: <R>
5 byte field
Target Functional Category Code 10000 to 99999
Definition at line 168 of file ossimNitfMstgtaTag.h.
Referenced by clearFields(), parseStream(), print(), and writeStream().
|
protected |
FIELD: TGT_COLL.
TYPE: R
1 byte field
Pre-Planned Collection Technique: 0 to 9
Definition at line 157 of file ossimNitfMstgtaTag.h.
Referenced by clearFields(), parseStream(), print(), and writeStream().
|
protected |
FIELD: TGT_ELEV.
TYPE: <R>
6 byte field
Target Elevation -01000 to +30000 feet or meters
Definition at line 190 of file ossimNitfMstgtaTag.h.
Referenced by clearFields(), parseStream(), print(), and writeStream().
|
protected |
FIELD: TGT_ELEV_UNIT.
TYPE: <R>
1 byte field
Unit of Target Elevation, f = feet, m = meters
Definition at line 201 of file ossimNitfMstgtaTag.h.
Referenced by clearFields(), parseStream(), print(), and writeStream().
|
protected |
FIELD: TGT_ID.
TYPE: <R>
12 byte field
Disignator of Target, alphnumeric.
Definition at line 91 of file ossimNitfMstgtaTag.h.
Referenced by clearFields(), parseStream(), print(), and writeStream().
|
protected |
FIELD: TGT_LOC.
TYPE: R
21 byte field
Target Location
Definition at line 212 of file ossimNitfMstgtaTag.h.
Referenced by clearFields(), parseStream(), print(), and writeStream().
|
protected |
FIELD: TGT_LTIOV.
TYPE: <R>
12 byte field
Latest Time Information of Value CCYYMMDDhhmm
Definition at line 135 of file ossimNitfMstgtaTag.h.
Referenced by clearFields(), parseStream(), print(), and writeStream().
|
protected |
Type R = Required Type <R> = BCS spaces allowed for entire field.
FIELD: TGT_NUM
TYPE: R
5 byte field
00001 ti 99999
Definition at line 80 of file ossimNitfMstgtaTag.h.
Referenced by clearFields(), parseStream(), print(), and writeStream().
|
protected |
FIELD: TGT_PRI.
TYPE: <R>
3 byte field
Target priority, 1 = top, 2 = 2nd... 001 to 999
Definition at line 113 of file ossimNitfMstgtaTag.h.
Referenced by clearFields(), parseStream(), print(), and writeStream().
|
protected |
FIELD: TGT_REQ.
TYPE: <R>
12 byte field
Target requester. alphnumeric
Definition at line 124 of file ossimNitfMstgtaTag.h.
Referenced by clearFields(), parseStream(), print(), and writeStream().
|
protected |
FIELD: TGT_TYPE.
TYPE: <R>
1 byte field
Pre-Planned Target Type: 0 = point, 1 = strip, 2 = area, 0 to 9.
Definition at line 146 of file ossimNitfMstgtaTag.h.
Referenced by clearFields(), parseStream(), print(), and writeStream().
|
protected |
FIELD: TGT_UTC.
TYPE: <R>
7 byte field
Planned Time at Target hhmmssZ
Definition at line 179 of file ossimNitfMstgtaTag.h.
Referenced by clearFields(), parseStream(), print(), and writeStream().