// $Revision: 1.5 $ // Copyright (c) 1994 taligent, Inc. All rights reserved. #ifndef TaligentSamples_LONGNOTIFICATION #include "LongNotification.h" #endif MCollectibleDefinitionsMacro(TLongNotification, kOriginalVersion) TLongNotification::TLongNotification(const TInterest& interest, long value) : TNotification(interest), fValue(value) { } TLongNotification::TLongNotification(const TLongNotification& source) : TNotification(source), fValue(source.fValue) { } TLongNotification::~TLongNotification() { } const TLongNotification& TLongNotification::operator=(const TLongNotification& source) { if (&source != this) { TNotification::operator=(source); fValue = source.fValue; } return *this; } long TLongNotification::GetValue() const { return fValue; } TStream& TLongNotification::operator>>=(TStream& toStream) const { ::WriteVersion(toStream, kOriginalVersion); TNotification::operator>>=(toStream); fValue >>= toStream; return toStream; } TStream& TLongNotification::operator<<=(TStream& fromStream) { ::ReadVersion(fromStream, kOriginalVersion, kOriginalVersion); TNotification::operator<<=(fromStream); fValue <<= fromStream; return fromStream; } TLongNotification::TLongNotification() : TNotification(), fValue(0) { }