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

/*
 *   COMPONENT_NAME: some
 * 
 *   ORIGINS: 27
 * 
 * 
 *    25H7912  (C)  COPYRIGHT International Business Machines Corp. 1992,1994,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.
 *  @(#) somc/sctypes.h 2.10 5/22/96 13:13:27 [12/22/96 21:12:13]
 * 
 */


#ifndef SOM_SOMTUnionEntryC_h
#define SOM_SOMTUnionEntryC_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_some_scunion
#ifdef SOM_DLL_some
	/* export semantics */
	#if defined(SOM_DEFFILE_some)\
	||(defined(SOM_DEFFILE_BY_DEFAULT)&&!defined(SOM_NODEFFILE_some))\
	|| !defined(SOM_Module_scunion_Source)
	#define SOM_IMPORTEXPORT_some_scunion
	#else
	#define SOM_IMPORTEXPORT_some_scunion SOMDLLEXPORT
	#endif
#else
	#define SOM_IMPORTEXPORT_some_scunion 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 SOMTUnionEntryC
#define SOMTUnionEntryC SOMObject
#endif

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

/*
 * Start of bindings for IDL types
 */

#ifndef SOMClass
    #define SOMClass SOMObject
#endif /* SOMClass */
#ifndef SOMTEntryC
    #define SOMTEntryC SOMObject
#endif /* SOMTEntryC */
#ifndef SOMTEmitC
    #define SOMTEmitC SOMObject
#endif /* SOMTEmitC */
#ifndef SOMTMetaClassEntryC
    #define SOMTMetaClassEntryC SOMObject
#endif /* SOMTMetaClassEntryC */
#ifndef SOMTAttributeEntryC
    #define SOMTAttributeEntryC SOMObject
#endif /* SOMTAttributeEntryC */
#ifndef SOMTTypedefEntryC
    #define SOMTTypedefEntryC SOMObject
#endif /* SOMTTypedefEntryC */
#ifndef SOMTBaseClassEntryC
    #define SOMTBaseClassEntryC SOMObject
#endif /* SOMTBaseClassEntryC */
#ifndef SOMTPassthruEntryC
    #define SOMTPassthruEntryC SOMObject
#endif /* SOMTPassthruEntryC */
#ifndef SOMTDataEntryC
    #define SOMTDataEntryC SOMObject
#endif /* SOMTDataEntryC */
#ifndef SOMTMethodEntryC
    #define SOMTMethodEntryC SOMObject
#endif /* SOMTMethodEntryC */
#ifndef SOMTClassEntryC
    #define SOMTClassEntryC SOMObject
#endif /* SOMTClassEntryC */
#ifndef SOMTModuleEntryC
    #define SOMTModuleEntryC SOMObject
#endif /* SOMTModuleEntryC */
#ifndef SOMTParameterEntryC
    #define SOMTParameterEntryC SOMObject
#endif /* SOMTParameterEntryC */
#ifndef SOMTStructEntryC
    #define SOMTStructEntryC SOMObject
#endif /* SOMTStructEntryC */
#ifndef SOMTUnionEntryC
    #define SOMTUnionEntryC SOMObject
#endif /* SOMTUnionEntryC */
#ifndef SOMTEnumEntryC
    #define SOMTEnumEntryC SOMObject
#endif /* SOMTEnumEntryC */
#ifndef SOMTConstEntryC
    #define SOMTConstEntryC SOMObject
#endif /* SOMTConstEntryC */
#ifndef SOMTSequenceEntryC
    #define SOMTSequenceEntryC SOMObject
#endif /* SOMTSequenceEntryC */
#ifndef SOMTStringEntryC
    #define SOMTStringEntryC SOMObject
#endif /* SOMTStringEntryC */
#ifndef SOMTEnumNameEntryC
    #define SOMTEnumNameEntryC SOMObject
#endif /* SOMTEnumNameEntryC */
#ifndef SOMTCommonEntryC
    #define SOMTCommonEntryC SOMObject
