Module Adaptor.SimpleFlatFile


module SimpleFlatFile: sig .. end
Adaptor module for simple flat file tables. Handles blank lines, comments, and capping the number of fields.

val adaptor : ?comments:string ->
?blanks:bool ->
?max:int ->
char ->
(< delim : Line.absent; fstab : 'a; group : 'b; key_value : 'c; mailcap : 'd;
passwd : 'e; ps : 'f; seq : 'g; source : 'h; stat : 'i > ->
< delim : < names : Line.absent; options : Line.present >; fstab : 'a;
group : 'b; key_value : 'c; mailcap : 'd; passwd : 'e; ps : 'f; seq : 'g;
source : 'h; stat : 'i >)
Adaptor.adaptor
Split lines into Line.Delim. If comment is given (default None), lines starting with comment (ignoring leading white space) are considered comment lines and are ignored by the reader. If blanks is true (default true), lines consisting entirely of white space are ignored by the record reader. If max is given, then only max fields will be produced, and the last field may contain record separatos. The final char argument is the field separator.
val fitting : ?comments:string ->
?blanks:bool ->
?max:int ->
char ->
(< delim : Line.absent; fstab : 'a; group : 'b; key_value : 'c; mailcap : 'd;
passwd : 'e; ps : 'f; seq : 'g; source : 'h; stat : 'i > ->
< delim : < names : Line.absent; options : Line.present >; fstab : 'a;
group : 'b; key_value : 'c; mailcap : 'd; passwd : 'e; ps : 'f; seq : 'g;
source : 'h; stat : 'i >)
Adaptor.fitting_adaptor
Fitting for simple flat files.
val reader : ?comments:string -> ?blanks:bool -> Reader.t
Record reader for simple flat files. See Adaptor.SimpleFlatFile.adaptor for options.
val splitter : ?max:int ->
char ->
(< delim : Line.absent; fstab : 'a; group : 'b; key_value : 'c; mailcap : 'd;
passwd : 'e; ps : 'f; seq : 'g; source : 'h; stat : 'i > ->
< delim : < names : Line.absent; options : Line.present >; fstab : 'a;
group : 'b; key_value : 'c; mailcap : 'd; passwd : 'e; ps : 'f; seq : 'g;
source : 'h; stat : 'i >)
Adaptor.splitter
Split a simple flat files record. See Adaptor.SimpleFlatFile.adaptor for options.

Functorial Interface


module type SPEC = sig .. end
Input signature for Adaptor.SimpleFlatFile.Make.
module type S = sig .. end
Output signature for Adaptor.SimpleFlatFile.Make.
module Make: 
functor (Spec : SPEC) -> S
Functor to create custom flat file adaptors.
module type SPEC_NAMES = sig .. end
Input signature for Adaptor.SimpleFlatFile.Make_names.
module type S_NAMES = sig .. end
Output signature for Adaptor.SimpleFlatFile.Make.
module Make_names: 
functor (Spec : SPEC_NAMES) -> S_NAMES
Functor to create custom flat file adaptors with field names.