tie_log.tcl

Go to the documentation of this file.
00001 /*  tie_log.tcl --*/
00002 /* */
00003 /*  Data source: /dev/null. Just log changes.*/
00004 /* */
00005 /*  Copyright (c) 2004 Andreas Kupries <andreas_kupries@users.sourceforge.net>*/
00006 /* */
00007 /*  See the file "license.terms" for information on usage and redistribution*/
00008 /*  of this file, and for a DISCLAIMER OF ALL WARRANTIES.*/
00009 /*  */
00010 /*  RCS: @(#) $Id: tie_log.tcl,v 1.3 2005/09/28 04:51:24 andreas_kupries Exp $*/
00011 
00012 /*  ### ### ### ######### ######### #########*/
00013 /*  Requisites*/
00014 
00015 package require snit
00016 package require log
00017 package require tie
00018 
00019 /*  ### ### ### ######### ######### #########*/
00020 /*  Implementation*/
00021 
00022 package require snit
00023 snit::type ::tie::std::log {
00024 
00025     /*  ### ### ### ######### ######### #########*/
00026     /*  Specials*/
00027 
00028     pragma -hastyperet s no
00029     pragma -hasinfo        no
00030     pragma -simpledispatch yes
00031 
00032     # ### ### ### ######### ######### #########
00033     ## API : Construction & Destruction
00034 
00035     constructor () {
00036     ::log::log debug "$self construction"
00037     return
00038     }
00039 
00040     destructor {
00041     ::log::log debug "$self destruction"
00042     return
00043     }
00044 
00045     /*  ### ### ### ######### ######### #########*/
00046     /*  API : Data source methods*/
00047 
00048     ret  get () {
00049     ::log::log debug "$self get (nothing)"
00050     return {}
00051     }
00052 
00053     ret  set (type dict) {
00054     ::log::log debug "$self set [list $dict]"
00055     return
00056     }
00057 
00058     ret  unset (optional pattern =*) {
00059     ::log::log debug "$self unset $pattern"
00060     return
00061     }
00062 
00063     ret  names () {
00064     ::log::log debug "$self names (nothing)"
00065     return {}
00066     }
00067 
00068     ret  size () {
00069     ::log::log debug "$self size (0)"
00070     return 0
00071     }
00072 
00073     ret  getv (type index) {
00074     ::log::log debug "$self get ($index)"
00075     return {}
00076     }
00077 
00078     ret  setv (type index , type value) {
00079     ::log::log debug "$self set ($index) = \[$value\]"
00080     return
00081     }
00082 
00083     ret  unsetv (type index) {
00084     ::log::log debug "$self unset ($index)"
00085     return
00086     }
00087 
00088     /*  ### ### ### ######### ######### #########*/
00089 }
00090 
00091 /*  ### ### ### ######### ######### #########*/
00092 /*  Ready to go*/
00093 
00094 ::tie::register ::tie::std::log as log
00095 package provide   tie::std::log 1.0
00096 

Generated on 21 Sep 2010 for Gui by  doxygen 1.6.1