Custom notification

The custom notification contains a copy of the shape that was added or removed.

Here is the interface for TShapeNotification. The implementation is not presented because it is standard.

      class TShapeNotification : public TNotification {
      public:
          MCollectibleDeclarationsMacro(TShapeNotification);
      
                                      TShapeNotification(const TInterest&, const MGraphic&);
                                      TShapeNotification(const TShapeNotification&);
          virtual                     ~TShapeNotification();
          const TShapeNotification&   operator =(const TShapeNotification&);
      
          const MGraphic*             GetShape() const;
      
          virtual TStream&            operator >>=(TStream&) const;
          virtual TStream&            operator <<=(TStream&);
      
          virtual Boolean             IsEqual(const MCollectible*) const;
      
      protected:
                                      TShapeNotification();
      
      private:
          MGraphic*                   fShape;
      
          enum { kOriginalVersion };
      };

[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker