Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

stringfile.h

Go to the documentation of this file.
00001 #ifndef STRINGFILE_H
00002 #define STRINGFILE_H
00003 
00004 
00005 // Line based reading and writing from text files or arrays.
00006 // Use for extracting databases.
00007 #include "units.h"
00008 
00009 class StringFile
00010 {
00011 public:
00012         StringFile(long length = 0);
00013         StringFile(char *filename);
00014         virtual ~StringFile();
00015 
00016         int readline();   // read next line from string
00017         int readline(char *arg2);   // read next line from string
00018         int readline(long *arg2);   // read next line from string
00019         int readline(int *arg2);   // read next line from string
00020         int readline(float *arg2);   // read next line from string
00021         int readline(Freq *arg2);   // read next line from string
00022 
00023         int readline(char *arg1, char *arg2);   // read next line from string
00024         int readline(char *arg1, long *arg2);   // read next line from string
00025         int readline(char *arg1, int *arg2);   // read next line from string
00026         int readline(char *arg1, float *arg2);   // read next line from string
00027         int writeline(char *arg1, int indent);   // write next line to string
00028         int writeline(char *arg1, char *arg2, int indent);   // write next line to string
00029         int writeline(char *arg1, long arg2, int indent);   // write next line to string
00030         int writeline(char *arg1, int arg2, int indent);   // write next line to string
00031         int writeline(char *arg1, float arg2, int indent);   // write next line to string
00032         int writeline(char *arg1, Freq arg2, int indent);   // write next line to string
00033         int backupline();       // move back one line
00034 
00035         long get_length();
00036         long get_pointer();
00037         int write_to_file(char *filename);
00038         int read_from_string(char *string);
00039 
00040         char *string;
00041         long pointer, length, available;
00042         char string1[1024];      // general purpose strings
00043 };
00044 
00045 #endif

Generated on Sun Jan 8 13:26:35 2006 for Guicast-svn by  doxygen 1.4.4