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

/*
 * 
 *   COMPONENT_NAME: some
 * 
 *   ORIGINS: 27
 * 
 * 
 *   10H9767, 10H9769  (C) COPYRIGHT International Business Machines Corp. 1992,1994
 *   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.6 9/1/94 19:26:58 [9/21/94 17:47:11]
 * 
 */


#ifndef SOM_SOMTUnionEntryC_h
#define SOM_SOMTUnionEntryC_h


#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 class data structures as resolution macros
 */
#define SOMTUnionEntryCClassData (*resolve_SOMTUnionEntryCClassData())
#define SOMTUnionEntryCCClassData (*resolve_SOMTUnionEntryCCClassData())

/*
 * Define the class name as an object type
 */
#ifndef SOMTUnionEntryC
#define SOMTUnionEntryC SOMObject
#endif
#include <scentry.h>

/*
 * Start of user-defined 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 user-defined types.
 */

#define SOMTUnionEntryC_MajorVersion 2
#define SOMTUnionEntryC_MinorVersion 1

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define SOMTUnionEntryCNewClass c
#define SOMTUnionEntryCClassData d
#define SOMTUnionEntryCCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define SOMTUnionEntryC_classObj SOMTUnionEntryCClassData.classObject
#define _SOMTUnionEntryC SOMTUnionEntryC_classObj

/*
 * Declare the class creation procedure
 */
SOMEXTERN SOMClass * SOMLINK SOMTUnionEntryCNewClass(integer4 somntmajorVersion,
		integer4 somntminorVersion);

/*
 * Declare the class data structure
 */
SOMEXTERN struct SOMTUnionEntryCClassDataStructure {
	SOMClass *classObject;
	somMToken _get_somtSwitchType;
	somMToken somtGetFirstCaseEntry;
	somMToken somtGetNextCaseEntry;
}  _SOMTUnionEntryCClassData;
SOMEXTERN struct SOMTUnionEntryCClassDataStructure * SOMLINK resolve_SOMTUnionEntryCClassData(void);

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct SOMTUnionEntryCCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
}  _SOMTUnionEntryCCClassData;
SOMEXTERN struct SOMTUnionEntryCCClassDataStructure * SOMLINK resolve_SOMTUnionEntryCCClassData(void);

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

/*
 * Override method: somDumpSelfInt
 */
#define SOMTUnionEntryC_somDumpSelfInt(somSelf,level) \
	SOMObject_somDumpSelfInt(somSelf,level)

/*
 * Override method: somtSetSymbolsOnEntry
 */
#define SOMTUnionEntryC_somtSetSymbolsOnEntry(somSelf,emitter,prefix) \
	SOMTEntryC_somtSetSymbolsOnEntry(somSelf,emitter,prefix)

/*
 * New Method: _get_somtSwitchType
 */
typedef SOMTEntryC*   (SOMLINK * somTD_SOMTUnionEntryC__get_somtSwitchType)(SOMTUnionEntryC *somSelf);
#define somMD_SOMTUnionEntryC__get_somtSwitchType "::SOMTUnionEntryC::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 * somTD_SOMTUnionEntryC_somtGetFirstCaseEntry)(SOMTUnionEntryC *somSelf);
#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 * somTD_SOMTUnionEntryC_somtGetNextCaseEntry)(SOMTUnionEntryC *somSelf);
#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 */
#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_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_somInit SOMObject_somInit
#define SOMTUnionEntryC_somFree SOMObject_somFree
#define SOMTUnionEntryC_somUninit SOMObject_somUninit
#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
#define SOMTUnionEntryC_somDispatchV SOMObject_somDispatchV
#define SOMTUnionEntryC_somDispatchL SOMObject_somDispatchL
#define SOMTUnionEntryC_somDispatchA SOMObject_somDispatchA
#define SOMTUnionEntryC_somDispatchD SOMObject_somDispatchD
#define SOMTUnionEntryC_somPrintSelf SOMObject_somPrintSelf
#define SOMTUnionEntryC_somDumpSelf SOMObject_somDumpSelf
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_SOMTUnionEntryC_h */
