VR-Forces 4.6 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
vrfutil
createObjectParser.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2017 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
7
10
11
#pragma once
12
13
#include "
vrfutil/tokenizer.h
"
14
#include <vlpi/entityType.h>
15
#include <vlutil/vlString.h>
16
#include <matrix/vlVector.h>
17
#include <map>
18
19
#include <
terrainCS/coordSystem.h
>
20
21
struct
ObjectInformation
22
{
23
DtString
name
;
24
DtEntityType
type
;
25
int
force
;
26
DtString
parent
;
27
std::vector<DtVector>
points
;
28
double
heading
;
29
double
width
;
30
double
floor
;
31
double
ceiling
;
32
int
activeTime
;
33
int
deactiveTime
;
34
bool
usingAGL
;
35
};
36
38
typedef
std::vector<ObjectInformation*>
ObjectList
;
39
typedef
std::map<std::string, DtEntityType>
ObjectEntityTypeMap
;
40
41
#include "
vrfutil/vrfutilDefines.h
"
45
class
DT_DLL_vrfutil
DtObjectParser
46
{
47
public
:
48
DtObjectParser
();
49
~
DtObjectParser
();
50
51
public
:
52
54
virtual
bool
parseFile(
const
string
&
filename
);
55
57
virtual
bool
parse
(istream&
stream
){
return
false
; };
58
61
virtual
ObjectList
& getCreateObjectList();
62
64
virtual
void
initTypeMap(
const
std::map<std::string, std::string>& importData);
65
66
virtual
ObjectEntityTypeMap
* typeMap();
67
68
protected
:
69
76
void
setSeparatorData(
const
string
& recordSeparator,
const
string
& fieldSeparators,
77
const
string
& quoteChars,
const
string
& escapeChars);
78
80
virtual
void
clear();
81
82
protected
:
83
85
ObjectList
myCreateObjectList
;
86
DtTokenizer
myTokenizer
;
87
Coordinate_System
*
myCoordSystem
;
88
ObjectEntityTypeMap
myTypeMap
;
89
};
90
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)