#endif /* SOMTCommonEntryC */
#ifndef SOMTUserDefinedTypeEntryC
    #define SOMTUserDefinedTypeEntryC SOMObject
#endif /* SOMTUserDefinedTypeEntryC */
typedef
struct SOMTUnionEntryC_somtLabelList {
string  label;
struct SOMTUnionEntryC_somtLabelList* nextLabel;
} SOMTUnionEntryC_somtLabelList;
/*
 *  Linked list of case labels.
 */

typedef
struct SOMTUnionEntryC_somtCaseEntry {
struct SOMTUnionEntryC_somtLabelList* caseLabels;
/*
 *  The labels for this case.
 */

SOMTEntryC memberType;
/*
 *  The type of the member.
 */

SOMTDataEntryC memberDeclarator;
/*
 *  The declarator for the member.
 */

} SOMTUnionEntryC_somtCaseEntry;
/*
 *  A case for the union.
 */


#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_somtLabelList
    #ifdef somtLabelList
        #undef somtLabelList
        #define SOMTGD_somtLabelList 1
    #else
        #define somtLabelList SOMTUnionEntryC_somtLabelList
    #endif /* somtLabelList */
#endif /* SOMTGD_somtLabelList */
#ifndef SOMTGD_somtCaseEntry
    #ifdef somtCaseEntry
        #undef somtCaseEntry
        #define SOMTGD_somtCaseEntry 1
    #else
        #define somtCaseEntry SOMTUnionEntryC_somtCaseEntry
    #endif /* somtCaseEntry */
#endif /* SOMTGD_somtCaseEntry */
#endif /* SOM_DONT_USE_SHORT_NAMES */

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

#define SOMTUnionEntryC_MajorVersion 2
#define SOMTUnionEntryC_MinorVersion 1

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

/*
 * Declare the ABI 2 ClassData structure
 */
SOMEXTERN struct SOMTUnionEntryCClassDataStructure {
	SOMClass classObject;
	somMToken _get_somtSwitchType;
	somMToken somtGetFirstCaseEntry;
	somMToken somtGetNextCaseEntry;
} SOM_IMPORTEXPORT_some_scunion SOMDLINK SOMTUnionEntryCClassData;

/*
 * Declare the ABI 2 CClassData structure
 */
SOMEXTERN struct SOMTUnionEntryCCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
} SOM_IMPORTEXPORT_some_scunion SOMDLINK SOMTUnionEntryCCClassData;

/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_SOMTUnionEntryC (SOMTUnionEntryCClassData.classObject)
#ifndef SOMGD_SOMTUnionEntryC
    #if (defined(_SOMTUnionEntryC) || defined(__SOMTUnionEntryC))
        #undef _SOMTUnionEntryC
        #undef __SOMTUnionEntryC
        #define SOMGD_SOMTUnionEntryC 1
    #else
        #define _SOMTUnionEntryC _SOMCLASS_SOMTUnionEntryC
    #endif /* _SOMTUnionEntryC */
#endif /* SOMGD_SOMTUnionEntryC */
#define SOMTUnionEntryC_classObj _SOMCLASS_SOMTUnionEntryC
#define _SOMMTOKEN_SOMTUnionEntryC(method) ((somMToken)SOMTUnionEntryCClassData.method)

/*
 * New and Renew macros for SOMTUnionEntryC
 */
#define SOMTUnionEntryCNew() \
   ( _SOMTUnionEntryC ? \
	_somNew(_SOMTUnionEntryC) \
	: ( SOMTUnionEntryCNewClass(\
		SOMTUnionEntryC_MajorVersion, \
		SOMTUnionEntryC_MinorVersion),\
	   _somNew(_SOMTUnionEntryC)))
#define SOMTUnionEntryCRenew(buf) \
   ( _SOMTUnionEntryC ? \
	_somRenew(_SOMTUnionEntryC, buf) \
	: ( SOMTUnionEntryCNewClass(\
		SOMTUnionEntryC_MajorVersion, \
		SOMTUnionEntryC_MinorVersion),\
	   _somRenew(_SOMTUnionEntryC, buf)))

