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

/*
 *    COMPONENT_NAME: somx
 * 
 *    ORIGINS: 27
 * 
 * 
 *    25H7912  (C)  COPYRIGHT International Business Machines Corp. 1992,1996
 *    All Rights Reserved
 *    Licensed Materials - Property of IBM
 *    US Government Users Restricted Rights - Use, duplication or
 *    disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
 * 
 *    @(#) 1.1 src/somples.os2/somu/c/fb/fierce.idl, somples.somu, som3.0 12/2/96 14:35:48 [12/4/96 15:12:57]
 * 
 * 
 * DISCLAIMER OF WARRANTIES.
 * The following [enclosed] code is sample code created by IBM
 * Corporation. This sample code is not part of any standard or IBM
 * product and is provided to you solely for the purpose of assisting
 * you in the development of your applications.  The code is provided
 * "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
 * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
 * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
 * THIS CODE.  IBM shall not be liable for any damages arising out of
 * your use of the sample code, even if they have been advised of the
 * possibility of such damages.
 * 
 * DISTRIBUTION.
 * This sample code can be freely distributed, copied, altered, and
 * incorporated into other software, provided that it bears the above
 * Copyright notice and DISCLAIMER intact.
 */


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


#ifndef SOM_Fierce_ih
#define SOM_Fierce_ih


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

#ifndef SOM_Fierce_h
#include "fierce.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 FierceData;
#define __somC_Fierce_NODATA

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

/*
 * -- Primary Implementation File Support
 */
#if (defined(Fierce_Class_Source) || defined(SOM_Module_fierce_Source))

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

static void SOMLINK __somC_Fierce_classInit(SOMClass cls);


/*
 * Init ClassData Structures
 */
struct FierceClassDataStructure SOMDLLEXPORT SOMDLINK FierceClassData = {0};
struct FierceCClassDataStructure SOMDLLEXPORT SOMDLINK FierceCClassData = {0};


/*
 * Identifiers
 */
static char __somC_Strings_Fierce0[] = {"Fierce"}; /* class name */
static char __somC_Strings_Fierce1[] = {"SOMMBeforeAfter"}; /* parent name */
static char __somC_Strings_Fierce2[] = {"sommBeforeMethod"}; /* overridden method name */
static char __somC_Strings_Fierce3[] = {"sommAfterMethod"}; /* overridden method name */
static char * __somC_Fierce_regIdsArray[] = {
	__somC_Strings_Fierce0,
	__somC_Strings_Fierce1,
#ifndef __somC_Fierce_regIds_sommBeforeMethod
#define __somC_Fierce_regIds_sommBeforeMethod 2
#endif
	__somC_Strings_Fierce2,
#ifndef __somC_Fierce_regIds_sommAfterMethod
#define __somC_Fierce_regIds_sommAfterMethod 3
#endif
	__somC_Strings_Fierce3
};


/*
 * Overridden method: sommBeforeMethod
 */
SOM_Scope boolean  SOMLINK sommBeforeMethod(Fierce somSelf, Environment *ev,
		SOMObject object,
		somId methodId,
		va_list ap);
static somMethodProc* Fierce_parent_SOMMBeforeAfter_sommBeforeMethod_resolved;
#define Fierce_parent_SOMMBeforeAfter_sommBeforeMethod(somSelf,ev,object,methodId,ap) \
  ((( somTD_SOMMBeforeAfter_sommBeforeMethod ) \
    Fierce_parent_SOMMBeforeAfter_sommBeforeMethod_resolved)(somSelf,ev,object,methodId,ap))
#ifndef SOMGD_pmc_SOMMBeforeAfter_sommBeforeMethod
  #ifdef parent_SOMMBeforeAfter_sommBeforeMethod
     #define SOMGD_pmc_SOMMBeforeAfter_sommBeforeMethod 1
     #undef parent_SOMMBeforeAfter_sommBeforeMethod
  #else
     #define parent_SOMMBeforeAfter_sommBeforeMethod Fierce_parent_SOMMBeforeAfter_sommBeforeMethod
  #endif /* parent_SOMMBeforeAfter_sommBeforeMethod */
#endif /* SOMGD_pmc_SOMMBeforeAfter_sommBeforeMethod */
#ifndef SOMGD_pmc_parent_sommBeforeMethod
  #ifdef parent_sommBeforeMethod
    #define SOMGD_pmc_parent_sommBeforeMethod
    #undef parent_sommBeforeMethod
  #else
#define parent_sommBeforeMethod Fierce_parent_SOMMBeforeAfter_sommBeforeMethod
  #endif
#endif
#define Fierce_parents_sommBeforeMethod(somSelf,ev,object,methodId,ap) (\
   Fierce_parent_SOMMBeforeAfter_sommBeforeMethod(somSelf,ev,object,methodId,ap))
