OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimJp2Info.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: JP2 Info object.
10 //
11 //----------------------------------------------------------------------------
12 // $Id: ossimJp2Info.h 23220 2015-04-04 15:39:49Z dburken $
13 #ifndef ossimJp2Info_HEADER
14 #define ossimJp2Info_HEADER 1
15 
17 
22 {
23 public:
24 
26  enum
27  {
28  SIGNATURE_BOX_SIZE = 12,
29  GEOTIFF_UUID_SIZE = 16
30  };
31 
33  ossimJp2Info();
34 
36  virtual ~ossimJp2Info();
37 
45  virtual bool open(const ossimFilename& file);
46 
54  virtual std::ostream& print(std::ostream& out) const;
55 
70  std::streamoff getBox( const ossim_uint32 type,
71  bool includeAll,
72  std::vector<ossim_uint8>& box ) const;
73 
88  std::streamoff getBox( const ossim_uint32& type,
89  bool includeAll,
90  std::ifstream& str,
91  std::vector<ossim_uint8>& box ) const;
98  std::streamoff getGeotiffBox( std::ifstream& str,
99  std::vector<ossim_uint8>& box ) const;
100 
106  std::streamoff getGmlBox( std::ifstream& str,
107  std::vector<ossim_uint8>& box ) const;
108 
117  std::streamoff findBoxData( const ossim_uint32& type,
118  std::ifstream& str,
119  ossim_uint32& length ) const;
120 
121 protected:
122 
124  void printTboxType( ossim_uint32 tbox, std::ostream& out) const;
125 
127  void readUInt32(ossim_uint32& i, std::ifstream& str) const;
128 
130  void readUInt64(ossim_uint64& i, std::ifstream& str) const;
131 
132 };
133 
134 #endif /* End of "#ifndef ossimJp2Info_HEADER" */
TIFF info class.
Definition: ossimJ2kInfo.h:27
std::basic_ifstream< char > ifstream
Class for char input file streams.
Definition: ossimIosFwd.h:44
JP2 info class.
Definition: ossimJp2Info.h:21
unsigned long long ossim_uint64
unsigned int ossim_uint32
virtual bool open(const ossimFilename &file)
open method.
virtual std::ostream & print(std::ostream &out) const
Print method.
#define OSSIM_DLL
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23