home *** CD-ROM | disk | FTP | other *** search
/ Dream 57 / Amiga_Dream_57.iso / Amiga / Programmation / c / Extensions / APPSource.lha / APlusPlus / libsource / ITransponder.cxx < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-29  |  1.1 KB  |  44 lines

  1. /******************************************************************************
  2.  **
  3.  **   C++ Class Library for the Amiga⌐ system software.
  4.  **
  5.  **   Copyright (C) 1994 by Armin Vogt  **  EMail: armin@uni-paderborn.de
  6.  **   All Rights Reserved.
  7.  **
  8.  **   $Source: apphome:RCS/libsource/ITransponder.cxx,v $
  9.  **   $Revision: 1.7 $
  10.  **   $Date: 1994/07/27 11:50:43 $
  11.  **   $Author: Armin_Vogt $
  12.  **
  13.  ******************************************************************************/
  14.  
  15.  
  16. #include <APlusPlus/intuition/ITransponder.h>
  17. #include <APlusPlus/intuition/IntuiObject.h>
  18.  
  19.  
  20. static const char rcs_id[] = "$Id: ITransponder.cxx,v 1.7 1994/07/27 11:50:43 Armin_Vogt Exp Armin_Vogt $";
  21.  
  22. //runtime type inquiry support
  23. typeinfo(ITransponder, no_bases, rcs_id)
  24.  
  25.  
  26. void ITransponder::setReceiver(IntuiObject *newReceiver)
  27. {
  28.    receiver1 = newReceiver;
  29. }
  30.  
  31. MapITP::MapITP(IntuiObject *iob,AttrList& mapAttrs)
  32.    : ITransponder(iob), mapAttrlist(mapAttrs)
  33. {
  34. }
  35.  
  36. void MapITP::sendNotification(AttrList& attrs)
  37. {
  38.    attrs.mapAttrs(mapAttrlist);
  39.    if (receiver1)
  40.    {
  41.       receiver1->setAttributes(attrs);
  42.    }
  43. }
  44.