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

/*
 * 
 *    COMPONENT_NAME: somi
 * 
 *    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.
 * 
 *   InterfaceDef: CORBA Interface for interface definitions
 *   See CORBA 7.5.4, p.134
 */


#ifndef SOM_InterfaceDef_h
#define SOM_InterfaceDef_h


/*
 * Passthru lines: File: "C.h", "before"
 */

    #include <somtcnst.h>
    #include <somir.h>
    #include <operatdf.h>
    #include <attribdf.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 InterfaceDefClassData (*resolve_InterfaceDefClassData())
#define InterfaceDefCClassData (*resolve_InterfaceDefCClassData())

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

/*
 * Start of user-defined types:
 */
#ifndef SOMClass
    #define SOMClass SOMObject
#endif /* SOMClass */
#ifndef Container
    #define Container SOMObject
#endif /* Container */
struct OperationDef_OperationDescription;
#ifndef _IDL_SEQUENCE_OperationDef_OperationDescription_defined
#define _IDL_SEQUENCE_OperationDef_OperationDescription_defined
typedef struct {
    unsigned long _maximum;
    unsigned long _length;
    struct OperationDef_OperationDescription *_buffer;
} _IDL_SEQUENCE_OperationDef_OperationDescription;
#endif /* _IDL_SEQUENCE_OperationDef_OperationDescription_defined */ 
struct AttributeDef_AttributeDescription;
#ifndef _IDL_SEQUENCE_AttributeDef_AttributeDescription_defined
#define _IDL_SEQUENCE_AttributeDef_AttributeDescription_defined
typedef struct {
    unsigned long _maximum;
    unsigned long _length;
    struct AttributeDef_AttributeDescription *_buffer;
} _IDL_SEQUENCE_AttributeDef_AttributeDescription;
#endif /* _IDL_SEQUENCE_AttributeDef_AttributeDescription_defined */ 
typedef
struct InterfaceDef_FullInterfaceDescription {
Identifier name;
RepositoryId id;
RepositoryId defined_in;
_IDL_SEQUENCE_OperationDef_OperationDescription operation;
_IDL_SEQUENCE_AttributeDef_AttributeDescription attributes;
} InterfaceDef_FullInterfaceDescription;
typedef
struct InterfaceDef_InterfaceDescription {
Identifier name;
RepositoryId id;
RepositoryId defined_in;
} InterfaceDef_InterfaceDescription;

/*
 *  The inherited describe method returns an instance of this
 *  (InterfaceDescription) structure in the "value" member of the
 *  Description structure defined in the Contained interface.
 *  The inherited describe_contents method in the Container
 *  interface returns a sequence of these Description structures
 *  each carrying a reference to an InterfaceDescription structure
 *  in its "value" member.
 */

#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD__IDL_SEQUENCE_OperationDescription
    #ifdef _IDL_SEQUENCE_OperationDescription
        #undef _IDL_SEQUENCE_OperationDescription
        #define SOMTGD__IDL_SEQUENCE_OperationDescription 1
    #else
        #define _IDL_SEQUENCE_OperationDescription _IDL_SEQUENCE_OperationDef_OperationDescription
    #endif /* _IDL_SEQUENCE_OperationDescription */
#endif /* SOMTGD__IDL_SEQUENCE_OperationDescription */
#ifndef SOMTGD__IDL_SEQUENCE_AttributeDescription
    #ifdef _IDL_SEQUENCE_AttributeDescription
        #undef _IDL_SEQUENCE_AttributeDescription
        #define SOMTGD__IDL_SEQUENCE_AttributeDescription 1
    #else
        #define _IDL_SEQUENCE_AttributeDescription _IDL_SEQUENCE_AttributeDef_AttributeDescription
    #endif /* _IDL_SEQUENCE_AttributeDescription */
#endif /* SOMTGD__IDL_SEQUENCE_AttributeDescription */
#ifndef SOMTGD_FullInterfaceDescription
    #ifdef FullInterfaceDescription
        #undef FullInterfaceDescription
        #define SOMTGD_FullInterfaceDescription 1
    #else
        #define FullInterfaceDescription InterfaceDef_FullInterfaceDescription
    #endif /* FullInterfaceDescription */
#endif /* SOMTGD_FullInterfaceDescription */
#ifndef SOMTGD_InterfaceDescription
    #ifdef InterfaceDescription
        #undef InterfaceDescription
        #define SOMTGD_InterfaceDescription 1
    #else
        #define InterfaceDescription InterfaceDef_InterfaceDescription
    #endif /* InterfaceDescription */
#endif /* SOMTGD_InterfaceDescription */
#endif /* SOM_DONT_USE_SHORT_NAMES */

/*
 * End of user-defined types.
 */

