OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimJ2kInfo.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: J2K Info object.
10 //
11 //----------------------------------------------------------------------------
12 // $Id$
13 #ifndef ossimJ2kInfo_HEADER
14 #define ossimJ2kInfo_HEADER
15 
19 
20 class ossimEndian;
21 
28 {
29 public:
30 
32  ossimJ2kInfo();
33 
35  virtual ~ossimJ2kInfo();
36 
44  virtual bool open(const ossimFilename& file);
45 
53  virtual std::ostream& print(std::ostream& out) const;
54 
55 protected:
56 
58  void readUInt16(ossim_uint16& s, std::ifstream& str) const;
59 
70  std::ostream& printCodMarker(std::ostream& out,
71  const std::string& prefix,
72  std::ifstream& str) const;
73 
84  std::ostream& printSizMarker(std::ostream& out,
85  const std::string& prefix,
86  std::ifstream& str) const;
87 
98  std::ostream& printSotMarker(std::ostream& out,
99  const std::string& prefix,
100  std::ifstream& str) const;
101 
114  std::ostream& printUnknownMarker(std::ostream& out,
115  const std::string& prefix,
116  std::ifstream& str,
117  ossim_uint16 marker) const;
118 
119 
122 };
123 
124 #endif /* End of "#ifndef ossimJ2kInfo_HEADER" */
virtual bool open(const ossimFilename &file)
open method.
ossimFilename m_file
Definition: ossimJ2kInfo.h:120
TIFF info class.
Definition: ossimJ2kInfo.h:27
std::basic_ifstream< char > ifstream
Class for char input file streams.
Definition: ossimIosFwd.h:44
ossimEndian * m_endian
Definition: ossimJ2kInfo.h:121
unsigned short ossim_uint16
Info Base.
Definition: ossimInfoBase.h:32
#define OSSIM_DLL
virtual std::ostream & print(std::ostream &out) const =0
Print method.
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23