Class ::ws::snapshot::Snapshot

::ws::snapshot::Snapshot[i] create ... \
           [ -elements (default " vars procs nx-objects xotcl-objects ") ] \
           [ -namespace (default "") ]

Class Relations

  • class: ::nx::Class[i]
  • superclass: ::nx::Object[i]
::nx::Class create ::ws::snapshot::Snapshot \
     -superclass ::nx::Object

Methods (to be applied on instances)

  • collect all (scripted)

    foreach e ${:elements} { dict set d $e [:collect $e] }
    return $d
  • diff (scripted)

    set current [:collect all]
    foreach e ${:elements} {
            #puts "START $e: [llength [dict get ${:start} $e]]"
            #puts "NOW   $e: [llength [dict get $current $e]]"
            dict set diff $e [:listDiff [dict get $current $e] [dict get ${:start} $e]]
    }
    return $diff
  • get_delta (scripted)

    set diff [:diff]
    set result ""
    foreach e ${:elements} {
            append result [:save $e [dict get $diff $e]]
    }
    return $result