home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / som / somk / c / tp / textline.idl < prev    next >
Encoding:
Text File  |  1996-01-24  |  1.5 KB  |  72 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: textline.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 textline_idl
  17. #define textline_idl
  18.  
  19. #include "ll.idl"
  20.  
  21. interface textLine : linkedList
  22. {
  23.   void tlInit(in long newSize);
  24.   
  25.   // Initialize a new text line with the number of characters
  26.   // it can contain.
  27.  
  28.   long tlCharsInLine();
  29.   
  30.   // Returns the number of characters in a textLine.
  31.  
  32.   long tlCharsLeft();
  33.   
  34.   // Returns the number of characters that can still be placed
  35.   // in the textLine.
  36.  
  37.  
  38.  
  39. #ifdef __SOMIDL__
  40.   implementation {
  41.  
  42.     releaseorder: tlInit,tlCharsInLine,tlCharsLeft;
  43.  
  44.     //# Class Modifiers
  45.     callstyle = oidl;
  46.     local; 
  47.     filestem = textline;
  48.  
  49.  
  50.  
  51.     //# Internal Instance Variables
  52.     long maxSize;                  
  53.     long totalChars;               
  54.  
  55.     //# Method Modifiers
  56.     llAddTail: override;
  57.     llAddHead: override;
  58.     llReplace: override;
  59.     somInit: override;
  60.     somUninit: override;
  61.     somDumpSelfInt: override;
  62.  
  63.     //# Data Modifiers
  64.     maxSize: ;
  65.     totalChars: ;
  66.  
  67.   };
  68. #endif /* __SOMIDL__ */
  69. };
  70.  
  71. #endif  /* textline_idl */
  72.