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

/*
 *    COMPONENT_NAME: somm
 * 
 *    ORIGINS: 27
 * 
 * 
 *     25H7912  (C)  COPYRIGHT International Business Machines Corp. 1992,1996,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.
 * 
 */


#ifndef SOM_SOMMBeforeAfter_h
#define SOM_SOMMBeforeAfter_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>
#ifndef SOM_IMPORTEXPORT_somu_sombacls
#ifdef SOM_DLL_somu
	/* export semantics */
	#if defined(SOM_DEFFILE_somu)\
	||(defined(SOM_DEFFILE_BY_DEFAULT)&&!defined(SOM_NODEFFILE_somu))\
	|| !defined(SOM_Module_sombacls_Source)
	#define SOM_IMPORTEXPORT_somu_sombacls
	#else
	#define SOM_IMPORTEXPORT_somu_sombacls SOMDLLEXPORT
	#endif
#else
	#define SOM_IMPORTEXPORT_somu_sombacls SOMDLLIMPORT
#endif
#endif

/*
 * -- 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 SOMMBeforeAfter
#define SOMMBeforeAfter SOMObject
#endif

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

/*
 * Start of bindings for IDL types
 */

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

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

#define SOMMBeforeAfter_MajorVersion 2
#define SOMMBeforeAfter_MinorVersion 2

/*
 * Declare the class creation procedure
 */
SOMEXTERN SOM_IMPORTEXPORT_somu_sombacls SOMClass  SOMLINK SOMMBeforeAfterNewClass(integer4 somtmajorVersion,
		integer4 somtminorVersion);

/*
 * Declare the ABI 2 ClassData structure
 */
SOMEXTERN struct SOMMBeforeAfterClassDataStructure {
	SOMClass classObject;
	somMToken sommBeforeMethod;
	somMToken sommAfterMethod;
} SOM_IMPORTEXPORT_somu_sombacls SOMDLINK SOMMBeforeAfterClassData;

/*
 * Declare the ABI 2 CClassData structure
 */
SOMEXTERN struct SOMMBeforeAfterCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
	somMethodProc *sommBeforeMethod;
	somMethodProc *sommAfterMethod;
} SOM_IMPORTEXPORT_somu_sombacls SOMDLINK SOMMBeforeAfterCClassData;

/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_SOMMBeforeAfter (SOMMBeforeAfterClassData.classObject)
#ifndef SOMGD_SOMMBeforeAfter
    #if (defined(_SOMMBeforeAfter) || defined(__SOMMBeforeAfter))
        #undef _SOMMBeforeAfter
        #undef __SOMMBeforeAfter
        #define SOMGD_SOMMBeforeAfter 1
    #else
        #define _SOMMBeforeAfter _SOMCLASS_SOMMBeforeAfter
    #endif /* _SOMMBeforeAfter */
#endif /* SOMGD_SOMMBeforeAfter */
#define SOMMBeforeAfter_classObj _SOMCLASS_SOMMBeforeAfter
#define _SOMMTOKEN_SOMMBeforeAfter(method) ((somMToken)SOMMBeforeAfterClassData.method)

/*
 * New and Renew macros for SOMMBeforeAfter
 */
#define SOMMBeforeAfterNew() \
   ( _SOMMBeforeAfter ? \
	_somNew(_SOMMBeforeAfter) \
	: ( SOMMBeforeAfterNewClass(\
		SOMMBeforeAfter_MajorVersion, \
		SOMMBeforeAfter_MinorVersion),\
	   _somNew(_SOMMBeforeAfter)))
#define SOMMBeforeAfterRenew(buf) \
   ( _SOMMBeforeAfter ? \
	_somRenew(_SOMMBeforeAfter, buf) \
	: ( SOMMBeforeAfterNewClass(\
		SOMMBeforeAfter_MajorVersion, \
		SOMMBeforeAfter_MinorVersion),\
	   _somRenew(_SOMMBeforeAfter, buf)))

/*
 * New Method: sommBeforeMethod
 */
typedef boolean   SOMLINK somTP_SOMMBeforeAfter_sommBeforeMethod(SOMMBeforeAfter somSelf, Environment *ev, 
		SOMObject object, 
		somId methodId, 
		va_list ap);
