OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimXmpInfo.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: Extensible Metadata Platform (XMP) Info object.
10 //
11 //----------------------------------------------------------------------------
12 // $Id$
13 
14 #ifndef ossimXmpInfo_HEADER
15 #define ossimXmpInfo_HEADER 1
16 
22 #include <string>
23 
24 // Forward class declarations:
25 class ossimDrect;
26 class ossimString;
28 
31 {
32 public:
33 
35  ossimXmpInfo();
36 
38  virtual ~ossimXmpInfo();
39 
47  virtual bool open(const ossimFilename& file);
48 
56  virtual std::ostream& print(std::ostream& out) const;
57 
59  const std::string& getXmpApp1XmlBlock() const;
60 
68  ossimRefPtr<ossimProjection> getProjection(
69  const ossimDrect& imageRect ) const;
70 
77  void getDate( std::string& date ) const;
78 
84  void getMissionId( std::string& mission ) const;
85 
91  void getSensorId( std::string& sensor ) const;
92 
93 private:
94 
101  bool getXmpApp1XmlBlock( std::ifstream& str,
102  std::string& xmpApp1XmlBlock ) const;
103 
112  bool getPath( const ossimString& path,
113  const ossimXmlDocument& xdoc,
114  ossimString& s ) const;
115 
117  std::string m_xmpApp1XmlBlock;
118 };
119 
120 #endif /* End of "#ifndef ossimXmpInfo_HEADER" */
virtual bool open(const ossimFilename &file)
open method.
std::basic_ifstream< char > ifstream
Class for char input file streams.
Definition: ossimIosFwd.h:44
Info Base.
Definition: ossimInfoBase.h:32
#define OSSIM_DLL
ossimFilename m_file
Definition: ossimXmpInfo.h:116
virtual std::ostream & print(std::ostream &out) const =0
Print method.
bool getPath(const ossimString &path, const ossimXmlDocument *xdoc, ossimString &s)
Gets path from doc and initializes string.
std::string m_xmpApp1XmlBlock
Definition: ossimXmpInfo.h:117
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23