rllib
1
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
lib
rlhistoryreader.h
Go to the documentation of this file.
1
/***************************************************************************
2
rlhistoryreader.h - description
3
-------------------
4
begin : Wed Dec 06 2006
5
copyright : (C) 2006 by R. Lehrig
6
email : lehrig@t-online.de
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This library is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as *
13
* published by the Free Software Foundation *
14
* *
15
***************************************************************************/
16
#ifndef _RL_HISTORY_READER_H_
17
#define _RL_HISTORY_READER_H_
18
19
#include "
rldefine.h
"
20
#include "
rltime.h
"
21
#include <stdio.h>
22
23
typedef
struct
_rlHistoryReaderLine_
24
{
25
_rlHistoryReaderLine_
*
next
;
26
char
*
line
;
27
}
rlHistoryReaderLine
;
28
78
82
86
class
rlHistoryReader
87
{
88
public
:
89
rlHistoryReader
();
90
virtual
~rlHistoryReader
();
91
int
read
(
const
char
*csvName,
rlTime
*start,
rlTime
*end);
92
const
char
*
firstLine
();
93
const
char
*
nextLine
();
94
int
clean
();
95
int
cat
(
const
char
*csvName, FILE *fout);
96
int
debug
;
97
private
:
98
int
openFile
();
99
int
pushLineToMemory
(
const
char
*line);
100
rlHistoryReaderLine
*
first_line
,*
current_line
;
101
rlTime
time
;
102
FILE *
fin
;
103
int
current_file
;
104
char
*
csv_name
, *
csv_file_name
;
105
};
106
#endif
Generated by
1.8.2