typedef somTP_SOMMBeforeAfter_sommBeforeMethod *somTD_SOMMBeforeAfter_sommBeforeMethod;
/*
 *  returns one of the following values:
 *       TRUE  --  continue Before/After processing
 *       FALSE --  skip to executing After method that is after
 *                 the corresponding After method
 *                 (this includes skipping the requested method)
 */
#define somMD_SOMMBeforeAfter_sommBeforeMethod "::SOMMBeforeAfter::sommBeforeMethod"
#define SOMMBeforeAfter_sommBeforeMethod(somSelf,ev,object,methodId,ap) \
    (SOM_Resolve(somSelf, SOMMBeforeAfter, sommBeforeMethod) \
	(somSelf,ev,object,methodId,ap))

/*
 * legacy support for non-system-linkage vararg stub
 * use -mnolegacy to avoid generating this stub.
 */
#ifdef SOMMBeforeAfter_VA_EXTERN
    SOMEXTERN
#else
    static
#endif
boolean   va_SOMMBeforeAfter_sommBeforeMethod(SOMMBeforeAfter somSelf, Environment *ev,
		SOMObject object,
		somId methodId,
		...)
#if (defined(SOMMBeforeAfter_VA_STUBS)||!defined(SOMMBeforeAfter_VA_EXTERN))
{
    boolean result;
    va_list ap;
    va_start(ap, methodId);
    result = SOMMBeforeAfter_sommBeforeMethod(somSelf,ev,object,methodId,ap);
    va_end(ap);
    return (result);
}    
#else
    ;
#endif

/*
 * normal vararg stubs
 */
#ifndef SOMGD_va_sommBeforeMethod
   #ifdef va_sommBeforeMethod
      #undef va_sommBeforeMethod
      #define SOMGD_va_sommBeforeMethod 1
   #else
      #define va_sommBeforeMethod somva_SOMMBeforeAfter_sommBeforeMethod
   #endif /* va_sommBeforeMethod */
#endif /* SOMGD_va_sommBeforeMethod */
#ifndef SOMGD_sommBeforeMethod
    #if (defined(_sommBeforeMethod) || defined(__sommBeforeMethod))
        #undef _sommBeforeMethod
        #undef __sommBeforeMethod
        #define SOMGD_sommBeforeMethod 1
    #else
        #define _sommBeforeMethod somva_SOMMBeforeAfter_sommBeforeMethod
    #endif /* _sommBeforeMethod */
#endif /* SOMGD_sommBeforeMethod */
#ifdef SOMMBeforeAfter_VA_EXTERN
    SOMEXTERN
#else
    static
#endif
boolean  SOMLINK somva_SOMMBeforeAfter_sommBeforeMethod(SOMMBeforeAfter somSelf, Environment *ev,
		SOMObject object,
		somId methodId,
		...)
#if (defined(SOMMBeforeAfter_VA_STUBS)||!defined(SOMMBeforeAfter_VA_EXTERN))
{
    boolean result;
    va_list ap;
    va_start(ap, methodId);
    result = SOMMBeforeAfter_sommBeforeMethod(somSelf,ev,object,methodId,ap);
    va_end(ap);
    return (result);
}    
#else
    ;
#endif

/*
 * New Method: sommAfterMethod
 */
typedef void   SOMLINK somTP_SOMMBeforeAfter_sommAfterMethod(SOMMBeforeAfter somSelf, Environment *ev, 
		SOMObject object, 
		somId methodId, 
		somToken returnedvalue, 
		va_list ap);
typedef somTP_SOMMBeforeAfter_sommAfterMethod *somTD_SOMMBeforeAfter_sommAfterMethod;
#define somMD_SOMMBeforeAfter_sommAfterMethod "::SOMMBeforeAfter::sommAfterMethod"
#define SOMMBeforeAfter_sommAfterMethod(somSelf,ev,object,methodId,returnedvalue,ap) \
    (SOM_Resolve(somSelf, SOMMBeforeAfter, sommAfterMethod) \
	(somSelf,ev,object,methodId,returnedvalue,ap))

/*
 * legacy support for non-system-linkage vararg stub
 * use -mnolegacy to avoid generating this stub.
 */
#ifdef SOMMBeforeAfter_VA_EXTERN
    SOMEXTERN
#else
    static
#endif
void   va_SOMMBeforeAfter_sommAfterMethod(SOMMBeforeAfter somSelf, Environment *ev,
		SOMObject object,
		somId methodId,
		somToken returnedvalue,
		...)
