
/*
 * This file was generated by the SOM Compiler.
 * FileName: colblk.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_columnBlock_h
#define SOM_columnBlock_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 columnBlock
#define columnBlock 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 columnBlock_MajorVersion 0
#define columnBlock_MinorVersion 0

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

/*
 * Declare the ABI 2 ClassData structure
 */
SOMEXTERN struct columnBlockClassDataStructure {
	SOMClass classObject;
	somMToken cbInit;
	somMToken _get_columnWidth;
	somMToken cbLinesLeft;
	somMToken cbPrintBlanks;
} 
#if defined(SOM_Module_colblk_Source)
        SOMDLLEXPORT
#else
    SOMDLLIMPORT
#endif
 SOMDLINK columnBlockClassData;

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

/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_columnBlock (columnBlockClassData.classObject)
#ifndef SOMGD_columnBlock
    #if (defined(_columnBlock) || defined(__columnBlock))
        #undef _columnBlock
        #undef __columnBlock
        #define SOMGD_columnBlock 1
    #else
        #define _columnBlock _SOMCLASS_columnBlock
    #endif /* _columnBlock */
#endif /* SOMGD_columnBlock */
#define columnBlock_classObj _SOMCLASS_columnBlock
#define _SOMMTOKEN_columnBlock(method) ((somMToken)columnBlockClassData.method)

/*
 * New and Renew macros for columnBlock
 */
#define columnBlockNew() \
   ( _columnBlock ? \
	_somNew(_columnBlock) \
	: ( columnBlockNewClass(\
		columnBlock_MajorVersion, \
		columnBlock_MinorVersion),\
	   _somNew(_columnBlock)))
#define columnBlockRenew(buf) \
   ( _columnBlock ? \
	_somRenew(_columnBlock, buf) \
	: ( columnBlockNewClass(\
		columnBlock_MajorVersion, \
		columnBlock_MinorVersion),\
	   _somRenew(_columnBlock, buf)))

/*
 * New Method: cbInit
 */
typedef void   SOMLINK somTP_columnBlock_cbInit(columnBlock somSelf, 
		long newColumns, 
		long newHeight, 
		long newWidth);
typedef somTP_columnBlock_cbInit *somTD_columnBlock_cbInit;
/*
 *    Initialize a new columnBlock.
 */
#define somMD_columnBlock_cbInit "::columnBlock::cbInit"
#define columnBlock_cbInit(somSelf,newColumns,newHeight,newWidth) \
    (SOM_Resolve(somSelf, columnBlock, cbInit) \
	(somSelf,newColumns,newHeight,newWidth))
#ifndef SOMGD_cbInit
    #if (defined(_cbInit) || defined(__cbInit))
        #undef _cbInit
        #undef __cbInit
        #define SOMGD_cbInit 1
    #else
        #define _cbInit columnBlock_cbInit
    #endif /* _cbInit */
#endif /* SOMGD_cbInit */

/*
 * New Method: _get_columnWidth
 */
typedef long   SOMLINK somTP_columnBlock__get_columnWidth(columnBlock somSelf);
typedef somTP_columnBlock__get_columnWidth *somTD_columnBlock__get_columnWidth;
/*
 *   The width of a column (in characters).
 */
#define somMD_columnBlock__get_columnWidth "::columnBlock::_get_columnWidth"
#define columnBlock__get_columnWidth(somSelf) \
    (SOM_Resolve(somSelf, columnBlock, _get_columnWidth) \
	(somSelf))
#ifndef SOMGD_get_columnWidth
    #if (defined(_get_columnWidth) || defined(__get_columnWidth))
        #undef _get_columnWidth
        #undef __get_columnWidth
        #define SOMGD_get_columnWidth 1
    #else
        #define __get_columnWidth columnBlock__get_columnWidth
    #endif /* __get_columnWidth */
#endif /* SOMGD_get_columnWidth */

/*
 * New Method: cbLinesLeft
 */
typedef long   SOMLINK somTP_columnBlock_cbLinesLeft(columnBlock somSelf);
typedef somTP_columnBlock_cbLinesLeft *somTD_columnBlock_cbLinesLeft;
/*
 *   Returns TRUE if there is room for at least one more
 *   line in the columnBlock, FALSE otherwise.
 */
