|
rllib
1
|
00001 /*************************************************************************** 00002 rlfileload.h - description 00003 ------------------- 00004 begin : Fri Jul 28 2006 00005 copyright : (C) 2006 by Rainer Lehrig 00006 email : lehrig@t-online.de 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This library is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as * 00013 * published by the Free Software Foundation * 00014 * * 00015 ***************************************************************************/ 00016 #ifndef _RL_FILE_LOAD_H_ 00017 #define _RL_FILE_LOAD_H_ 00018 00019 #include "rldefine.h" 00020 00021 typedef struct _rlFileLines_ 00022 { 00023 char *line; 00024 struct _rlFileLines_ *next; 00025 }rlFileLines; 00026 00031 class rlFileLoad 00032 { 00033 public: 00034 rlFileLoad(); 00035 virtual ~rlFileLoad(); 00036 int load(const char *filename); 00037 void unload(); 00038 const char *firstLine(); 00039 const char *nextLine(); 00040 void setDebug(int state); 00041 private: 00042 int loaded; 00043 int debug; 00044 rlFileLines file_lines; 00045 rlFileLines *current_line; 00046 }; 00047 00048 #endif
1.7.5.1