#if (defined(SOMMBeforeAfter_VA_STUBS)||!defined(SOMMBeforeAfter_VA_EXTERN))
{
    va_list ap;
    va_start(ap, returnedvalue);
    SOMMBeforeAfter_sommAfterMethod(somSelf,ev,object,methodId,returnedvalue,ap);
    va_end(ap);
}    
#else
    ;
#endif

/*
 * normal vararg stubs
 */
#ifndef SOMGD_va_sommAfterMethod
   #ifdef va_sommAfterMethod
      #undef va_sommAfterMethod
      #define SOMGD_va_sommAfterMethod 1
   #else
      #define va_sommAfterMethod somva_SOMMBeforeAfter_sommAfterMethod
   #endif /* va_sommAfterMethod */
#endif /* SOMGD_va_sommAfterMethod */
#ifndef SOMGD_sommAfterMethod
    #if (defined(_sommAfterMethod) || defined(__sommAfterMethod))
        #undef _sommAfterMethod
        #undef __sommAfterMethod
        #define SOMGD_sommAfterMethod 1
    #else
        #define _sommAfterMethod somva_SOMMBeforeAfter_sommAfterMethod
    #endif /* _sommAfterMethod */
#endif /* SOMGD_sommAfterMethod */
#ifdef SOMMBeforeAfter_VA_EXTERN
    SOMEXTERN
#else
    static
#endif
void  SOMLINK somva_SOMMBeforeAfter_sommAfterMethod(SOMMBeforeAfter somSelf, Environment *ev,
		SOMObject object,
		somId methodId,
		somToken returnedvalue,
		...)
#if (defined(SOMMBeforeAfter_VA_STUBS)||!defined(SOMMBeforeAfter_VA_EXTERN))
{
    va_list ap;
    va_start(ap, returnedvalue);
    SOMMBeforeAfter_sommAfterMethod(somSelf,ev,object,methodId,returnedvalue,ap);
    va_end(ap);
}    
#else
    ;
#endif

/*
 * Full Names for Inherited Methods
 */

