# ACTIVESTATE TEAPOT-PKG BEGIN TM -*- tcl -*- # -- Tcl Module # @@ Meta Begin # Package tie::std::log 1.0 # Meta as::build::date 2015-05-25 # Meta as::origin http://sourceforge.net/projects/tcllib # Meta license BSD # Meta platform tcl # Meta require {Tcl 8.4} # Meta require log # Meta require snit # Meta require tie # @@ Meta End # ACTIVESTATE TEAPOT-PKG BEGIN REQUIREMENTS package require Tcl 8.4 package require log package require snit package require tie # ACTIVESTATE TEAPOT-PKG END REQUIREMENTS # ACTIVESTATE TEAPOT-PKG BEGIN DECLARE package provide tie::std::log 1.0 # ACTIVESTATE TEAPOT-PKG END DECLARE # ACTIVESTATE TEAPOT-PKG END TM # tie_log.tcl -- # # Data source: /dev/null. Just log changes. # # Copyright (c) 2004 Andreas Kupries # # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # # RCS: @(#) $Id: tie_log.tcl,v 1.3 2005/09/28 04:51:24 andreas_kupries Exp $ # ### ### ### ######### ######### ######### ## Requisites package require snit package require log package require tie # ### ### ### ######### ######### ######### ## Implementation package require snit snit::type ::tie::std::log { # ### ### ### ######### ######### ######### ## Specials pragma -hastypemethods no pragma -hasinfo no pragma -simpledispatch yes # ### ### ### ######### ######### ######### ## API : Construction & Destruction constructor {} { ::log::log debug "$self construction" return } destructor { ::log::log debug "$self destruction" return } # ### ### ### ######### ######### ######### ## API : Data source methods method get {} { ::log::log debug "$self get (nothing)" return {} } method set {dict} { ::log::log debug "$self set [list $dict]" return } method unset {{pattern *}} { ::log::log debug "$self unset $pattern" return } method names {} { ::log::log debug "$self names (nothing)" return {} } method size {} { ::log::log debug "$self size (0)" return 0 } method getv {index} { ::log::log debug "$self get ($index)" return {} } method setv {index value} { ::log::log debug "$self set ($index) = \[$value\]" return } method unsetv {index} { ::log::log debug "$self unset ($index)" return } # ### ### ### ######### ######### ######### } # ### ### ### ######### ######### ######### ## Ready to go ::tie::register ::tie::std::log as log package provide tie::std::log 1.0