blob: bec66ca4832ffa1563d4135c9d17b628d0d49556 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
# tie_log.tcl --
#
# Data source: /dev/null. Just log changes.
#
# Copyright (c) 2004 Andreas Kupries <andreas_kupries@users.sourceforge.net>
#
# 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
|