#define InterfaceDef_MajorVersion 2
#define InterfaceDef_MinorVersion 1

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define InterfaceDefNewClass c
#define InterfaceDefClassData d
#define InterfaceDefCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define InterfaceDef_classObj InterfaceDefClassData.classObject
#define _InterfaceDef InterfaceDef_classObj

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct InterfaceDefClassDataStructure {
	SOMClass *classObject;
	somMToken describe_interface;
	somMToken _get_base_interfaces;
	somMToken _set_base_interfaces;
	somMToken _get_instanceData;
	somMToken _set_instanceData;
}  _InterfaceDefClassData;
SOMEXTERN struct InterfaceDefClassDataStructure * SOMLINK resolve_InterfaceDefClassData(void);

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct InterfaceDefCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
}  _InterfaceDefCClassData;
SOMEXTERN struct InterfaceDefCClassDataStructure * SOMLINK resolve_InterfaceDefCClassData(void);

/*
 * New and Renew macros for InterfaceDef
 */
#define InterfaceDefNew() \
   (_somNew(_InterfaceDef ? _InterfaceDef : InterfaceDefNewClass(InterfaceDef_MajorVersion, InterfaceDef_MinorVersion)))
#define InterfaceDefRenew(buf) \
   (_somRenew(_InterfaceDef ? _InterfaceDef : InterfaceDefNewClass(InterfaceDef_MajorVersion, InterfaceDef_MinorVersion), buf))

/*
 * Override method: somInit
 */
#define InterfaceDef_somInit(somSelf) \
	SOMObject_somInit(somSelf)

/*
 * Override method: somUninit
 */
#define InterfaceDef_somUninit(somSelf) \
	SOMObject_somUninit(somSelf)

/*
 * Override method: somDumpSelf
 */
#define InterfaceDef_somDumpSelf(somSelf,level) \
	SOMObject_somDumpSelf(somSelf,level)

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

/*
 * Override method: within
 */
#define InterfaceDef_within(somSelf,ev) \
	Contained_within(somSelf,ev)

/*
 * Override method: describe
 */
#define InterfaceDef_describe(somSelf,ev) \
	Contained_describe(somSelf,ev)

/*
 * New Method: _get_base_interfaces
 */
typedef _IDL_SEQUENCE_string   (SOMLINK * somTD_InterfaceDef__get_base_interfaces)(InterfaceDef *somSelf, Environment *ev);
#define somMD_InterfaceDef__get_base_interfaces "::InterfaceDef::base_interfaces"
#define InterfaceDef__get_base_interfaces(somSelf,ev) \
    (SOM_Resolve(somSelf, InterfaceDef, _get_base_interfaces) \
	(somSelf,ev))
#ifndef SOMGD_get_base_interfaces
    #if (defined(_get_base_interfaces) || defined(__get_base_interfaces))
        #undef _get_base_interfaces
        #undef __get_base_interfaces
        #define SOMGD_get_base_interfaces 1
    #else
        #define __get_base_interfaces InterfaceDef__get_base_interfaces
    #endif /* __get_base_interfaces */
#endif /* SOMGD_get_base_interfaces */

/*
 * New Method: _set_base_interfaces
 */
typedef void   (SOMLINK * somTD_InterfaceDef__set_base_interfaces)(InterfaceDef *somSelf, Environment *ev,
		_IDL_SEQUENCE_string* base_interfaces);
#define somMD_InterfaceDef__set_base_interfaces "::InterfaceDef::base_interfaces"
#define InterfaceDef__set_base_interfaces(somSelf,ev,base_interfaces) \
    (SOM_Resolve(somSelf, InterfaceDef, _set_base_interfaces) \
	(somSelf,ev,base_interfaces))
#ifndef SOMGD_set_base_interfaces
    #if (defined(_set_base_interfaces) || defined(__set_base_interfaces))
        #undef _set_base_interfaces
        #undef __set_base_interfaces
        #define SOMGD_set_base_interfaces 1
    #else
        #define __set_base_interfaces InterfaceDef__set_base_interfaces
    #endif /* __set_base_interfaces */
#endif /* SOMGD_set_base_interfaces */

/*
 * New Method: describe_interface
 */
typedef InterfaceDef_FullInterfaceDescription   (SOMLINK * somTD_InterfaceDef_describe_interface)(InterfaceDef *somSelf, Environment *ev);
#define somMD_InterfaceDef_describe_interface "::InterfaceDef::describe_interface"
#define InterfaceDef_describe_interface(somSelf,ev) \
    (SOM_Resolve(somSelf, InterfaceDef, describe_interface) \
	(somSelf,ev))
#ifndef SOMGD_describe_interface
    #if (defined(_describe_interface) || defined(__describe_interface))
        #undef _describe_interface
        #undef __describe_interface
        #define SOMGD_describe_interface 1
    #else
        #define _describe_interface InterfaceDef_describe_interface
    #endif /* _describe_interface */
#endif /* SOMGD_describe_interface */

/*
 * New Method: _get_instanceData
 */
typedef TypeCode   (SOMLINK * somTD_InterfaceDef__get_instanceData)(InterfaceDef *somSelf, Environment *ev);
#define somMD_InterfaceDef__get_instanceData "::InterfaceDef::instanceData"
#define InterfaceDef__get_instanceData(somSelf,ev) \
    (SOM_Resolve(somSelf, InterfaceDef, _get_instanceData) \
	(somSelf,ev))
