VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
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 Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)