GEOS
3.9.1dev
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
include
geos
io
StringTokenizer.h
Go to the documentation of this file.
1
/**********************************************************************
2
*
3
* GEOS - Geometry Engine Open Source
4
* http://geos.osgeo.org
5
*
6
* Copyright (C) 2005-2006 Refractions Research Inc.
7
* Copyright (C) 2001-2002 Vivid Solutions Inc.
8
*
9
* This is free software; you can redistribute and/or modify it under
10
* the terms of the GNU Lesser General Public Licence as published
11
* by the Free Software Foundation.
12
* See the COPYING file for more information.
13
*
14
**********************************************************************
15
*
16
* Last port: ORIGINAL WORK
17
*
18
**********************************************************************/
19
20
#ifndef GEOS_IO_STRINGTOKENIZER_H
21
#define GEOS_IO_STRINGTOKENIZER_H
22
23
#include <
geos/export.h
>
24
25
#include <string>
26
27
#ifdef _MSC_VER
28
#pragma warning(push)
29
#pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
30
#endif
31
32
namespace
geos
{
33
namespace
io {
34
35
class
GEOS_DLL
StringTokenizer
{
36
public
:
37
enum
{
38
TT_EOF
,
39
TT_EOL
,
40
TT_NUMBER
,
41
TT_WORD
42
};
43
//StringTokenizer();
44
explicit
StringTokenizer
(
const
std::string& txt);
45
~StringTokenizer
() {}
46
int
nextToken();
47
int
peekNextToken();
48
double
getNVal();
49
std::string getSVal();
50
private
:
51
const
std::string&
str
;
52
std::string
stok
;
53
double
ntok
;
54
std::string::const_iterator
iter
;
55
56
// Declare type as noncopyable
57
StringTokenizer
(
const
StringTokenizer
& other) =
delete
;
58
StringTokenizer
& operator=(
const
StringTokenizer
& rhs) =
delete
;
59
};
60
61
}
// namespace io
62
}
// namespace geos
63
64
#ifdef _MSC_VER
65
#pragma warning(pop)
66
#endif
67
68
#endif // #ifndef GEOS_IO_STRINGTOKENIZER_H
GEOS_DLL
#define GEOS_DLL
Definition:
export.h:28
geos::io::StringTokenizer::TT_NUMBER
Definition:
StringTokenizer.h:40
export.h
geos::io::StringTokenizer::str
const std::string & str
Definition:
StringTokenizer.h:51
geos::io::StringTokenizer::TT_EOL
Definition:
StringTokenizer.h:39
geos::io::StringTokenizer::iter
std::string::const_iterator iter
Definition:
StringTokenizer.h:54
geos::io::StringTokenizer::ntok
double ntok
Definition:
StringTokenizer.h:53
geos::io::StringTokenizer::~StringTokenizer
~StringTokenizer()
Definition:
StringTokenizer.h:45
geos::io::StringTokenizer::stok
std::string stok
Definition:
StringTokenizer.h:52
geos
Basic namespace for all GEOS functionalities.
Definition:
IndexedNestedRingTester.h:26
geos::io::StringTokenizer::TT_EOF
Definition:
StringTokenizer.h:38
geos::io::StringTokenizer
Definition:
StringTokenizer.h:35
Generated by
1.8.11