Description: | This package provides the class Serializer, which can be used to generate a snapshot of the current state of the workspace in the form of XOTcl source code. |
Authors: | Gustaf Neumann, Gustaf.Neumann@wu-wien.ac.at |
Date: | $Date: 2004/05/23 22:50:39 $ |
Arguments: | entity: Object or Class |
Description: | Serialize the specified object or class. |
Return: | Object or Class with all currently defined methods, variables, invariants, filters and mixins |
Arguments: | ?-ignoreVarsRE RE?: provide regular expression; matching vars are ignored |
?-ignore obj1 obj2 ...?: provide a list of objects to be omitted | |
Description: |
Serialize all objects and classes that are currently
defined (except the specified omissions and the current
Serializer object).
Examples:
Serializer all -ignoreVarsRE {^::o1::.*text.*$|^::o2::x$}
Serializer all - ignore obj1 obj2 ... |
Return: | script |
Arguments: | objs: Objects to be serialized |
?-ignoreVarsRE RE?: provide regular expression; matching vars are ignored | |
?-ignore obj1 obj2 ...?: provide a list of objects to be omitted | |
?-map list?: translate object names in serialized code | |
Description: |
Serialize object with all child objects (deep operation)
except the specified omissions. For the description of
ignore and igonoreVarsRE see
Serizalizer all. map can be used
in addition to provide pairs of old-string and new-string
(like in the tcl command string map). This option
can be used to regenerate the serialized object under a different
object or under an different name, or to translate relative
object names in the serialized code.
Examples:
Serializer deepSerialize ::a::b::c -map {::a::b ::x::y}
Serializer deepSerialize ::a::b::c -map {::a::b [self]}
Serializer deepSerialize ::a::b::c -map {::a::b::c ${var}} |
Return: | script |
Back to index page.