
/*
 * This file was generated by the SOM Compiler.
 * FileName: attribdf.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.
 * 
 *   AttributeDef: CORBA Interface for attributed definitions
 *   See CORBA 7.5.5, p.135
 */


#ifndef SOM_AttributeDef_h
#define SOM_AttributeDef_h


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

    #include <somtcnst.h>
    #include <somir.h>
    #include <containd.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 AttributeDefClassData (*resolve_AttributeDefClassData())
#define AttributeDefCClassData (*resolve_AttributeDefCClassData())

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

/*
 * Start of user-defined types:
 */
#ifndef SOMClass
    #define SOMClass SOMObject
#endif /* SOMClass */
#ifndef Container
    #define Container SOMObject
#endif /* Container */
typedef unsigned long AttributeDef_AttributeMode;
#define AttributeDef_NORMAL 1UL
#define AttributeDef_READONLY 2UL
typedef
struct AttributeDef_AttributeDescription {
Identifier name;
RepositoryId id;
RepositoryId defined_in;
TypeCode type;
AttributeDef_AttributeMode mode;
} AttributeDef_AttributeDescription;

/*
 *  The inherited describe method returns an instance of this
 *  (AttributeDescription) structure in the "value" member of the
 *  Description structure defined in the Contained interface.
 */

#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_AttributeMode
    #ifdef AttributeMode
        #undef AttributeMode
        #define SOMTGD_AttributeMode 1
    #else
        #define AttributeMode AttributeDef_AttributeMode
    #endif /* AttributeMode */
#endif /* SOMTGD_AttributeMode */
#ifndef SOMTGD_AttributeDescription
    #ifdef AttributeDescription
        #undef AttributeDescription
        #define SOMTGD_AttributeDescription 1
    #else
        #define AttributeDescription AttributeDef_AttributeDescription
    #endif /* AttributeDescription */
#endif /* SOMTGD_AttributeDescription */
#endif /* SOM_DONT_USE_SHORT_NAMES */

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

#define AttributeDef_MajorVersion 2
#define AttributeDef_MinorVersion 1

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define AttributeDefNewClass c
#define AttributeDefClassData d
#define AttributeDefCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define AttributeDef_classObj AttributeDefClassData.classObject
#define _AttributeDef AttributeDef_classObj

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct AttributeDefClassDataStructure {
	SOMClass *classObject;
	somMToken _get_type;
	somMToken _set_type;
	somMToken _get_mode;
	somMToken _set_mode;
}  _AttributeDefClassData;
SOMEXTERN struct AttributeDefClassDataStructure * SOMLINK resolve_AttributeDefClassData(void);

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct AttributeDefCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
}  _AttributeDefCClassData;
SOMEXTERN struct AttributeDefCClassDataStructure * SOMLINK resolve_AttributeDefCClassData(void);

/*
 * New and Renew macros for AttributeDef
 */
#define AttributeDefNew() \
   (_somNew(_AttributeDef ? _AttributeDef : AttributeDefNewClass(AttributeDef_MajorVersion, AttributeDef_MinorVersion)))
#define AttributeDefRenew(buf) \
   (_somRenew(_AttributeDef ? _AttributeDef : AttributeDefNewClass(AttributeDef_MajorVersion, AttributeDef_MinorVersion), buf))

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

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

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

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

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

/*
 * New Method: _get_type
 */
typedef TypeCode   (SOMLINK * somTD_AttributeDef__get_type)(AttributeDef *somSelf, Environment *ev);
#define somMD_AttributeDef__get_type "::AttributeDef::type"
#define AttributeDef__get_type(somSelf,ev) \
    (SOM_Resolve(somSelf, AttributeDef, _get_type) \
	(somSelf,ev))
#ifndef SOMGD_get_type
    #if (defined(_get_type) || defined(__get_type))
        #undef _get_type
        #undef __get_type
        #define SOMGD_get_type 1
    #else
        #define __get_type AttributeDef__get_type
    #endif /* __get_type */
#endif /* SOMGD_get_type */

/*
 * New Method: _set_type
 */
typedef void   (SOMLINK * somTD_AttributeDef__set_type)(AttributeDef *somSelf, Environment *ev,
		TypeCode type);
