
/*
 * This file was generated by the SOM Compiler.
 * FileName: textline.h.
 * Generated using:
 *     SOM Precompiler somipc: 2.29.1.19
 *     SOM Emitter emith.dll: 2.31.1.64
 */

/*
 *   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 SOM_textLine_h
#define SOM_textLine_h


/*
 * The SOM_STRICT_IDL macro means that we can ignore stars
 * in our declarations of objects.
 */
#define SOM_STRICT_IDL 1


#include <som.h>

/*
 * -- This emitter treats Method Tokens as Thunks by default.
 * -- Use the sc modifier "nothunks" to change this default
 */
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))

/*
 * Define the class name as an object type
 */
#ifndef textLine
#define textLine SOMObject
#endif

/*
 * Include Parent Bindings
 */
#ifndef SOM_linkedList_h
#ifdef SOMLOCALINCLUDES
#include "ll.h"
#else
#include <ll.h>
#endif
#endif

/*
 * Start of bindings for IDL types
 */

#ifndef SOMClass
    #define SOMClass SOMObject
#endif /* SOMClass */
#ifndef link
    #define link SOMObject
#endif /* link */

/*
 * End of bindings for IDL types.
 */

#define textLine_MajorVersion 0
#define textLine_MinorVersion 0

/*
 * Declare the class creation procedure
 */
SOMEXTERN 
#if defined(SOM_Module_textline_Source)
        SOMDLLEXPORT
#else
    SOMDLLIMPORT
#endif
 SOMClass  SOMLINK textLineNewClass(integer4 somtmajorVersion,
		integer4 somtminorVersion);

/*
 * Declare the ABI 2 ClassData structure
 */
SOMEXTERN struct textLineClassDataStructure {
	SOMClass classObject;
	somMToken tlInit;
	somMToken tlCharsInLine;
	somMToken tlCharsLeft;
} 
#if defined(SOM_Module_textline_Source)
        SOMDLLEXPORT
#else
    SOMDLLIMPORT
#endif
 SOMDLINK textLineClassData;

/*
 * Declare the ABI 2 CClassData structure
 */
SOMEXTERN struct textLineCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
} 
#if defined(SOM_Module_textline_Source)
        SOMDLLEXPORT
#else
    SOMDLLIMPORT
#endif
 SOMDLINK textLineCClassData;

/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_textLine (textLineClassData.classObject)
#ifndef SOMGD_textLine
    #if (defined(_textLine) || defined(__textLine))
        #undef _textLine
        #undef __textLine
        #define SOMGD_textLine 1
    #else
        #define _textLine _SOMCLASS_textLine
    #endif /* _textLine */
#endif /* SOMGD_textLine */
#define textLine_classObj _SOMCLASS_textLine
#define _SOMMTOKEN_textLine(method) ((somMToken)textLineClassData.method)

/*
 * New and Renew macros for textLine
 */
#define textLineNew() \
   ( _textLine ? \
	_somNew(_textLine) \
	: ( textLineNewClass(\
		textLine_MajorVersion, \
		textLine_MinorVersion),\
	   _somNew(_textLine)))
#define textLineRenew(buf) \
   ( _textLine ? \
	_somRenew(_textLine, buf) \
	: ( textLineNewClass(\
		textLine_MajorVersion, \
		textLine_MinorVersion),\
	   _somRenew(_textLine, buf)))

/*
 * New Method: tlInit
 */
typedef void   SOMLINK somTP_textLine_tlInit(textLine somSelf, 
		long newSize);
typedef somTP_textLine_tlInit *somTD_textLine_tlInit;
/*
 *  Initialize a new text line with the number of characters
 *  it can contain.
 */
#define somMD_textLine_tlInit "::textLine::tlInit"
#define textLine_tlInit(somSelf,newSize) \
    (SOM_Resolve(somSelf, textLine, tlInit) \
	(somSelf,newSize))
#ifndef SOMGD_tlInit
    #if (defined(_tlInit) || defined(__tlInit))
        #undef _tlInit
        #undef __tlInit
        #define SOMGD_tlInit 1
    #else
        #define _tlInit textLine_tlInit
    #endif /* _tlInit */
#endif /* SOMGD_tlInit */

/*
 * New Method: tlCharsInLine
 */
