home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / som / somk / c / tp / link.idl < prev    next >
Encoding:
Text File  |  1996-01-24  |  1.7 KB  |  83 lines

  1. /*
  2.  *    %Z% %I% %W% %G% %U% [%H% %T%] (c)IBM Corp. 1992
  3.  */
  4.  
  5. // This file was generated by the SOM Compiler.
  6. // FileName: link.id2.
  7. // Generated using:
  8. //     SOM Precompiler spc: 6.9
  9. //     SOM Emitter emitidl.dll: 6.8
  10.  
  11. //  This class is adapted from the book
  12. //    Class Construction in C and C++, Object Oriented Fundamentals
  13. //    by Roger Sessions, Copyright (c) 1992 Prentice Hall.
  14. //  Reprinted with permission.
  15.  
  16. #ifndef link_idl
  17. #define link_idl
  18.  
  19. #include "bt.idl"
  20.  
  21. interface link : baseType
  22. {
  23.   void linkSetNext(in link nextLink);
  24.   
  25.   // Set the next pointer on target link to new link.
  26.  
  27.   void linkSetPrevious(in link nextLink);
  28.   
  29.   // Set the previous pointer on target link to new link.
  30.  
  31.   void linkSetContents(in baseType newContents);
  32.   
  33.   // Set the contents pointer on target link to new object.
  34.  
  35.   link linkGetNext();
  36.   
  37.   // Get the next link after the target link.
  38.  
  39.   link linkGetPrevious();
  40.   
  41.   // Get the previous link before the target link.
  42.  
  43.   baseType linkGetContents();
  44.   
  45.   // Get the contents of the target link.
  46.  
  47.  
  48.  
  49. #ifdef __SOMIDL__
  50.   implementation {
  51.  
  52.     releaseorder: linkSetNext,linkSetPrevious,linkSetContents,linkGetNext, 
  53.                   linkGetPrevious,linkGetContents;
  54.  
  55.     //# Class Modifiers
  56.     callstyle = oidl;
  57.     local; 
  58.     filestem = link;
  59.  
  60.     passthru C_h =      "#include \"bt.h\"";
  61.  
  62.  
  63.     //# Internal Instance Variables
  64.     link next;                    
  65.     link previous;                
  66.     baseType contents;            
  67.  
  68.     //# Method Modifiers
  69.     print: override;
  70.     somInit: override;
  71.     somDumpSelfInt: override;
  72.  
  73.     //# Data Modifiers
  74.     next: ;
  75.     previous: ;
  76.     contents: ;
  77.  
  78.   };
  79. #endif /* __SOMIDL__ */
  80. };
  81.  
  82. #endif  /* link_idl */
  83.