initial checkin
authorClaus Gittinger <cg@exept.de>
Wed, 22 Nov 2006 14:05:17 +0100
changeset 35 2d464b2efb1d
parent 34 5391d707aa3d
child 36 66bb19317c8c
initial checkin
MCSnapshotReader.st
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MCSnapshotReader.st	Wed Nov 22 14:05:17 2006 +0100
@@ -0,0 +1,32 @@
+"{ Package: 'stx:goodies/monticello' }"
+
+MCReader subclass:#MCSnapshotReader
+	instanceVariableNames:'definitions'
+	classVariableNames:''
+	poolDictionaries:''
+	category:'Monticello-Storing'
+!
+
+
+!MCSnapshotReader class methodsFor:'as yet unclassified'!
+
+snapshotFromStream: aStream
+	^ (self on: aStream) snapshot
+! !
+
+!MCSnapshotReader methodsFor:'as yet unclassified'!
+
+definitions
+	definitions ifNil: [self loadDefinitions].
+	^ definitions
+!
+
+snapshot
+	^ MCSnapshot fromDefinitions: self definitions
+! !
+
+!MCSnapshotReader class methodsFor:'documentation'!
+
+version
+    ^ '$Header: /cvs/stx/stx/goodies/monticello/MCSnapshotReader.st,v 1.1 2006-11-22 13:05:17 cg Exp $'
+! !