/*
 * New Method: _get_somtSwitchType
 */
typedef SOMTEntryC   SOMLINK somTP_SOMTUnionEntryC__get_somtSwitchType(SOMTUnionEntryC somSelf);
typedef somTP_SOMTUnionEntryC__get_somtSwitchType *somTD_SOMTUnionEntryC__get_somtSwitchType;
/*
 *  The switch type of the union.
 */
#define somMD_SOMTUnionEntryC__get_somtSwitchType "::SOMTUnionEntryC::_get_somtSwitchType"
#define SOMTUnionEntryC__get_somtSwitchType(somSelf) \
    (SOM_Resolve(somSelf, SOMTUnionEntryC, _get_somtSwitchType) \
	(somSelf))
#ifndef SOMGD_get_somtSwitchType
    #if (defined(_get_somtSwitchType) || defined(__get_somtSwitchType))
        #undef _get_somtSwitchType
        #undef __get_somtSwitchType
        #define SOMGD_get_somtSwitchType 1
    #else
        #define __get_somtSwitchType SOMTUnionEntryC__get_somtSwitchType
    #endif /* __get_somtSwitchType */
#endif /* SOMGD_get_somtSwitchType */

/*
 * New Method: somtGetFirstCaseEntry
 */
typedef SOMTUnionEntryC_somtCaseEntry*   SOMLINK somTP_SOMTUnionEntryC_somtGetFirstCaseEntry(SOMTUnionEntryC somSelf);
typedef somTP_SOMTUnionEntryC_somtGetFirstCaseEntry *somTD_SOMTUnionEntryC_somtGetFirstCaseEntry;
/*
 *  The first case for the union.
 */
#define somMD_SOMTUnionEntryC_somtGetFirstCaseEntry "::SOMTUnionEntryC::somtGetFirstCaseEntry"
#define SOMTUnionEntryC_somtGetFirstCaseEntry(somSelf) \
    (SOM_Resolve(somSelf, SOMTUnionEntryC, somtGetFirstCaseEntry) \
	(somSelf))
#ifndef SOMGD_somtGetFirstCaseEntry
    #if (defined(_somtGetFirstCaseEntry) || defined(__somtGetFirstCaseEntry))
        #undef _somtGetFirstCaseEntry
        #undef __somtGetFirstCaseEntry
        #define SOMGD_somtGetFirstCaseEntry 1
    #else
        #define _somtGetFirstCaseEntry SOMTUnionEntryC_somtGetFirstCaseEntry
    #endif /* _somtGetFirstCaseEntry */
#endif /* SOMGD_somtGetFirstCaseEntry */

/*
 * New Method: somtGetNextCaseEntry
 */
typedef SOMTUnionEntryC_somtCaseEntry*   SOMLINK somTP_SOMTUnionEntryC_somtGetNextCaseEntry(SOMTUnionEntryC somSelf);
typedef somTP_SOMTUnionEntryC_somtGetNextCaseEntry *somTD_SOMTUnionEntryC_somtGetNextCaseEntry;
/*
 *  The next case for the union, relative to the previous
 *  call to this method or to somtGetFirstCaseEntry.
 */
#define somMD_SOMTUnionEntryC_somtGetNextCaseEntry "::SOMTUnionEntryC::somtGetNextCaseEntry"
#define SOMTUnionEntryC_somtGetNextCaseEntry(somSelf) \
    (SOM_Resolve(somSelf, SOMTUnionEntryC, somtGetNextCaseEntry) \
	(somSelf))
#ifndef SOMGD_somtGetNextCaseEntry
    #if (defined(_somtGetNextCaseEntry) || defined(__somtGetNextCaseEntry))
        #undef _somtGetNextCaseEntry
        #undef __somtGetNextCaseEntry
        #define SOMGD_somtGetNextCaseEntry 1
    #else
        #define _somtGetNextCaseEntry SOMTUnionEntryC_somtGetNextCaseEntry
    #endif /* _somtGetNextCaseEntry */
