VR-Forces 4.2 Class Documentation
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 

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)