75 const std::string& prefix)
const 77 std::string pfx = prefix;
81 out << setiosflags(std::ios::left)
82 << pfx << std::setw(24) <<
"CETAG:" <<
getTagName() <<
"\n" 83 << pfx << std::setw(24) <<
"CEL:" <<
getTagLength() <<
"\n" 84 << pfx << std::setw(24) <<
"unformatted_tag_data: ";
89 out <<
"<![CDATA[" <<
m_tagData <<
"]]>" <<
"\n";
95 out <<
"binary not displayed\n";
111 if (tagDataString == xmlTest)
return true;
135 if (isascii(c) ==
false)
virtual void clearFields()
Clears all string fields within the record to some default nothingness.
virtual const std::string & getTagName() const
This will return the name of the registered tag for this user defined header.
ossimNitfUnknownTag()
default constructor
bool tagDataIsXml() const
char * m_tagData
Holds entire tag data(theTagLength) plus one byte for null terminator.
virtual void parseStream(std::istream &in)
Parse method.
virtual ossim_uint32 getTagLength() const
Returns the length in bytes of the tag from the CEL or REL field.
std::string::size_type length() const
unsigned int ossim_uint32
virtual void setTagLength(ossim_uint32 length)
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.
RTTI_DEF1(ossimNitfUnknownTag, "ossimNitfUnknownTag", ossimNitfRegisteredTag)
virtual void writeStream(std::ostream &out)
Write method.
std::basic_istream< char > istream
Base class for char input streams.
virtual ~ossimNitfUnknownTag()
destructor
std::string substr(std::string::size_type pos=0, std::string::size_type n=std::string::npos) const
Equivalent to basic_string(*this, pos, n).
bool tagDataIsAscii() const
std::basic_ostream< char > ostream
Base class for char output streams.