VR-Forces 4.6.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vantageTerrainImplementation
surfaceCharacteristicsMap.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2015 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
10
11
#pragma once
12
13
#include <vlutil/vlFilename.h>
14
#include <vlutil/vlString.h>
15
16
#include <
geometry/surface.h
>
17
18
#include <boost/unordered_map.hpp>
19
#include <set>
20
21
#include <sstream>
22
#include <string>
23
24
namespace
makVrf {
25
class
DtSurfaceCharacteristicMap
26
{
27
public
:
28
29
class
Entry
30
{
31
public
:
32
//virtual ~Entry();
33
34
virtual
bool
matches
(
const
DtString
& str)
const
= 0;
35
virtual
DtSurface::DtCharacteristics
characteristics
()
const
= 0;
36
virtual
int
position
()
const
= 0;
37
};
38
40
DtSurfaceCharacteristicMap
();
41
43
virtual
~DtSurfaceCharacteristicMap
();
44
46
virtual
bool
init
(
const
DtFilename
filename
,
bool
displayWarning =
false
);
47
49
virtual
bool
characteristicsFromString
(
const
char
* str,
50
unsigned
int
& characteristics,
int
& position,
int
& matchClass);
51
52
virtual
void
printResults
(
const
char
* str,
unsigned
int
characteristics,
const
char
* additionalInformation = 0);
53
54
protected
:
56
virtual
bool
get
(std::istream&
stream
);
57
59
virtual
bool
processToken
(std::istream&
stream
,
const
DtString
& token);
60
61
typedef
boost::unordered_map<DtString, boost::shared_ptr<Entry> >
MatchMap
;
62
typedef
std::vector<boost::shared_ptr<Entry> >
EntryList
;
63
64
MatchMap
myExactMatches
;
65
EntryList
myEntries
;
66
67
int
myCurrentPosition
;
68
69
static
const
DtString
theMatchString
;
70
static
const
DtString
theRegExprMatchString
;
71
72
private
:
73
79
std::set<std::string>
myPrintedMessages
;
80
};
81
82
}
Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)