MAK Data Logger API Documentation for HLA
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
lgrOmtReader
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 <
lgrOmtReader/omtReader.h
>
13
#include <vlutil/vlString.h>
14
#include <vlutil/vlFilename.h>
15
16
19
class
DT_DLL_OMTREADER
DtCSVReader
20
{
21
22
public
:
23
DtCSVReader
(
const
DtFilename & filename );
24
virtual
~
DtCSVReader
();
25
27
virtual
bool
readLine();
28
31
virtual
DtString
stringVar(
int
start,
int
end )
const
;
32
36
virtual
int
intVar(
int
pos,
bool
* validNum )
const
;
37
38
virtual
void
setSeparator(
char
newSeparator);
39
virtual
char
separator();
40
42
virtual
int
numColumns()
const
;
43
44
const
DtString
& currLine()
const
;
45
46
protected
:
47
char
mySeparator
;
48
DtFilename
myFile
;
49
std::ifstream
myTS
;
50
bool
myValidFile
;
51
DtString
myCurrLine
;
52
};
53
54
inline
const
DtString
&
DtCSVReader::currLine
()
const
55
{
56
return
myCurrLine
;
57
}
58
Document ID: Generated on Tue Aug 1 09:00:26 EDT 2017 from SVN revision 179128
Copyright © 2017 VT MÄK. All Rights Reserved (
www.mak.com
)