r1010: Save mask point coordinates using %g instead of %e to save space.
[cinelerra_cv/ct.git] / guicast / stringfile.h
blobd68ed0ca5f448335a65e7a4a15e33d0a8ab1c0af
1 #ifndef STRINGFILE_H
2 #define STRINGFILE_H
5 // Line based reading and writing from text files or arrays.
6 // Use for extracting databases.
7 #include "units.h"
9 class StringFile
11 public:
12 StringFile(long length = 0);
13 StringFile(char *filename);
14 virtual ~StringFile();
16 int readline(); // read next line from string
17 int readline(char *arg2); // read next line from string
18 int readline(long *arg2); // read next line from string
19 int readline(int *arg2); // read next line from string
20 int readline(float *arg2); // read next line from string
21 int readline(Freq *arg2); // read next line from string
23 int readline(char *arg1, char *arg2); // read next line from string
24 int readline(char *arg1, long *arg2); // read next line from string
25 int readline(char *arg1, int *arg2); // read next line from string
26 int readline(char *arg1, float *arg2); // read next line from string
27 int writeline(char *arg1, int indent); // write next line to string
28 int writeline(char *arg1, char *arg2, int indent); // write next line to string
29 int writeline(char *arg1, long arg2, int indent); // write next line to string
30 int writeline(char *arg1, int arg2, int indent); // write next line to string
31 int writeline(char *arg1, float arg2, int indent); // write next line to string
32 int writeline(char *arg1, Freq arg2, int indent); // write next line to string
33 int backupline(); // move back one line
35 long get_length();
36 long get_pointer();
37 int write_to_file(char *filename);
38 int read_from_string(char *string);
40 char *string;
41 long pointer, length, available;
42 char string1[1024]; // general purpose strings
45 #endif