#define somMD_AttributeDef__set_type "::AttributeDef::type"
#define AttributeDef__set_type(somSelf,ev,type) \
    (SOM_Resolve(somSelf, AttributeDef, _set_type) \
	(somSelf,ev,type))
#ifndef SOMGD_set_type
    #if (defined(_set_type) || defined(__set_type))
        #undef _set_type
        #undef __set_type
        #define SOMGD_set_type 1
    #else
        #define __set_type AttributeDef__set_type
    #endif /* __set_type */
#endif /* SOMGD_set_type */

/*
 * New Method: _get_mode
 */
typedef AttributeDef_AttributeMode   (SOMLINK * somTD_AttributeDef__get_mode)(AttributeDef *somSelf, Environment *ev);
#define somMD_AttributeDef__get_mode "::AttributeDef::mode"
#define AttributeDef__get_mode(somSelf,ev) \
    (SOM_Resolve(somSelf, AttributeDef, _get_mode) \
	(somSelf,ev))
#ifndef SOMGD_get_mode
    #if (defined(_get_mode) || defined(__get_mode))
        #undef _get_mode
        #undef __get_mode
        #define SOMGD_get_mode 1
    #else
        #define __get_mode AttributeDef__get_mode
    #endif /* __get_mode */
#endif /* SOMGD_get_mode */

/*
 * New Method: _set_mode
 */
typedef void   (SOMLINK * somTD_AttributeDef__set_mode)(AttributeDef *somSelf, Environment *ev,
		AttributeDef_AttributeMode mode);
#define somMD_AttributeDef__set_mode "::AttributeDef::mode"
#define AttributeDef__set_mode(somSelf,ev,mode) \
    (SOM_Resolve(somSelf, AttributeDef, _set_mode) \
	(somSelf,ev,mode))
#ifndef SOMGD_set_mode
    #if (defined(_set_mode) || defined(__set_mode))
        #undef _set_mode
        #undef __set_mode
        #define SOMGD_set_mode 1
    #else
        #define __set_mode AttributeDef__set_mode
    #endif /* __set_mode */
#endif /* SOMGD_set_mode */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define AttributeDef__get_name Contained__get_name
#define AttributeDef__set_name Contained__set_name
#define AttributeDef__get_id Contained__get_id
#define AttributeDef__set_id Contained__set_id
#define AttributeDef__get_defined_in Contained__get_defined_in
#define AttributeDef__set_defined_in Contained__set_defined_in
#define AttributeDef__get_somModifiers Contained__get_somModifiers
#define AttributeDef__set_somModifiers Contained__set_somModifiers
#define AttributeDef_within Contained_within
#define AttributeDef_somDefaultInit SOMObject_somDefaultInit
#define AttributeDef_somDestruct SOMObject_somDestruct
#define AttributeDef_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define AttributeDef_somDefaultAssign SOMObject_somDefaultAssign
#define AttributeDef_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define AttributeDef_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define AttributeDef_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define AttributeDef_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define AttributeDef_somDefaultVAssign SOMObject_somDefaultVAssign
#define AttributeDef_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define AttributeDef_somFree SOMObject_somFree
#define AttributeDef_somGetClass SOMObject_somGetClass
#define AttributeDef_somGetClassName SOMObject_somGetClassName
#define AttributeDef_somGetSize SOMObject_somGetSize
#define AttributeDef_somIsA SOMObject_somIsA
#define AttributeDef_somIsInstanceOf SOMObject_somIsInstanceOf
#define AttributeDef_somRespondsTo SOMObject_somRespondsTo
#define AttributeDef_somDispatch SOMObject_somDispatch
#define AttributeDef_somClassDispatch SOMObject_somClassDispatch
#define AttributeDef_somCastObj SOMObject_somCastObj
#define AttributeDef_somResetObj SOMObject_somResetObj
#define AttributeDef_somDispatchV SOMObject_somDispatchV
#define AttributeDef_somDispatchL SOMObject_somDispatchL
#define AttributeDef_somDispatchA SOMObject_somDispatchA
#define AttributeDef_somDispatchD SOMObject_somDispatchD
#define AttributeDef_somPrintSelf SOMObject_somPrintSelf
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_AttributeDef_h */
