rllib
1
lib
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
;
25
struct
_rlFileLines_
*
next
;
26
}
rlFileLines
;
27
32
class
rlFileLoad
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
;
46
rlFileLines
file_lines
;
47
rlFileLines
*
current_line
;
48
};
49
50
#endif
rlFileLoad::~rlFileLoad
virtual ~rlFileLoad()
Definition:
rlfileload.cpp:28
rlFileLoad::unload
void unload()
Definition:
rlfileload.cpp:63
rlFileLoad::current_line
rlFileLines * current_line
Definition:
rlfileload.h:47
_rlFileLines_::line
char * line
Definition:
rlfileload.h:24
rlFileLoad::file_lines
rlFileLines file_lines
Definition:
rlfileload.h:46
rlFileLoad
Definition:
rlfileload.h:32
rlFileLoad::text2rlstring
int text2rlstring(rlString &rlstring)
Definition:
rlfileload.cpp:106
rlFileLoad::load
int load(const char *filename)
Definition:
rlfileload.cpp:33
rlFileLoad::loaded
int loaded
Definition:
rlfileload.h:44
_rlFileLines_
Definition:
rlfileload.h:22
rlFileLoad::nextLine
const char * nextLine()
Definition:
rlfileload.cpp:91
rlString
Definition:
rlstring.h:27
rlFileLoad::firstLine
const char * firstLine()
Definition:
rlfileload.cpp:81
rlFileLoad::setDebug
void setDebug(int state)
Definition:
rlfileload.cpp:100
rlstring.h
rldefine.h
rlFileLoad::rlFileLoad
rlFileLoad()
Definition:
rlfileload.cpp:20
rlFileLoad::debug
int debug
Definition:
rlfileload.h:45
_rlFileLines_::next
struct _rlFileLines_ * next
Definition:
rlfileload.h:25
rlFileLines
struct _rlFileLines_ rlFileLines
Generated by
1.8.14