#ifndef SOM_DONT_USE_INHERITED_MACROS
#define SOMMBeforeAfter_somNew SOMClass_somNew
#define SOMMBeforeAfter_somNewNoInit SOMClass_somNewNoInit
#define SOMMBeforeAfter_somRenew SOMClass_somRenew
#define SOMMBeforeAfter_somRenewNoInit SOMClass_somRenewNoInit
#define SOMMBeforeAfter_somRenewNoZero SOMClass_somRenewNoZero
#define SOMMBeforeAfter_somRenewNoInitNoZero SOMClass_somRenewNoInitNoZero
#define SOMMBeforeAfter_somAllocate SOMClass_somAllocate
#define SOMMBeforeAfter_somDeallocate SOMClass_somDeallocate
#define SOMMBeforeAfter_somJoin SOMClass_somJoin
#define SOMMBeforeAfter_somEndow SOMClass_somEndow
#define SOMMBeforeAfter_somClassOfNewClassWithParents SOMClass_somClassOfNewClassWithParents
#define SOMMBeforeAfter_somInitMIClass SOMClass_somInitMIClass
#define SOMMBeforeAfter_somAddStaticMethod SOMClass_somAddStaticMethod
#define SOMMBeforeAfter_somOverrideSMethod SOMClass_somOverrideSMethod
#define SOMMBeforeAfter_somClassReady SOMClass_somClassReady
#define SOMMBeforeAfter_somAddDynamicMethod SOMClass_somAddDynamicMethod
#define SOMMBeforeAfter_somGetName SOMClass_somGetName
#define SOMMBeforeAfter_somGetVersionNumbers SOMClass_somGetVersionNumbers
#define SOMMBeforeAfter_somGetNumMethods SOMClass_somGetNumMethods
#define SOMMBeforeAfter_somGetNumStaticMethods SOMClass_somGetNumStaticMethods
#define SOMMBeforeAfter_somGetParents SOMClass_somGetParents
#define SOMMBeforeAfter_somGetInstanceSize SOMClass_somGetInstanceSize
#define SOMMBeforeAfter_somGetInstancePartSize SOMClass_somGetInstancePartSize
#define SOMMBeforeAfter_somGetInstanceToken SOMClass_somGetInstanceToken
#define SOMMBeforeAfter_somGetMemberToken SOMClass_somGetMemberToken
#define SOMMBeforeAfter_somGetClassMtab SOMClass_somGetClassMtab
#define SOMMBeforeAfter_somGetClassData SOMClass_somGetClassData
#define SOMMBeforeAfter_somSetClassData SOMClass_somSetClassData
#define SOMMBeforeAfter__get_somDataAlignment SOMClass__get_somDataAlignment
#define SOMMBeforeAfter__get_somInstanceDataOffsets SOMClass__get_somInstanceDataOffsets
#define SOMMBeforeAfter__get_somDirectInitClasses SOMClass__get_somDirectInitClasses
#define SOMMBeforeAfter_somGetMethodDescriptor SOMClass_somGetMethodDescriptor
#define SOMMBeforeAfter_somGetMethodIndex SOMClass_somGetMethodIndex
#define SOMMBeforeAfter_somGetMethodToken SOMClass_somGetMethodToken
#define SOMMBeforeAfter_somGetNthMethodInfo SOMClass_somGetNthMethodInfo
#define SOMMBeforeAfter_somGetMarshalPlan SOMClass_somGetMarshalPlan
#define SOMMBeforeAfter_somGetMethodData SOMClass_somGetMethodData
#define SOMMBeforeAfter_somGetNthMethodData SOMClass_somGetNthMethodData
#define SOMMBeforeAfter_somFindMethod SOMClass_somFindMethod
#define SOMMBeforeAfter_somFindMethodOk SOMClass_somFindMethodOk
#define SOMMBeforeAfter_somFindSMethod SOMClass_somFindSMethod
#define SOMMBeforeAfter_somFindSMethodOk SOMClass_somFindSMethodOk
#define SOMMBeforeAfter_somLookupMethod SOMClass_somLookupMethod
#define SOMMBeforeAfter_somGetApplyStub SOMClass_somGetApplyStub
#define SOMMBeforeAfter_somGetPClsMtab SOMClass_somGetPClsMtab
#define SOMMBeforeAfter_somCheckVersion SOMClass_somCheckVersion
#define SOMMBeforeAfter_somDescendedFrom SOMClass_somDescendedFrom
#define SOMMBeforeAfter_somSupportsMethod SOMClass_somSupportsMethod
#define SOMMBeforeAfter_somDefinedMethod SOMClass_somDefinedMethod
#define SOMMBeforeAfter_somMethodImplOwner SOMClass_somMethodImplOwner
#define SOMMBeforeAfter_somGetRdStub SOMClass_somGetRdStub
#define SOMMBeforeAfter_somOverrideMtab SOMClass_somOverrideMtab
#define SOMMBeforeAfter_somDefaultInit SOMObject_somDefaultInit
#define SOMMBeforeAfter_somDestruct SOMObject_somDestruct
#define SOMMBeforeAfter_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define SOMMBeforeAfter_somDefaultAssign SOMObject_somDefaultAssign
#define SOMMBeforeAfter_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define SOMMBeforeAfter_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define SOMMBeforeAfter_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define SOMMBeforeAfter_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define SOMMBeforeAfter_somDefaultVAssign SOMObject_somDefaultVAssign
#define SOMMBeforeAfter_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define SOMMBeforeAfter_somInit SOMObject_somInit
#define SOMMBeforeAfter_somUninit SOMObject_somUninit
#define SOMMBeforeAfter_somFree SOMObject_somFree
#define SOMMBeforeAfter_somGetClass SOMObject_somGetClass
#define SOMMBeforeAfter_somGetClassName SOMObject_somGetClassName
#define SOMMBeforeAfter_somGetSize SOMObject_somGetSize
#define SOMMBeforeAfter_somIsA SOMObject_somIsA
#define SOMMBeforeAfter_somIsInstanceOf SOMObject_somIsInstanceOf
#define SOMMBeforeAfter_somRespondsTo SOMObject_somRespondsTo
#define SOMMBeforeAfter_somDispatch SOMObject_somDispatch
#define SOMMBeforeAfter_somClassDispatch SOMObject_somClassDispatch
#define SOMMBeforeAfter_somCastObj SOMObject_somCastObj
#define SOMMBeforeAfter_somResetObj SOMObject_somResetObj
#define SOMMBeforeAfter_somPrintSelf SOMObject_somPrintSelf
#define SOMMBeforeAfter_somDumpSelf SOMObject_somDumpSelf
#define SOMMBeforeAfter_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_SOMMBeforeAfter_h */
