OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimNitfUnknownTag.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // License: MIT
4 //
5 // See LICENSE.txt file in the top level directory for more details.
6 //
7 // Author: David Burken
8 //
9 // Description: Unknown tag class declaration.
10 //
11 // Note: By "unknown" this means that the tag name was not found in any of
12 // the tag factories.
13 //
14 //----------------------------------------------------------------------------
15 // $Id: ossimNitfUnknownTag.h 22013 2012-12-19 17:37:20Z dburken $
16 #ifndef ossimNitfUnknownTag_HEADER
17 #define ossimNitfUnknownTag_HEADER 1
18 
20 
22 {
23 public:
26 
28  virtual ~ossimNitfUnknownTag();
29 
36  virtual void parseStream(std::istream& in);
37 
43  virtual void writeStream(std::ostream& out);
44 
48  virtual void clearFields();
49 
54  virtual std::ostream& print(std::ostream& out,
55  const std::string& prefix=std::string()) const;
56 
66  virtual void setTagLength(ossim_uint32 length);
67 
68 protected:
69 
73  bool tagDataIsAscii() const;
74  bool tagDataIsXml() const;
75 
79  char* m_tagData;
80 
81 TYPE_DATA
82 };
83 
84 #endif /* End of "#ifndef ossimNitfUnknownTag_HEADER" */
virtual void writeStream(ossim::ostream &out)=0
char * m_tagData
Holds entire tag data(theTagLength) plus one byte for null terminator.
virtual void parseStream(ossim::istream &in)=0
This will allow the user defined data to parse the stream.
virtual std::ostream & print(std::ostream &out, const std::string &prefix=std::string()) const
Pure virtual print method that outputs a key/value type format adding prefix to keys.
virtual void setTagLength(ossim_uint32 length)
Set the tag length.
#define TYPE_DATA
Definition: ossimRtti.h:339
unsigned int ossim_uint32
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
#define OSSIM_DLL
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23