OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimNitfProjectionParameterTag.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: Garrett Potts
8 // Description: Nitf support class
9 //
10 //********************************************************************
11 // $Id: ossimNitfProjectionParameterTag.h 22013 2012-12-19 17:37:20Z dburken $
12 
13 #ifndef ossimNitfProjectionParameterTag_HEADER
14 #define ossimNitfProjectionParameterTag_HEADER
15 #include <vector>
17 
19 {
20 public:
23 
24  virtual void parseStream(std::istream& in);
25  virtual void writeStream(std::ostream& out);
26 
33  virtual std::ostream& print(std::ostream& out,
34  const std::string& prefix=std::string()) const;
35 
36  virtual ossim_uint32 getSizeInBytes()const;
37  virtual void clearFields();
38  virtual void clearParameters();
39  virtual void addParameter(const ossimString& param);
40  virtual void addParameter(const ossim_float64& param);
41  void setName(const ossimString& name);
42  void setCode(const ossimString& code);
43  ossimString getName()const;
44  ossimString getCode()const;
45  void setFalseX(double falseX);
46  void setFalseY(double falseY);
47  double getFalseX()const;
48  double getFalseY()const;
49 
50 protected:
61  char theProjectionName[81];
62 
274  char theProjectionCode[3];
275 
290  char theNumberOfParameters[2];
291 
301  std::vector<ossimString> theProjectionParameters;
302 
314  char theFalseXOrigin[16];
315 
316 
329  char theFalseYOrigin[16];
330 };
331 
332 #endif
virtual void writeStream(ossim::ostream &out)=0
virtual void parseStream(ossim::istream &in)=0
This will allow the user defined data to parse the stream.
std::vector< ossimString > theProjectionParameters
FIELD(S): PRJn.
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.
double ossim_float64
unsigned int ossim_uint32
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
#define OSSIM_DLL
virtual ossim_uint32 getSizeInBytes() const
Returns the length in bytes of the tag from the CEL or REL field.
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23