VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
csvReader.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: csvReader.h,v $ $Revision: 1.9 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #pragma once
13 
14 #include <vrfGuiCore/vrfGuiCore.h>
15 
16 #include <fstream>
17 #include <string>
18 
19 namespace makVrf
20 {
23  {
24 
25  public:
26  DtCsvReader( const std::string & filename );
27  virtual ~DtCsvReader();
28 
30  virtual bool readLine();
31 
33  virtual std::string column(int) const;
34 
38  virtual int intVar( int column ) const;
39 
40  virtual void setSeparator(char newSeparator);
41  virtual char separator();
42 
44  virtual int numColumns() const;
45 
46  const std::string& currLine() const;
47 
48  protected:
50  std::string myFile;
51  std::ifstream myTS;
52  std::string myCurrLine;
53  };
54 
55  inline const std::string& DtCsvReader::currLine() const
56  {
57  return myCurrLine;
58  }
59 }
60 
std::string myFile
Definition: csvReader.h:50
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
Inputs data from a comma delimited file format.
Definition: csvReader.h:22
std::ifstream myTS
Definition: csvReader.h:51
char mySeparator
Definition: csvReader.h:49
const std::string & currLine() const
Definition: csvReader.h:55
std::string myCurrLine
Definition: csvReader.h:52

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)