#define SOMPCALLFierce_sommBeforeMethod
static somMethodProc* Fierce_pcall_sommBeforeMethod_resolved;
#define Fierce_pcall_sommBeforeMethod(somSelf,ev,object,methodId,ap) \
  ((( somTD_SOMMBeforeAfter_sommBeforeMethod ) \
    Fierce_pcall_sommBeforeMethod_resolved)(somSelf,ev,object,methodId,ap))
static boolean  SOMLINK Fierce_pcallResolve_sommBeforeMethod(Fierce somSelf, Environment *ev,
		SOMObject object,
		somId methodId,
		va_list ap)
{
   return ((somTD_SOMMBeforeAfter_sommBeforeMethod) 
      somPCallResolve(somSelf, _Fierce, _SOMMTOKEN_SOMMBeforeAfter(sommBeforeMethod)))(somSelf,ev,object,methodId,ap);
}


/*
 * Overridden method: sommAfterMethod
 */
SOM_Scope void  SOMLINK sommAfterMethod(Fierce somSelf, Environment *ev,
		SOMObject object,
		somId methodId,
		somToken returnedvalue,
		va_list ap);
static somMethodProc* Fierce_parent_SOMMBeforeAfter_sommAfterMethod_resolved;
#define Fierce_parent_SOMMBeforeAfter_sommAfterMethod(somSelf,ev,object,methodId,returnedvalue,ap) \
  ((( somTD_SOMMBeforeAfter_sommAfterMethod ) \
    Fierce_parent_SOMMBeforeAfter_sommAfterMethod_resolved)(somSelf,ev,object,methodId,returnedvalue,ap))
#ifndef SOMGD_pmc_SOMMBeforeAfter_sommAfterMethod
  #ifdef parent_SOMMBeforeAfter_sommAfterMethod
     #define SOMGD_pmc_SOMMBeforeAfter_sommAfterMethod 1
     #undef parent_SOMMBeforeAfter_sommAfterMethod
  #else
     #define parent_SOMMBeforeAfter_sommAfterMethod Fierce_parent_SOMMBeforeAfter_sommAfterMethod
  #endif /* parent_SOMMBeforeAfter_sommAfterMethod */
#endif /* SOMGD_pmc_SOMMBeforeAfter_sommAfterMethod */
#ifndef SOMGD_pmc_parent_sommAfterMethod
  #ifdef parent_sommAfterMethod
    #define SOMGD_pmc_parent_sommAfterMethod
    #undef parent_sommAfterMethod
  #else
#define parent_sommAfterMethod Fierce_parent_SOMMBeforeAfter_sommAfterMethod
  #endif
#endif
#define Fierce_parents_sommAfterMethod(somSelf,ev,object,methodId,returnedvalue,ap) (\
   Fierce_parent_SOMMBeforeAfter_sommAfterMethod(somSelf,ev,object,methodId,returnedvalue,ap))
#define SOMPCALLFierce_sommAfterMethod
static somMethodProc* Fierce_pcall_sommAfterMethod_resolved;
#define Fierce_pcall_sommAfterMethod(somSelf,ev,object,methodId,returnedvalue,ap) \
  ((( somTD_SOMMBeforeAfter_sommAfterMethod ) \
    Fierce_pcall_sommAfterMethod_resolved)(somSelf,ev,object,methodId,returnedvalue,ap))
static void  SOMLINK Fierce_pcallResolve_sommAfterMethod(Fierce somSelf, Environment *ev,
		SOMObject object,
		somId methodId,
		somToken returnedvalue,
		va_list ap)
{
   ((somTD_SOMMBeforeAfter_sommAfterMethod) 
      somPCallResolve(somSelf, _Fierce, _SOMMTOKEN_SOMMBeforeAfter(sommAfterMethod)))(somSelf,ev,object,methodId,returnedvalue,ap);
}


/*
 * Functions for attributes.
 */

/*
 * Special Method Support
 */

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

static somOverrideMethod_t2 __somC_Fierce_overridesArray[] = {
{ &(__somC_Fierce_regIdsArray[__somC_Fierce_regIds_sommBeforeMethod]), 
#ifdef SOMPCALLFierce_sommBeforeMethod
   (somMethodPtr*)&Fierce_pcall_sommBeforeMethod_resolved, 
   (somMethodPtr)Fierce_pcallResolve_sommBeforeMethod, 
#else
   (somMethodPtr*)0, 
   (somMethodPtr)0, 
#endif
(somMethodPtr)sommBeforeMethod },
{ &(__somC_Fierce_regIdsArray[__somC_Fierce_regIds_sommAfterMethod]), 
#ifdef SOMPCALLFierce_sommAfterMethod
   (somMethodPtr*)&Fierce_pcall_sommAfterMethod_resolved, 
   (somMethodPtr)Fierce_pcallResolve_sommAfterMethod, 
#else
   (somMethodPtr*)0, 
   (somMethodPtr)0, 
#endif
(somMethodPtr)sommAfterMethod }
};

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

