
/*
 * This file was generated by the SOM Compiler.
 * FileName: header.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_header_h
#define SOM_header_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 header
#define header SOMObject
#endif

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

/*
 * Start of bindings for IDL types
 */

#ifndef SOMClass
    #define SOMClass SOMObject
#endif /* SOMClass */
#ifndef page
    #define page SOMObject
#endif /* page */
#ifndef TPWord
    #define TPWord SOMObject
#endif /* TPWord */
#ifndef fileMgr
    #define fileMgr SOMObject
#endif /* fileMgr */

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

#define header_MajorVersion 0
#define header_MinorVersion 0

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

/*
 * Declare the ABI 2 ClassData structure
 */
SOMEXTERN struct headerClassDataStructure {
	SOMClass classObject;
} 
#if defined(SOM_Module_header_Source)
        SOMDLLEXPORT
#else
    SOMDLLIMPORT
#endif
 SOMDLINK headerClassData;

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

/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_header (headerClassData.classObject)
#ifndef SOMGD_header
    #if (defined(_header) || defined(__header))
        #undef _header
        #undef __header
        #define SOMGD_header 1
    #else
        #define _header _SOMCLASS_header
    #endif /* _header */
#endif /* SOMGD_header */
#define header_classObj _SOMCLASS_header
#define _SOMMTOKEN_header(method) ((somMToken)headerClassData.method)

/*
 * New and Renew macros for header
 */
#define headerNew() \
   ( _header ? \
	_somNew(_header) \
	: ( headerNewClass(\
		header_MajorVersion, \
		header_MinorVersion),\
	   _somNew(_header)))
#define headerRenew(buf) \
   ( _header ? \
	_somRenew(_header, buf) \
	: ( headerNewClass(\
		header_MajorVersion, \
		header_MinorVersion),\
	   _somRenew(_header, buf)))

/*
 * Full Names for Inherited Methods
 */
/* overridden methods */
#define header_epProcessEnvironment envProcessor_epProcessEnvironment

#ifndef SOM_DONT_USE_INHERITED_MACROS
#define header_epInit1 envProcessor_epInit1
#define header_epStartUpNewEnvironment envProcessor_epStartUpNewEnvironment
#define header_epInitializeEnvironment envProcessor_epInitializeEnvironment
#define header_epShutdownEnvironment envProcessor_epShutdownEnvironment
#define header_epPrepareForNewEnvironment envProcessor_epPrepareForNewEnvironment
#define header__get_paragraphIndentation envProcessor__get_paragraphIndentation
#define header__get_lineIndentation envProcessor__get_lineIndentation
#define header__get_currentPage envProcessor__get_currentPage
#define header__set_currentPage envProcessor__set_currentPage
#define header__get_currentFileMgr envProcessor__get_currentFileMgr
#define header__set_currentFileMgr envProcessor__set_currentFileMgr
#define header__get_previousEnv envProcessor__get_previousEnv
#define header_somInit SOMObject_somInit
#define header_somUninit SOMObject_somUninit
#define header_somDumpSelfInt SOMObject_somDumpSelfInt
#define header_somDefaultInit SOMObject_somDefaultInit
#define header_somDestruct SOMObject_somDestruct
#define header_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define header_somDefaultAssign SOMObject_somDefaultAssign
#define header_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define header_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define header_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define header_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define header_somDefaultVAssign SOMObject_somDefaultVAssign
#define header_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define header_somFree SOMObject_somFree
#define header_somGetClass SOMObject_somGetClass
#define header_somGetClassName SOMObject_somGetClassName
#define header_somGetSize SOMObject_somGetSize
#define header_somIsA SOMObject_somIsA
#define header_somIsInstanceOf SOMObject_somIsInstanceOf
#define header_somRespondsTo SOMObject_somRespondsTo
#define header_somDispatch SOMObject_somDispatch
#define header_somClassDispatch SOMObject_somClassDispatch
#define header_somCastObj SOMObject_somCastObj
#define header_somResetObj SOMObject_somResetObj
#define header_somPrintSelf SOMObject_somPrintSelf
#define header_somDumpSelf SOMObject_somDumpSelf
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_header_h */
