VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
omtReader
csvReader.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
7
#pragma once
8
9
#include <
omtReader/omtReader.h
>
10
#include <QtCore/QFile>
11
#include <QtCore/QTextStream>
12
13
16
class
DT_DLL_OMTREADER
DtCSVReader
17
{
18
19
public
:
20
DtCSVReader
(
const
QString & filename );
21
virtual
~
DtCSVReader
();
22
24
virtual
bool
readLine();
25
28
virtual
QString stringVar(
int
start,
int
end )
const
;
29
33
virtual
int
intVar(
int
pos,
bool
* validNum )
const
;
34
35
virtual
void
setSeparator(
char
newSeparator);
36
virtual
char
separator();
37
39
virtual
int
numColumns()
const
;
40
41
const
QString& currLine()
const
;
42
43
protected
:
44
char
mySeparator
;
45
QFile
myFile
;
46
QTextStream
myTS
;
47
bool
myValidFile
;
48
QString
myCurrLine
;
49
};
50
51
inline
const
QString&
DtCSVReader::currLine
()
const
52
{
53
return
myCurrLine
;
54
}
55
56
Document ID: Generated on Wed Jan 7 13:31:29 EST 2015 from SVN revision 149162
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)