VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
csvParser.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
7 
9 
10 #pragma once
11 
13 #include <matrix/vlVector.h>
14 
15 struct ParsedItem
16 {
17  DtGeodeticCoord myLocation;
18  std::string myName;
19 };
20 
22 {
23 
24 public:
25  DtCsvParser();
26 public:
27  ~DtCsvParser();
28 
29 public:
30 
33  virtual bool parse(istream& stream);
34 
38  virtual void createObjectList(std::string name= "");
39 
40  const std::vector<ParsedItem> & items();
41 
42 protected:
43 
44  virtual bool parseLocation(vector<string> tokens, DtGeodeticCoord & geodLoc);
45 
46 protected:
47 
50  std::vector<ParsedItem> myParsedItems;
51 };
52 

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)