
/*
 * This file was generated by the SOM Compiler.
 * FileName: tpword.ih.
 * Generated using:
 *     SOM Precompiler somipc: 2.29.1.19
 *     SOM Emitter emitih.dll: 2.77.1.179
 */

/*
 *   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.
 */


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


#ifndef SOM_TPWord_ih
#define SOM_TPWord_ih


/*
 * Set the scope of method functions
 */
#ifndef SOM_Scope
#define SOM_Scope static
#endif

#ifndef SOM_TPWord_h
#include "tpword.h"
#endif
#include <somcsr.h>
#if defined(__IBMC__) && (__IBMC__ >= 300)
  #pragma info(none)
#else
  #if defined(__IBMC__)
     #pragma checkout(suspend)
  #endif
#endif


/*
 * -- Instance data
 */
typedef void TPWordData;
#define __somC_TPWord_NODATA

/*
 * This class introduces no instance data, so no GetData macro is provided
 */

/*
 * -- Primary Implementation File Support
 */
#if (defined(TPWord_Class_Source) || defined(SOM_Module_tpword_Source))

#ifndef TPWordMethodDebug
   #define TPWordMethodDebug(c,m) SOMMethodDebug(c,m)
#endif  /* TPWordMethodDebug */

static void SOMLINK __somC_TPWord_classInit(SOMClass cls);


/*
 * Init ClassData Structures
 */
struct TPWordClassDataStructure SOMDLLEXPORT SOMDLINK TPWordClassData = {0};
struct TPWordCClassDataStructure SOMDLLEXPORT SOMDLINK TPWordCClassData = {0};


/*
 * Identifiers
 */
static char __somC_Strings_TPWord0[] = {"TPWord"}; /* class name */
static char __somC_Strings_TPWord1[] = {"tpwType"}; /* method name */
static char __somC_Strings_TPWord2[] = {"word"}; /* parent name */
static char * __somC_TPWord_regIdsArray[] = {
	__somC_Strings_TPWord0,
#ifndef __somC_TPWord_regIds_tpwType
#define __somC_TPWord_regIds_tpwType 1
#endif
	__somC_Strings_TPWord1,
	__somC_Strings_TPWord2
};


/*
 * New Method: tpwType
 */
SOM_Scope long  SOMLINK tpwType(TPWord somSelf);
/*
 *  Returns the type of a TPWord.
 */
#ifndef somId_tpwType
#define somId_tpwType ((somId)&(__somC_TPWord_regIdsArray[__somC_TPWord_regIds_tpwType]))
#endif
/* Contract specification:
[CALLTYPE_OIDL (1)][RESULT][VERSION 0]
RESULT[out]: Long
*/
#define tpwType_somMethodInfoValue 0
#define tpwType_somApplyStubValue 0x830105
#define tpwType_somHasMPlan 24

/*
 * Functions for attributes.
 */

/*
 * Special Method Support
 */

/*
 * -- Routines and Structures to create the class object
 */
static SOMClass * __somC_TPWord_parentArray[] = {
	NULL,
};
void * __somC_TPWord_parentMtabs[1];

somMethodDefn __somC_TPWord_newNDMethodsArray[] = {
	{  (0 | tpwType_somHasMPlan), 0, (somMToken)0, (somMethodPtr)tpwType, 
	   0, (somMethodPtr)tpwType_somApplyStubValue, 
	   (somMethodInfo *) tpwType_somMethodInfoValue, &TPWordClassData.tpwType, 0, 1 }
};

static somClassVars1 __somC_TPWord_classVars1 = {
	1,		/* layoutVersion */
	(void *)NULL,	/* extension */
	0,	/* dataSize */
	0,		/* type code dataAlignment */
	(somMethodPtr)0,	/* classAllocate */
	(somMethodPtr)0	/* classDeallocate */
};

static struct TPWordClassDataStructure __somC_TPWord_resolvedMTokens;

static void * __somC_TPWord_CIB_unsharedClassVariablesPtr = 0;
som3ClassInfoStruct __somC_TPWord_ClassInfo; /* C forward reference */

