OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimWkt.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:
10 //
11 // ossimWkt class declaration. A well known text(WKT) utility class.
12 //
13 //----------------------------------------------------------------------------
14 // $Id$
15 
16 #ifndef ossimWkt_HEADER
17 #define ossimWkt_HEADER 1
18 
21 
22 #include <iosfwd>
23 #include <string>
24 #include <vector>
25 
69 {
70 public:
71 
73  ossimWkt();
74 
76  ~ossimWkt();
77 
82  bool parse( const std::string& wkt );
83 
85  const ossimKeywordlist& getKwl() const;
86 
87 private:
88  bool parseWktGroup( std::istringstream& is, ossimKeywordlist& kwl );
89 
90  bool parseObject( std::istringstream& is,
91  const std::string& prefix,
92  const std::string& object,
93  ossimKeywordlist& kwl );
94 
95  bool parseName( std::istringstream& is,
96  const std::string& prefix,
97  const std::string& object,
98  ossimKeywordlist& kwl );
99 
100  bool parseParam( std::istringstream& is,
101  const std::string& prefix,
102  const std::string& object,
103  ossim_uint32& objectIndex,
104  ossim_uint32& paramIndex,
105  ossimKeywordlist& kwl );
106 
108 
109 };
110 
111 #endif /* End of "#ifndef ossimWkt_HEADER" */
Represents serializable keyword/value map.
unsigned int ossim_uint32
Utility/support data class to parse WKT text string to an ossimKeywordlist.
Definition: ossimWkt.h:68
ossimKeywordlist m_kwl
Definition: ossimWkt.h:107
#define OSSIM_DLL
std::basic_istringstream< char > istringstream
Class for char input memory streams.
Definition: ossimIosFwd.h:32