OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimDtedHdr.h>
Public Types | |
enum | { HDR_LENGTH = 80, HDR_ONE_LABEL_1 = 4, HDR_FILENAME = 5, HDR_UNIVAC = 22, HDR_REEL = 28, HDR_FILE_NUM = 32, HDR_GENERATION_NUM = 36, HDR_VERSION_NUM = 40, HDR_CREATION_DATE = 42, HDR_EXPIRATION_DATE = 48, HDR_ACCESS = 54, HDR_BLOCK_COUNT = 55, HDR_QUALIFIER = 61, HDR_BLANKS = 74, FIELD1_SIZE = 3, FIELD2_SIZE = 1, FIELD3_SIZE = 17, FIELD4_SIZE = 6, FIELD5_SIZE = 4, FIELD6_SIZE = 4, FIELD7_SIZE = 4, FIELD8_SIZE = 2, FIELD9_SIZE = 6, FIELD10_SIZE = 6, FIELD11_SIZE = 1, FIELD12_SIZE = 6, FIELD13_SIZE = 13, FIELD14_SIZE = 7 } |
Public Member Functions | |
ossimDtedHdr () | |
ossimDtedHdr (std::shared_ptr< ossim::istream > &str, ossim_int64 offset=0) | |
ossimString | recognitionSentinel () const |
ossimString | fileName () const |
ossimString | version () const |
ossimString | creationDate () const |
ossim_int32 | startOffset () const |
ossim_int32 | stopOffset () const |
std::ostream & | print (std::ostream &out, const std::string &prefix) const |
print method that outputs a key/value type format adding prefix to keys. More... | |
void | parse (std::istream &in) |
ossimRefPtr< ossimProperty > | getProperty (const ossimString &name) const |
Gets a property for name. More... | |
void | getPropertyNames (std::vector< ossimString > &propertyNames) const |
Adds this class's properties to list. More... | |
![]() | |
ossimErrorStatusInterface () | |
virtual | ~ossimErrorStatusInterface () |
virtual ossimErrorCode | getErrorStatus () const |
virtual ossimString | getErrorStatusString () const |
virtual void | setErrorStatus (ossimErrorCode error_status) const |
virtual void | setErrorStatus () const |
virtual void | clearErrorStatus () const |
bool | hasError () const |
virtual std::ostream & | print (std::ostream &out) const |
Outputs theErrorStatus as an ossimErrorCode and an ossimString. More... | |
Private Member Functions | |
ossimDtedHdr (const ossimDtedHdr &source) | |
const ossimDtedHdr & | operator= (const ossimDtedHdr &rhs) |
Private Attributes | |
char | theRecSen [FIELD1_SIZE+1] |
char | theField2 [FIELD2_SIZE+1] |
char | theFilename [FIELD3_SIZE+1] |
char | theField4 [FIELD4_SIZE+1] |
char | theField5 [FIELD5_SIZE+1] |
char | theField6 [FIELD6_SIZE+1] |
char | theVersion [FIELD7_SIZE+1] |
char | theCreationDate [FIELD8_SIZE+1] |
char | theField9 [FIELD9_SIZE+1] |
char | theField10 [FIELD10_SIZE+1] |
char | theField11 [FIELD11_SIZE+1] |
char | theField12 [FIELD12_SIZE+1] |
char | theField13 [FIELD13_SIZE+1] |
char | theField14 [FIELD14_SIZE+1] |
ossim_int32 | theStartOffset |
ossim_int32 | theStopOffset |
Friends | |
OSSIM_DLL std::ostream & | operator<< (std::ostream &os, const ossimDtedHdr &hdr) |
Additional Inherited Members | |
![]() | |
ossimErrorCode | theErrorStatus |
Definition at line 27 of file ossimDtedHdr.h.
anonymous enum |
Definition at line 33 of file ossimDtedHdr.h.
ossimDtedHdr::ossimDtedHdr | ( | ) |
Definition at line 24 of file ossimDtedHdr.cpp.
ossimDtedHdr::ossimDtedHdr | ( | std::shared_ptr< ossim::istream > & | str, |
ossim_int64 | offset = 0 |
||
) |
Definition at line 32 of file ossimDtedHdr.cpp.
References ossimErrorCodes::OSSIM_ERROR, parse(), and ossimErrorStatusInterface::theErrorStatus.
|
private |
Definition at line 201 of file ossimDtedHdr.cpp.
ossimString ossimDtedHdr::creationDate | ( | ) | const |
ossimString ossimDtedHdr::fileName | ( | ) | const |
ossimRefPtr< ossimProperty > ossimDtedHdr::getProperty | ( | const ossimString & | name | ) | const |
Gets a property for name.
name | Property name to get. |
Definition at line 125 of file ossimDtedHdr.cpp.
Referenced by ossimDtedInfo::getProperty().
void ossimDtedHdr::getPropertyNames | ( | std::vector< ossimString > & | propertyNames | ) | const |
Adds this class's properties to list.
propertyNames | list to append to. |
Definition at line 132 of file ossimDtedHdr.cpp.
Referenced by ossimDtedInfo::getProperty().
|
private |
Definition at line 204 of file ossimDtedHdr.cpp.
void ossimDtedHdr::parse | ( | std::istream & | in | ) |
Definition at line 53 of file ossimDtedHdr.cpp.
References ossimErrorStatusInterface::clearErrorStatus(), FIELD10_SIZE, FIELD11_SIZE, FIELD12_SIZE, FIELD13_SIZE, FIELD14_SIZE, FIELD1_SIZE, FIELD2_SIZE, FIELD3_SIZE, FIELD4_SIZE, FIELD5_SIZE, FIELD6_SIZE, FIELD7_SIZE, FIELD8_SIZE, FIELD9_SIZE, HDR_LENGTH, ossimErrorCodes::OSSIM_ERROR, theCreationDate, ossimErrorStatusInterface::theErrorStatus, theField10, theField11, theField12, theField13, theField14, theField2, theField4, theField5, theField6, theField9, theFilename, theRecSen, theStartOffset, theStopOffset, and theVersion.
Referenced by ossimDtedInfo::open(), and ossimDtedHdr().
std::ostream & ossimDtedHdr::print | ( | std::ostream & | out, |
const std::string & | prefix | ||
) | const |
print method that outputs a key/value type format adding prefix to keys.
out | String to output to. |
prefix | This will be prepended to key. e.g. Where prefix = "nitf." and key is "file_name" key becomes: "nitf.file_name:" |
Definition at line 148 of file ossimDtedHdr.cpp.
References theCreationDate, theField10, theField11, theField12, theField13, theField14, theField2, theField4, theField5, theField6, theField9, theFilename, theRecSen, and theVersion.
Referenced by operator<<(), and ossimDtedInfo::print().
ossimString ossimDtedHdr::recognitionSentinel | ( | ) | const |
ossim_int32 ossimDtedHdr::startOffset | ( | ) | const |
ossim_int32 ossimDtedHdr::stopOffset | ( | ) | const |
ossimString ossimDtedHdr::version | ( | ) | const |
|
friend |
Definition at line 142 of file ossimDtedHdr.cpp.
|
private |
Definition at line 117 of file ossimDtedHdr.h.
Referenced by creationDate(), parse(), and print().
|
private |
Definition at line 119 of file ossimDtedHdr.h.
|
private |
Definition at line 120 of file ossimDtedHdr.h.
|
private |
Definition at line 121 of file ossimDtedHdr.h.
|
private |
Definition at line 122 of file ossimDtedHdr.h.
|
private |
Definition at line 123 of file ossimDtedHdr.h.
|
private |
Definition at line 111 of file ossimDtedHdr.h.
|
private |
Definition at line 113 of file ossimDtedHdr.h.
|
private |
Definition at line 114 of file ossimDtedHdr.h.
|
private |
Definition at line 115 of file ossimDtedHdr.h.
|
private |
Definition at line 118 of file ossimDtedHdr.h.
|
private |
Definition at line 112 of file ossimDtedHdr.h.
Referenced by fileName(), parse(), and print().
|
private |
Definition at line 110 of file ossimDtedHdr.h.
Referenced by parse(), print(), and recognitionSentinel().
|
private |
Definition at line 125 of file ossimDtedHdr.h.
Referenced by parse(), and startOffset().
|
private |
Definition at line 126 of file ossimDtedHdr.h.
Referenced by parse(), and stopOffset().
|
private |
Definition at line 116 of file ossimDtedHdr.h.