VR-Forces 4.6.1 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 

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)