6 /**a "const" Array. Contents can't be changed. do "#" comments, read quote enclosed fields */
8 class Text_record
: Array
<String
>
14 Text_record() { } // needed because of other ctor
16 /// report an error in this line.
18 cerr
<< '\n'<< filename
<< ": "<< line_no
<< s
<< "\n";
20 String
operator[](int j
) {
21 return Array
<String
>::operator[](j
);
24 Text_record(Array
<String
> s
, String fn
, int j
) : Array
<String
>(s
) {
25 filename
= fn
; line_no
= j
;
30 /** abstraction for a datafile.
31 add a subrec/fieldsep/record separator
34 class Text_db
: private Data_file
36 void gobble_leading_white();
38 /// get a line with records
39 Text_record
get_record();
41 Text_db(String fn
):Data_file(fn
) { }
46 Text_record
operator++(int) {