SOM_CIB TPWord_ClassInitBlock = {
	1,	/* layoutVersion */
	&__somC_TPWord_classVars1,
	&__somC_TPWord_CIB_unsharedClassVariablesPtr,	/* unsharedVars */
	TPWord_MajorVersion,
	TPWord_MinorVersion,
	0x40004,	/* constFlags */
	0xFFFFFFFF,	/* inheritVars */
	0,	/* classMeta */
	(somMethodPtr) __somC_TPWord_classInit,	/* classInit */
	(somMethodPtr) 0,	/* classUninit */
	(somMethodPtr) 0,	/* legacyInit */
	(somMethodPtr) 0,	/* legacyUninit */
	(somMethodPtr) 0,	/* udaAssign */
	(somMethodPtr) 0,	/* udaConstAssign */
	0,	/* protectedDataOffset */
	0,	/* numEmbeddedObjs */
	0,	/* embeddedObjs */
	3,	/* numRegIds */
	__somC_TPWord_regIdsArray,	/* regIds */
	(sizeof(struct TPWordClassDataStructure) - sizeof(SOMClass *))/sizeof(somMToken),	/* numClassDataEntries */
	(somClassDataStructurePtr)&TPWordClassData,
	(somCClassDataStructurePtr)&TPWordCClassData,
	&__somC_TPWord_ClassInfo,
	1,	/* numParents */
	(SOMClass**)__somC_TPWord_parentArray,	/* parents */
	1,	/* numDirectInitClasses */
	(SOMClass**)__somC_TPWord_parentArray,	/* directInitClasses */
	0,	/* numNewInitializers */
	0,	/* newInitializerSymbols */
	0,	/* numOvInitializers */
	0,	/* ovInitializerSymbols */
	0,	/* special overrides */
	1,	/* maxNDMethods */
	__somC_TPWord_newNDMethodsArray,	/* newNDMethods */
	0,	/* numOverrides */
	0,	/* overrides */
	0,	/* numInheritedSelections */
	0,	/* inheritedSelections */
	0,	/* numMigratedMethods */
	0 	/* migrated methods */
};	/* CIB */

static som3ClassDetails __somC_TPWord_ClassDetails = {
	(somMethodTabPtr)NULL,	/* mtab */
	(somMethodTabPtr *)__somC_TPWord_parentMtabs,	/* parentMtabs */
	&TPWord_ClassInitBlock,	/* CIB pointer */
	(somTD_somRenewNoInitNoZeroThunk)0,	/* somRenewNoInitNoZeroThunk */
	(long)0,	/* instanceSize */
	(somMethodProc**)NULL,	/* resolvedInits */
	(somClassDataStructure *)&__somC_TPWord_resolvedMTokens,	/* resolvedMTokens */
	{0,0,0,0},	/* initCtrl */
	{0,0,0,0},	/* destructCtrl */
	{0,0,0,0},	/* assignCtrl */
	(long)1,	/* layoutVersion */
	(void*)NULL,	/* extension */
	(somDToken)NULL,	/* publicDataToken */
	(somDToken)NULL,	/* protectedDataToken */
};
som3ClassInfoStruct __somC_TPWord_ClassInfo = {
	0,	/* classObject */
	&__somC_TPWord_ClassDetails	/* class details */
};


/*
 * Class Creation and Initialization
 */

#if defined(__IBMC__) && (defined(_WIN32) || defined(__OS2__)) && !defined(SOM_PREWARP)
#pragma alloc_text (SEG0002, __somC_TPWord_classInit)
#pragma alloc_text (SEG0002, TPWordNewClass)
#endif

/* classinit function */
SOM_Scope void SOMLINK __somC_TPWord_classInit(SOMClass somSelf)
{
   SOM_IgnoreWarning(somSelf);
}

/* NewClass Function */
SOMEXTERN SOMDLLEXPORT SOMClass  SOMLINK TPWordNewClass (long reqMajorVersion, long reqMinorVersion)
{
   if (_SOMCLASS_TPWord && _somCheckVersion(_SOMCLASS_TPWord,reqMajorVersion,reqMinorVersion))
      return _SOMCLASS_TPWord;
__somC_TPWord_parentArray[0] = (SOMClass *)&_SOMCLASS_word;
   /* require parents */
   if (!_SOMCLASS_word) wordNewClass(word_MajorVersion,word_MinorVersion);
   /* return new class */
   return somBuildClass2( &TPWord_ClassInitBlock, reqMajorVersion, reqMinorVersion );
}

#endif       /* Primary Implementation Support */
#if defined(__IBMC__) && (__IBMC__ >= 300)
  #pragma info(restore)
#else
  #if defined(__IBMC__)
    #pragma checkout(resume)
  #endif
#endif

#endif       /* SOM_TPWord_ih */
