/*
 *    @(#)46 1.1 9/28/93 11:47:14 [10/14/94] (c)IBM Corp. 1992
 */

// This file was generated by the SOM Compiler.
// FileName: textline.id2.
// Generated using:
//     SOM Precompiler spc: 6.9
//     SOM Emitter emitidl.dll: 6.8

//  This class is adapted from the book
//    Class Construction in C and C++, Object Oriented Fundamentals
//    by Roger Sessions, Copyright (c) 1992 Prentice Hall.
//  Reprinted with permission.

#ifndef textline_idl
#define textline_idl

#include "ll.idl"

interface textLine : linkedList
{
  void tlInit(in long newSize);
  
  // Initialize a new text line with the number of characters
  // it can contain.

  long tlCharsInLine();
  
  // Returns the number of characters in a textLine.

  long tlCharsLeft();
  
  // Returns the number of characters that can still be placed
  // in the textLine.



#ifdef __SOMIDL__
  implementation {

    releaseorder: tlInit,tlCharsInLine,tlCharsLeft;

    //# Class Modifiers
    callstyle = oidl;
    local; 
    filestem = textline;



    //# Internal Instance Variables
    long maxSize;                  
    long totalChars;               

    //# Method Modifiers
    llAddTail: override;
    llAddHead: override;
    llReplace: override;
    somInit: override;
    somUninit: override;
    somDumpSelfInt: override;

    //# Data Modifiers
    maxSize: ;
    totalChars: ;

  };
#endif /* __SOMIDL__ */
};

#endif  /* textline_idl */