#ifndef SOMGD_get_instanceData
    #if (defined(_get_instanceData) || defined(__get_instanceData))
        #undef _get_instanceData
        #undef __get_instanceData
        #define SOMGD_get_instanceData 1
    #else
        #define __get_instanceData InterfaceDef__get_instanceData
    #endif /* __get_instanceData */
#endif /* SOMGD_get_instanceData */

/*
 * New Method: _set_instanceData
 */
typedef void   (SOMLINK * somTD_InterfaceDef__set_instanceData)(InterfaceDef *somSelf, Environment *ev,
		TypeCode instanceData);
#define somMD_InterfaceDef__set_instanceData "::InterfaceDef::instanceData"
#define InterfaceDef__set_instanceData(somSelf,ev,instanceData) \
    (SOM_Resolve(somSelf, InterfaceDef, _set_instanceData) \
	(somSelf,ev,instanceData))
#ifndef SOMGD_set_instanceData
    #if (defined(_set_instanceData) || defined(__set_instanceData))
        #undef _set_instanceData
        #undef __set_instanceData
        #define SOMGD_set_instanceData 1
    #else
        #define __set_instanceData InterfaceDef__set_instanceData
    #endif /* __set_instanceData */
#endif /* SOMGD_set_instanceData */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define InterfaceDef__get_name Contained__get_name
#define InterfaceDef__set_name Contained__set_name
#define InterfaceDef__get_id Contained__get_id
#define InterfaceDef__set_id Contained__set_id
#define InterfaceDef__get_defined_in Contained__get_defined_in
#define InterfaceDef__set_defined_in Contained__set_defined_in
#define InterfaceDef__get_somModifiers Contained__get_somModifiers
#define InterfaceDef__set_somModifiers Contained__set_somModifiers
#define InterfaceDef_somDefaultInit SOMObject_somDefaultInit
#define InterfaceDef_somDestruct SOMObject_somDestruct
#define InterfaceDef_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define InterfaceDef_somDefaultAssign SOMObject_somDefaultAssign
#define InterfaceDef_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define InterfaceDef_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define InterfaceDef_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define InterfaceDef_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define InterfaceDef_somDefaultVAssign SOMObject_somDefaultVAssign
#define InterfaceDef_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define InterfaceDef_somFree SOMObject_somFree
#define InterfaceDef_somGetClass SOMObject_somGetClass
#define InterfaceDef_somGetClassName SOMObject_somGetClassName
#define InterfaceDef_somGetSize SOMObject_somGetSize
#define InterfaceDef_somIsA SOMObject_somIsA
#define InterfaceDef_somIsInstanceOf SOMObject_somIsInstanceOf
#define InterfaceDef_somRespondsTo SOMObject_somRespondsTo
#define InterfaceDef_somDispatch SOMObject_somDispatch
#define InterfaceDef_somClassDispatch SOMObject_somClassDispatch
#define InterfaceDef_somCastObj SOMObject_somCastObj
#define InterfaceDef_somResetObj SOMObject_somResetObj
#define InterfaceDef_somDispatchV SOMObject_somDispatchV
#define InterfaceDef_somDispatchL SOMObject_somDispatchL
#define InterfaceDef_somDispatchA SOMObject_somDispatchA
#define InterfaceDef_somDispatchD SOMObject_somDispatchD
#define InterfaceDef_somPrintSelf SOMObject_somPrintSelf
#define InterfaceDef_contents Container_contents
#define InterfaceDef_lookup_name Container_lookup_name
#define InterfaceDef_describe_contents Container_describe_contents
#define InterfaceDef_somDefaultInit SOMObject_somDefaultInit
#define InterfaceDef_somDestruct SOMObject_somDestruct
#define InterfaceDef_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define InterfaceDef_somDefaultAssign SOMObject_somDefaultAssign
#define InterfaceDef_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define InterfaceDef_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define InterfaceDef_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define InterfaceDef_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define InterfaceDef_somDefaultVAssign SOMObject_somDefaultVAssign
#define InterfaceDef_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define InterfaceDef_somFree SOMObject_somFree
#define InterfaceDef_somGetClass SOMObject_somGetClass
#define InterfaceDef_somGetClassName SOMObject_somGetClassName
#define InterfaceDef_somGetSize SOMObject_somGetSize
#define InterfaceDef_somIsA SOMObject_somIsA
#define InterfaceDef_somIsInstanceOf SOMObject_somIsInstanceOf
#define InterfaceDef_somRespondsTo SOMObject_somRespondsTo
#define InterfaceDef_somDispatch SOMObject_somDispatch
#define InterfaceDef_somClassDispatch SOMObject_somClassDispatch
#define InterfaceDef_somCastObj SOMObject_somCastObj
#define InterfaceDef_somResetObj SOMObject_somResetObj
#define InterfaceDef_somDispatchV SOMObject_somDispatchV
#define InterfaceDef_somDispatchL SOMObject_somDispatchL
#define InterfaceDef_somDispatchA SOMObject_somDispatchA
#define InterfaceDef_somDispatchD SOMObject_somDispatchD
#define InterfaceDef_somPrintSelf SOMObject_somPrintSelf
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_InterfaceDef_h */
