rllib  1
rlfileload.h
Go to the documentation of this file.
1 /***************************************************************************
2  rlfileload.h - description
3  -------------------
4  begin : Fri Jul 28 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_FILE_LOAD_H_
17 #define _RL_FILE_LOAD_H_
18 
19 #include "rldefine.h"
20 #include "rlstring.h"
21 
22 typedef struct _rlFileLines_
23 {
24  char *line;
27 
33 {
34  public:
35  rlFileLoad();
36  virtual ~rlFileLoad();
37  int load(const char *filename);
38  void unload();
39  const char *firstLine();
40  const char *nextLine();
41  void setDebug(int state);
42  int text2rlstring(rlString &rlstring);
43  private:
44  int loaded;
45  int debug;
48 };
49 
50 #endif
virtual ~rlFileLoad()
Definition: rlfileload.cpp:28
void unload()
Definition: rlfileload.cpp:63
rlFileLines * current_line
Definition: rlfileload.h:47
char * line
Definition: rlfileload.h:24
rlFileLines file_lines
Definition: rlfileload.h:46
int text2rlstring(rlString &rlstring)
Definition: rlfileload.cpp:106
int load(const char *filename)
Definition: rlfileload.cpp:33
int loaded
Definition: rlfileload.h:44
const char * nextLine()
Definition: rlfileload.cpp:91
const char * firstLine()
Definition: rlfileload.cpp:81
void setDebug(int state)
Definition: rlfileload.cpp:100
struct _rlFileLines_ * next
Definition: rlfileload.h:25
struct _rlFileLines_ rlFileLines