#define somMD_columnBlock_cbLinesLeft "::columnBlock::cbLinesLeft"
#define columnBlock_cbLinesLeft(somSelf) \
    (SOM_Resolve(somSelf, columnBlock, cbLinesLeft) \
	(somSelf))
#ifndef SOMGD_cbLinesLeft
    #if (defined(_cbLinesLeft) || defined(__cbLinesLeft))
        #undef _cbLinesLeft
        #undef __cbLinesLeft
        #define SOMGD_cbLinesLeft 1
    #else
        #define _cbLinesLeft columnBlock_cbLinesLeft
    #endif /* _cbLinesLeft */
#endif /* SOMGD_cbLinesLeft */

/*
 * New Method: cbPrintBlanks
 */
typedef void   SOMLINK somTP_columnBlock_cbPrintBlanks(columnBlock somSelf, 
		FILE* output, 
		long nblanks);
typedef somTP_columnBlock_cbPrintBlanks *somTD_columnBlock_cbPrintBlanks;
/*
 * 	Prints blank characters to the output file.
 */
#define somMD_columnBlock_cbPrintBlanks "::columnBlock::cbPrintBlanks"
#define columnBlock_cbPrintBlanks(somSelf,output,nblanks) \
    (SOM_Resolve(somSelf, columnBlock, cbPrintBlanks) \
	(somSelf,output,nblanks))
#ifndef SOMGD_cbPrintBlanks
    #if (defined(_cbPrintBlanks) || defined(__cbPrintBlanks))
        #undef _cbPrintBlanks
        #undef __cbPrintBlanks
        #define SOMGD_cbPrintBlanks 1
    #else
        #define _cbPrintBlanks columnBlock_cbPrintBlanks
    #endif /* _cbPrintBlanks */
#endif /* SOMGD_cbPrintBlanks */

/*
 * Full Names for Inherited Methods
 */
/* overridden methods */
#define columnBlock_llAddTail linkedList_llAddTail
#define columnBlock_print baseType_print
#define columnBlock_somInit SOMObject_somInit
#define columnBlock_somUninit SOMObject_somUninit
#define columnBlock_somDumpSelfInt SOMObject_somDumpSelfInt

#ifndef SOM_DONT_USE_INHERITED_MACROS
#define columnBlock_llHead linkedList_llHead
#define columnBlock_llTail linkedList_llTail
#define columnBlock_llLength linkedList_llLength
#define columnBlock_llSetMax linkedList_llSetMax
#define columnBlock_llLeft linkedList_llLeft
#define columnBlock_llNext linkedList_llNext
#define columnBlock_llPrevious linkedList_llPrevious
#define columnBlock_llRetrieve linkedList_llRetrieve
#define columnBlock_llReplace linkedList_llReplace
#define columnBlock_llPromoteTail linkedList_llPromoteTail
#define columnBlock_llAddHead linkedList_llAddHead
#define columnBlock_llRemoveHead linkedList_llRemoveHead
#define columnBlock_llIsTail linkedList_llIsTail
#define columnBlock_llFreeContents linkedList_llFreeContents
#define columnBlock_llTrace linkedList_llTrace
#define columnBlock_match baseType_match
#define columnBlock_somDefaultInit SOMObject_somDefaultInit
#define columnBlock_somDestruct SOMObject_somDestruct
#define columnBlock_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define columnBlock_somDefaultAssign SOMObject_somDefaultAssign
#define columnBlock_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define columnBlock_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define columnBlock_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define columnBlock_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define columnBlock_somDefaultVAssign SOMObject_somDefaultVAssign
#define columnBlock_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define columnBlock_somFree SOMObject_somFree
#define columnBlock_somGetClass SOMObject_somGetClass
#define columnBlock_somGetClassName SOMObject_somGetClassName
#define columnBlock_somGetSize SOMObject_somGetSize
#define columnBlock_somIsA SOMObject_somIsA
#define columnBlock_somIsInstanceOf SOMObject_somIsInstanceOf
#define columnBlock_somRespondsTo SOMObject_somRespondsTo
#define columnBlock_somDispatch SOMObject_somDispatch
#define columnBlock_somClassDispatch SOMObject_somClassDispatch
#define columnBlock_somCastObj SOMObject_somCastObj
#define columnBlock_somResetObj SOMObject_somResetObj
#define columnBlock_somPrintSelf SOMObject_somPrintSelf
#define columnBlock_somDumpSelf SOMObject_somDumpSelf
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_columnBlock_h */