static struct FierceClassDataStructure __somC_Fierce_resolvedMTokens;

static void * __somC_Fierce_CIB_unsharedClassVariablesPtr = 0;
som3ClassInfoStruct __somC_Fierce_ClassInfo; /* C forward reference */

SOM_CIB Fierce_ClassInitBlock = {
	1,	/* layoutVersion */
	&__somC_Fierce_classVars1,
	&__somC_Fierce_CIB_unsharedClassVariablesPtr,	/* unsharedVars */
	Fierce_MajorVersion,
	Fierce_MinorVersion,
	0x60004,	/* constFlags */
	0xFFFFFFFF,	/* inheritVars */
	0,	/* classMeta */
	(somMethodPtr) __somC_Fierce_classInit,	/* classInit */
	(somMethodPtr) 0,	/* classUninit */
	(somMethodPtr) 0,	/* legacyInit */
	(somMethodPtr) 0,	/* legacyUninit */
	(somMethodPtr) 0,	/* udaAssign */
	(somMethodPtr) 0,	/* udaConstAssign */
	0,	/* protectedDataOffset */
	0,	/* numEmbeddedObjs */
	0,	/* embeddedObjs */
	4,	/* numRegIds */
	__somC_Fierce_regIdsArray,	/* regIds */
	(sizeof(struct FierceClassDataStructure) - sizeof(SOMClass *))/sizeof(somMToken),	/* numClassDataEntries */
	(somClassDataStructurePtr)&FierceClassData,
	(somCClassDataStructurePtr)&FierceCClassData,
	&__somC_Fierce_ClassInfo,
	1,	/* numParents */
	(SOMClass**)__somC_Fierce_parentArray,	/* parents */
	1,	/* numDirectInitClasses */
	(SOMClass**)__somC_Fierce_parentArray,	/* directInitClasses */
	0,	/* numNewInitializers */
	0,	/* newInitializerSymbols */
	0,	/* numOvInitializers */
	0,	/* ovInitializerSymbols */
	0,	/* special overrides */
	0,	/* maxNDMethods */
	0,	/* newNDMethods */
	2,	/* numOverrides */
	__somC_Fierce_overridesArray,	/* overrides */
	0,	/* numInheritedSelections */
	0,	/* inheritedSelections */
	0,	/* numMigratedMethods */
	0 	/* migrated methods */
};	/* CIB */

static som3ClassDetails __somC_Fierce_ClassDetails = {
	(somMethodTabPtr)NULL,	/* mtab */
	(somMethodTabPtr *)__somC_Fierce_parentMtabs,	/* parentMtabs */
	&Fierce_ClassInitBlock,	/* CIB pointer */
	(somTD_somRenewNoInitNoZeroThunk)0,	/* somRenewNoInitNoZeroThunk */
	(long)0,	/* instanceSize */
	(somMethodProc**)NULL,	/* resolvedInits */
	(somClassDataStructure *)&__somC_Fierce_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_Fierce_ClassInfo = {
	0,	/* classObject */
	&__somC_Fierce_ClassDetails	/* class details */
};


/*
 * Class Creation and Initialization
 */

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

/* classinit function */
SOM_Scope void SOMLINK __somC_Fierce_classInit(SOMClass somSelf)
{
   SOM_IgnoreWarning(somSelf);
   Fierce_parent_SOMMBeforeAfter_sommAfterMethod_resolved = 
	somParentNumResolve(FierceCClassData.parentMtab, 1, _SOMMTOKEN_SOMMBeforeAfter(sommAfterMethod)); 
   Fierce_parent_SOMMBeforeAfter_sommBeforeMethod_resolved = 
	somParentNumResolve(FierceCClassData.parentMtab, 1, _SOMMTOKEN_SOMMBeforeAfter(sommBeforeMethod)); 
}

/* NewClass Function */
SOMEXTERN SOMDLLEXPORT SOMClass  SOMLINK FierceNewClass (long reqMajorVersion, long reqMinorVersion)
{
   if (_SOMCLASS_Fierce && _somCheckVersion(_SOMCLASS_Fierce,reqMajorVersion,reqMinorVersion))
      return _SOMCLASS_Fierce;
__somC_Fierce_parentArray[0] = (SOMClass *)&_SOMCLASS_SOMMBeforeAfter;
   /* require parents */
   if (!_SOMCLASS_SOMMBeforeAfter) SOMMBeforeAfterNewClass(SOMMBeforeAfter_MajorVersion,SOMMBeforeAfter_MinorVersion);
   /* return new class */
   return somBuildClass2( &Fierce_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_Fierce_ih */
