VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
22 {
24  DtEntityType type;
25  int force;
27  std::vector<DtVector> points;
28  double heading;
29  double width;
30  double floor;
31  double ceiling;
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"
46 {
47 public:
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 
89 };
90 
double heading
Object&#39;s location(s) in local coordinates.
Definition: createObjectParser.h:28
double width
Definition: createObjectParser.h:29
bool usingAGL
Definition: createObjectParser.h:34
Coordinate_System * myCoordSystem
Definition: createObjectParser.h:87
This class is the base class for parsing out creation information from various textual formats...
Definition: createObjectParser.h:45
Definition: coordSystem.h:54
Class DtObjectParser is an abstract parser that can be configured to parse object creation informatio...
Definition: createObjectParser.h:21
int activeTime
Definition: createObjectParser.h:32
DtTokenizer myTokenizer
Definition: createObjectParser.h:86
A generic tokenizer class that can be used to read in a stream of data and parse it into tokens...
Definition: tokenizer.h:26
DtString parent
Object&#39;s force type.
Definition: createObjectParser.h:26
std::map< std::string, DtEntityType > ObjectEntityTypeMap
Definition: createObjectParser.h:39
double floor
Definition: createObjectParser.h:30
virtual bool parse(istream &stream)
Derived classes will set up the tokenizer and determine how extract field information for each record...
Definition: createObjectParser.h:57
DtString name
Definition: createObjectParser.h:23
voidpf stream
Definition: ioapi.h:39
std::vector< ObjectInformation * > ObjectList
Map by name of objects in the scenario.
Definition: createObjectParser.h:38
int force
The DIS Enumeration of the object.
Definition: createObjectParser.h:25
std::vector< DtVector > points
Object&#39;s superior or overlay layer.
Definition: createObjectParser.h:27
double ceiling
Object is extruded so grab floor/ceiling.
Definition: createObjectParser.h:31
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
DtEntityType type
The name of the object.
Definition: createObjectParser.h:24
ObjectList myCreateObjectList
vector to keep track of all of the Aco Data that we have parsed
Definition: createObjectParser.h:85
ObjectEntityTypeMap myTypeMap
Definition: createObjectParser.h:88
int deactiveTime
Definition: createObjectParser.h:33

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)