#endif /* SOMGD_somtGetNextCaseEntry */

/*
 * Full Names for Inherited Methods
 */
/* overridden methods */
#define SOMTUnionEntryC_somtSetSymbolsOnEntry SOMTEntryC_somtSetSymbolsOnEntry
#define SOMTUnionEntryC_somDumpSelfInt SOMObject_somDumpSelfInt

#ifndef SOM_DONT_USE_INHERITED_MACROS
#define SOMTUnionEntryC__get_somtEntryName SOMTEntryC__get_somtEntryName
#define SOMTUnionEntryC__set_somtEntryName SOMTEntryC__set_somtEntryName
#define SOMTUnionEntryC__get_somtElementType SOMTEntryC__get_somtElementType
#define SOMTUnionEntryC__set_somtElementType SOMTEntryC__set_somtElementType
#define SOMTUnionEntryC__get_somtElementTypeName SOMTEntryC__get_somtElementTypeName
#define SOMTUnionEntryC__get_somtEntryComment SOMTEntryC__get_somtEntryComment
#define SOMTUnionEntryC__get_somtSourceLineNumber SOMTEntryC__get_somtSourceLineNumber
#define SOMTUnionEntryC__get_somtTypeCode SOMTEntryC__get_somtTypeCode
#define SOMTUnionEntryC__get_somtIsReference SOMTEntryC__get_somtIsReference
#define SOMTUnionEntryC__get_somtIDLScopedName SOMTEntryC__get_somtIDLScopedName
#define SOMTUnionEntryC__get_somtCScopedName SOMTEntryC__get_somtCScopedName
#define SOMTUnionEntryC_somtGetModifierValue SOMTEntryC_somtGetModifierValue
#define SOMTUnionEntryC_somtGetFirstModifier SOMTEntryC_somtGetFirstModifier
#define SOMTUnionEntryC_somtGetNextModifier SOMTEntryC_somtGetNextModifier
#define SOMTUnionEntryC_somtFormatModifier SOMTEntryC_somtFormatModifier
#define SOMTUnionEntryC_somtGetModifierList SOMTEntryC_somtGetModifierList
#define SOMTUnionEntryC_somtSetEntryStruct SOMTEntryC_somtSetEntryStruct
#define SOMTUnionEntryC_somInit SOMObject_somInit
#define SOMTUnionEntryC_somUninit SOMObject_somUninit
#define SOMTUnionEntryC_somPrintSelf SOMObject_somPrintSelf
#define SOMTUnionEntryC_somDumpSelf SOMObject_somDumpSelf
#define SOMTUnionEntryC_somDefaultInit SOMObject_somDefaultInit
#define SOMTUnionEntryC_somDestruct SOMObject_somDestruct
#define SOMTUnionEntryC_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define SOMTUnionEntryC_somDefaultAssign SOMObject_somDefaultAssign
#define SOMTUnionEntryC_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define SOMTUnionEntryC_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define SOMTUnionEntryC_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define SOMTUnionEntryC_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define SOMTUnionEntryC_somDefaultVAssign SOMObject_somDefaultVAssign
#define SOMTUnionEntryC_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define SOMTUnionEntryC_somFree SOMObject_somFree
#define SOMTUnionEntryC_somGetClass SOMObject_somGetClass
#define SOMTUnionEntryC_somGetClassName SOMObject_somGetClassName
#define SOMTUnionEntryC_somGetSize SOMObject_somGetSize
#define SOMTUnionEntryC_somIsA SOMObject_somIsA
#define SOMTUnionEntryC_somIsInstanceOf SOMObject_somIsInstanceOf
#define SOMTUnionEntryC_somRespondsTo SOMObject_somRespondsTo
#define SOMTUnionEntryC_somDispatch SOMObject_somDispatch
#define SOMTUnionEntryC_somClassDispatch SOMObject_somClassDispatch
#define SOMTUnionEntryC_somCastObj SOMObject_somCastObj
#define SOMTUnionEntryC_somResetObj SOMObject_somResetObj
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_SOMTUnionEntryC_h */
