6 /**: do "#" comments, read quote enclosed fields */
8 /// a "const" svec. Contents can't be changed.
9 class Text_record
: svec
<String
>
15 Text_record() { } // needed because of other ctor
17 /// report an error in this line.
19 cerr
<< '\n'<< filename
<< ": "<< line_no
<< s
<< "\n";
21 String
operator[](int j
) {
22 return svec
<String
>::operator[](j
);
25 Text_record(svec
<String
> s
, String fn
, int j
) : svec
<String
>(s
) {
26 filename
= fn
; line_no
= j
;
31 /// abstraction for a datafile
32 class Text_db
: private Data_file
35 /// get a line with records
36 Text_record
get_record();
38 Text_db(String fn
):Data_file(fn
) { }
43 Text_record
operator++(int) {
54 add a subrec/fieldsep/record separator