VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfGuiCore
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
{
22
class
DT_DLL_VRFGUICORE
DtCSVReader
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
:
49
char
mySeparator
;
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 Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)