InfoChange.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Fri, 22 Mar 2013 11:11:55 +0000
branchjv
changeset 3128 87750af738dc
parent 3125 08d6603c4fe9
parent 3121 19723298dd2c
child 3158 f8c56a311307
permissions -rw-r--r--
Merged heads

"
 COPYRIGHT (c) 2006 by eXept Software AG
              All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"
"{ Package: 'stx:libbasic3' }"

OtherChange subclass:#InfoChange
	instanceVariableNames:'data'
	classVariableNames:''
	poolDictionaries:''
	category:'System-Changes'
!

!InfoChange class methodsFor:'documentation'!

copyright
"
 COPYRIGHT (c) 2006 by eXept Software AG
              All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"
!

documentation
"
    InfoChanges represent individual 'info records' written
    in system changefile, such as 'snapshot was written'
    'class/package was checked in' etc.

    [author:]
        Jan Vrany <jan.vrany@fit.cvut.cz>

    [instance variables:]

    [class variables:]

    [see also:]

"
! !

!InfoChange class methodsFor:'instance creation'!

type: type data: data timestamp: timestamp

    ^self new
        type: type;
        data: data; 
        timeStamp: timestamp

    "Created: / 18-05-2012 / 16:59:43 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!InfoChange methodsFor:'accessing'!

data
    ^ data
!

data:something
    data := something.
! !

!InfoChange methodsFor:'applying'!

apply
    "Intentionally left blank"

    "Created: / 18-05-2012 / 17:00:39 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!InfoChange methodsFor:'printing & storing'!

printOn:aStream

    type == #snapshot ifTrue:[
        aStream nextPutAll:'Snapshot'; space; nextPutAll: data.
        ^self
    ].
    type == #start ifTrue:[
        aStream nextPutAll:'System start'.
        ^self
    ].
    type == #rake ifTrue:[
        aStream nextPutAll:'rake'; space; nextPutAll: data.
        ^self
    ].

    "Created: / 18-05-2012 / 17:02:08 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!InfoChange class methodsFor:'documentation'!

version
    ^ '$Header: InfoChange.st 1946 2012-07-31 14:00:47Z vranyj1 $'
!

version_CVS
    ^ '§Header: /cvs/stx/stx/libbasic3/InfoChange.st,v 1.1 2012-07-31 13:28:44 +0100 vrany Exp §'
!

version_HG

    ^ '$Changeset: <not expanded> $'
!

version_SVN
    ^ '§Id:: InfoChange.st 1946 2012-07-31 14:00:47Z vranyj1                                                                        §'
! !