typedef long   SOMLINK somTP_textLine_tlCharsInLine(textLine somSelf);
typedef somTP_textLine_tlCharsInLine *somTD_textLine_tlCharsInLine;
/*
 *  Returns the number of characters in a textLine.
 */
#define somMD_textLine_tlCharsInLine "::textLine::tlCharsInLine"
#define textLine_tlCharsInLine(somSelf) \
    (SOM_Resolve(somSelf, textLine, tlCharsInLine) \
	(somSelf))
#ifndef SOMGD_tlCharsInLine
    #if (defined(_tlCharsInLine) || defined(__tlCharsInLine))
        #undef _tlCharsInLine
        #undef __tlCharsInLine
        #define SOMGD_tlCharsInLine 1
    #else
        #define _tlCharsInLine textLine_tlCharsInLine
    #endif /* _tlCharsInLine */
#endif /* SOMGD_tlCharsInLine */

/*
 * New Method: tlCharsLeft
 */
typedef long   SOMLINK somTP_textLine_tlCharsLeft(textLine somSelf);
typedef somTP_textLine_tlCharsLeft *somTD_textLine_tlCharsLeft;
/*
 *  Returns the number of characters that can still be placed
 *  in the textLine.
 */
#define somMD_textLine_tlCharsLeft "::textLine::tlCharsLeft"
#define textLine_tlCharsLeft(somSelf) \
    (SOM_Resolve(somSelf, textLine, tlCharsLeft) \
	(somSelf))
#ifndef SOMGD_tlCharsLeft
    #if (defined(_tlCharsLeft) || defined(__tlCharsLeft))
        #undef _tlCharsLeft
        #undef __tlCharsLeft
        #define SOMGD_tlCharsLeft 1
    #else
        #define _tlCharsLeft textLine_tlCharsLeft
    #endif /* _tlCharsLeft */
#endif /* SOMGD_tlCharsLeft */

/*
 * Full Names for Inherited Methods
 */
/* overridden methods */
#define textLine_llReplace linkedList_llReplace
#define textLine_llAddHead linkedList_llAddHead
#define textLine_llAddTail linkedList_llAddTail
#define textLine_somInit SOMObject_somInit
#define textLine_somUninit SOMObject_somUninit
#define textLine_somDumpSelfInt SOMObject_somDumpSelfInt

#ifndef SOM_DONT_USE_INHERITED_MACROS
#define textLine_llHead linkedList_llHead
#define textLine_llTail linkedList_llTail
#define textLine_llLength linkedList_llLength
#define textLine_llSetMax linkedList_llSetMax
#define textLine_llLeft linkedList_llLeft
#define textLine_llNext linkedList_llNext
#define textLine_llPrevious linkedList_llPrevious
#define textLine_llRetrieve linkedList_llRetrieve
#define textLine_llPromoteTail linkedList_llPromoteTail
#define textLine_llRemoveHead linkedList_llRemoveHead
#define textLine_llIsTail linkedList_llIsTail
#define textLine_llFreeContents linkedList_llFreeContents
#define textLine_llTrace linkedList_llTrace
#define textLine_print baseType_print
#define textLine_match baseType_match
#define textLine_somDefaultInit SOMObject_somDefaultInit
#define textLine_somDestruct SOMObject_somDestruct
#define textLine_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define textLine_somDefaultAssign SOMObject_somDefaultAssign
#define textLine_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define textLine_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define textLine_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define textLine_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define textLine_somDefaultVAssign SOMObject_somDefaultVAssign
#define textLine_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define textLine_somFree SOMObject_somFree
#define textLine_somGetClass SOMObject_somGetClass
#define textLine_somGetClassName SOMObject_somGetClassName
#define textLine_somGetSize SOMObject_somGetSize
#define textLine_somIsA SOMObject_somIsA
#define textLine_somIsInstanceOf SOMObject_somIsInstanceOf
#define textLine_somRespondsTo SOMObject_somRespondsTo
#define textLine_somDispatch SOMObject_somDispatch
#define textLine_somClassDispatch SOMObject_somClassDispatch
#define textLine_somCastObj SOMObject_somCastObj
#define textLine_somResetObj SOMObject_somResetObj
#define textLine_somPrintSelf SOMObject_somPrintSelf
#define textLine_somDumpSelf SOMObject_somDumpSelf
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_textLine_h */
