OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimFgdcTxtDoc.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // File ossimFgdcTxtDoc.h
4 //
5 // License: MIT
6 //
7 // See LICENSE.txt file in the top level directory for more details.
8 //
9 // Author: David Burken
10 //
11 // Description: ossimFgdcTxtDoc class declaration.
12 //
13 // FGDC = "Federal Geographic Data Committee"
14 //
15 // See: http://www.fgdc.gov/
16 //
17 //----------------------------------------------------------------------------
18 // $Id: ossimFgdcTxtDoc.h 2673 2011-06-06 14:57:24Z david.burken $
19 #ifndef ossimFgdcTxtDoc_HEADER
20 #define ossimFgdcTxtDoc_HEADER 1
21 
25 #include <ossim/base/ossimRefPtr.h>
27 
39 {
40 public:
41 
44 
46  virtual ~ossimFgdcTxtDoc();
47 
55  bool open(const ossimFilename& file);
56 
63  void close();
64 
70  void getProjection(ossimRefPtr<ossimProjection>& proj);
71 
76  void getAltitudeDistanceUnits(std::string& units) const;
77 
78 private:
79 
87  void getProjectionV1(std::ifstream& str,
89 
99  bool findKey( std::ifstream& str, const std::string& key);
100 
113  bool findKey( std::ifstream& str,
114  bool seekBack,
115  const std::string& key,
116  std::string& value);
117 
121  void getOssimDatum( const std::string& fgdcDatumString,
122  std::string& ossimDatumCode ) const;
123 
124  // Container for relevant data from FGDC file.
126 
127 }; // End: class ossimFgdcTxtDoc
128 
129 #endif /* #ifndef ossimFgdcTxtDoc_HEADER */
std::basic_ifstream< char > ifstream
Class for char input file streams.
Definition: ossimIosFwd.h:44
ossimReferenced allows for shared object ref counting if the reference count ever gets to 0 or less i...
Support data container for FGDC in text format.
#define OSSIM_DLL
ossimRefPtr< ossimKeywordlist > m_kwl