package ocp-ocamlres
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=658c2990e027e1e43a16290fd431f08c96b8630d91ac2b98003a9bc027179679
md5=725eb557e659c6febf8dc3044b323bd8
doc/ocplib-ocamlres/OCamlResRegistry/ExtensionDispatcherSubFormat/index.html
Module OCamlResRegistry.ExtensionDispatcherSubFormat
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. The SubFormat used is resolved using table PredefOptions.subformats.
val from_raw : OCamlRes.Path.t -> string -> tA parser as used by the scanner to obtain the in-memory resources from files.
val to_raw : OCamlRes.Path.t -> t -> stringA dumper to reconstitute the files from the in-memory resources.
val pprint : OCamlRes.Path.t -> t -> PPrint.documentTakes the path to the resource in the resource tree, and its value to pretty print. Returns the OCaml representation of the value.
val pprint_header : OCamlRes.Path.t -> t -> PPrint.document optionProvides an optional piece of OCaml code to put before the resource store definition, for instance a type definition.
Provides an optional piece of OCaml code to put after the resource store definition, for instance a type definition.
val name : OCamlRes.Path.t -> t -> stringA name used to identify the subformat.
val type_name : OCamlRes.Path.t -> t -> stringval mod_name : OCamlRes.Path.t -> t -> stringThe name of the subformat module at run-time. If the static type t is the same as the runtime type returned by type_abbrv, this is simply the path to the module used for generation.