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
10
11
#include <fstream>
12
#include <
omtReader/omtReader.h
>
13
#include <
vlutil/vlString.h
>
14
#include <
vlutil/vlFilename.h
>
15
16
#ifdef DtUSE_UTILITIES_NAMESPACE
17
namespace
DtUSE_UTILITIES_NAMESPACE
18
{
19
#endif
20
23
class
DT_DLL_OMTREADER
DtCSVReader
24
{
25
26
public
:
27
DtCSVReader
(
const
DtFilename
& filename );
28
virtual
~
DtCSVReader
();
29
31
virtual
bool
readLine();
32
35
virtual
DtString
stringVar(
int
start,
int
end )
const
;
36
40
virtual
int
intVar(
int
pos,
bool
* validNum )
const
;
41
42
virtual
void
setSeparator(
char
newSeparator);
43
virtual
char
separator();
44
46
virtual
int
numColumns()
const
;
47
48
const
DtString
& currLine()
const
;
49
50
protected
:
51
char
mySeparator
;
52
DtFilename
myFile
;
53
std::ifstream
myTS
;
54
bool
myValidFile
;
55
DtString
myCurrLine
;
56
};
57
58
inline
const
DtString
&
DtCSVReader::currLine
()
const
59
{
60
return
myCurrLine;
61
}
62
63
#ifdef DtUSE_UTILITIES_NAMESPACE
64
}
65
#endif
66
Document ID: Generated on Fri May 15 06:36:13 EDT 2015 from SVN revision 153263
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)