Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Registration of (sub)formats for use from the command line
This file implements the interface between OCaml defintions of Format and SubFormat module instances and the command line interface of ocp-ocamlres.
Basically, it consists in pre-instanciating the formats:
To associate the extensions with the subformats, it maintains an assiciative table to link the command line name of the subformat to the OCaml implementation (as a packed module).
Same is done with the main format names, and both tables can be extended to the tool can be extended from outside this module (by recompiling it with / dynlinking a module performing a (sub)format registration at toplevel)
module SM : sig ... end
module type Format = sig ... end
The type of format plug-ins
Register a new named format module or override one.
module type SubFormat = sig ... end
The type of subformat plug-ins
Register a new named subformat module or override one.
module Raw : sig ... end
module Int : sig ... end
module Lines : sig ... end
module PredefOptions : sig ... end
Command line options common to OCaml output predefined modules.
module ExtensionDispatcherSubFormat : sig ... end
Output subformat dispatching the output depending on file extensions and the command line options. To be polymorphic, the t
type is a string containing the raw resource representation, and the from_raw
method of the selected subformat is used at every operation.
module OCaml : sig ... end
Instance of the OCaml format
module Res : sig ... end
Instance of the Res format
module Files : sig ... end
Instance of the Files format