Shapes
GIS made easy, a lightweight header-only planar geometry library for Modern C++
Public Member Functions | List of all members
simo::shapes::wkt_lexer Class Reference

A wkt lexer. More...

#include <wkt_lexer.hpp>

Public Member Functions

 wkt_lexer (const std::string &source)
 creates a wkt lexer from the given source More...
 
int scan ()
 scan the next token More...
 
std::string get_token () const
 returns the current token string More...
 
size_t get_position ()
 returns the current reading position More...
 

Detailed Description

A wkt lexer.

Since
0.0.1

Definition at line 19 of file wkt_lexer.hpp.

Constructor & Destructor Documentation

simo::shapes::wkt_lexer::wkt_lexer ( const std::string &  source)
inline

creates a wkt lexer from the given source

Parameters
sourcethe source string
Since
0.0.1

Definition at line 29 of file wkt_lexer.hpp.

Member Function Documentation

size_t simo::shapes::wkt_lexer::get_position ( )
inline

returns the current reading position

Returns
the index position
Since
0.0.1

Definition at line 1011 of file wkt_lexer.hpp.

std::string simo::shapes::wkt_lexer::get_token ( ) const
inline

returns the current token string

Returns
the token string
Since
0.0.1

Definition at line 1000 of file wkt_lexer.hpp.

int simo::shapes::wkt_lexer::scan ( )
inline

scan the next token

Returns
the numeric token identifier
Since
0.0.1

pointer for backtracking information

Definition at line 42 of file wkt_lexer.hpp.


The documentation for this class was generated from the following file: