InfoChange.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Fri, 18 May 2012 18:58:53 +0100
branchjv
changeset 3053 a7b0d2594279
parent 3042 48e76977cdc3
child 3067 580931ccfea6
permissions -rw-r--r--
- InfoChange class definition added:5 methods - stx_libbasic3 changed: #classNamesAndAttributes #extensionMethodNames #preRequisites - extensions ...

"
 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_SVN
    ^ '$Id:: InfoChange.st 1923 2012-05-18 17:58:53Z vranyj1                                                                        $'
! !