rllib  1
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 {
26  char *line;
28 
78 
82 
87 {
88 public:
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);
102  FILE *fin;
105 };
106 #endif
struct _rlHistoryReaderLine_ rlHistoryReaderLine
int read(const char *csvName, rlTime *start, rlTime *end)
virtual ~rlHistoryReader()
const char * nextLine()
rlHistoryReaderLine * current_line
const char * firstLine()
rlHistoryReaderLine * first_line
int cat(const char *csvName, FILE *fout)
int pushLineToMemory(const char *line)
Definition: rltime.h:25
_rlHistoryReaderLine_ * next