Class Vdf.book


class book : Vdfintern.group_tree -> object .. end
Main class: represents a VDF hierarchy

val crumbs : Vdfintern.group_tree list Pervasives.ref
Stack of successive positions within the tree
method point : Vdfintern.group_tree
Get current point within the tree
method save_as : string -> unit
Save the current configuration file under a different name
method save : unit -> unit
Save the current configuration file. Overwrites old version. Formatting information and comments will be lost.
method path : string
Filepath associated to the book

Moving around

method to_root : unit -> unit
Go back to the root of the file
method move : string -> unit
Move into a subgroup
method moveup : unit -> unit
Move to parent group
method slide : string -> unit
Move to sibling group
method jump : string -> unit
Move to a position in the hierarchy. Same notation as Unix: . = current position, .. = parent, / separator, root.
method wd : string
String representing current path
method listsubs : string list
List of names of available subgroups at current point
method listvals : string list
List of names of available values at current point
method extract : ?newpath:string -> unit -> book
Create another book taking root at the current point

Getters

method getval : string -> string
Get a value in current context
method get : string -> string
Alias for getval
method getlst : string -> string list
Get a list value (multivalue) in current context
method getass : string -> (string, string) Toolkit.H.t
Get hashtable corresponding to association in current context
method getfun : string -> string -> string
Get function corresponding to association at current point
method getmfun : string -> string -> string list
Get multifunction corresponding to association at current point