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

#ifndef SOM_AttributeDef_h
#define SOM_AttributeDef_h


/*
 * The SOM_STRICT_IDL macro means that we can ignore stars
 * in our declarations of objects.
 */
#define SOM_STRICT_IDL 1


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

    #include <somtcnst.h>
    #include <somir.h>
    #include <containd.h>


#include <som.h>
#ifndef SOM_IMPORTEXPORT_somir_attribdf
#ifdef SOM_DLL_somir
	/* export semantics */
	#if defined(SOM_DEFFILE_somir)\
	||(defined(SOM_DEFFILE_BY_DEFAULT)&&!defined(SOM_NODEFFILE_somir))\
	|| !defined(SOM_Module_attribdf_Source)
	#define SOM_IMPORTEXPORT_somir_attribdf
	#else
	#define SOM_IMPORTEXPORT_somir_attribdf SOMDLLEXPORT
	#endif
#else
	#define SOM_IMPORTEXPORT_somir_attribdf 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 AttributeDef
#define AttributeDef SOMObject
#endif
/*
 *  This interface is used to access information associated with
 *  attributes defined in an IDL interface.
 * 
 *  See CORBA 1.1, 7.5.5, p.135
 */

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

/*
 * Start of bindings for IDL 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 bindings for IDL types.
 */

#define AttributeDef_MajorVersion 2
#define AttributeDef_MinorVersion 3

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

/*
 * Declare the ABI 2 ClassData structure
 */
SOMEXTERN struct AttributeDefClassDataStructure {
	SOMClass classObject;
	somMToken _get_type;
	somMToken _set_type;
	somMToken _get_mode;
	somMToken _set_mode;
} SOM_IMPORTEXPORT_somir_attribdf SOMDLINK AttributeDefClassData;

/*
 * Declare the ABI 2 CClassData structure
 */
SOMEXTERN struct AttributeDefCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
} SOM_IMPORTEXPORT_somir_attribdf SOMDLINK AttributeDefCClassData;

/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_AttributeDef (AttributeDefClassData.classObject)
#ifndef SOMGD_AttributeDef
    #if (defined(_AttributeDef) || defined(__AttributeDef))
        #undef _AttributeDef
        #undef __AttributeDef
        #define SOMGD_AttributeDef 1
    #else
        #define _AttributeDef _SOMCLASS_AttributeDef
    #endif /* _AttributeDef */
#endif /* SOMGD_AttributeDef */
#define AttributeDef_classObj _SOMCLASS_AttributeDef
#define _SOMMTOKEN_AttributeDef(method) ((somMToken)AttributeDefClassData.method)

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

/*
 * New Method: _get_type
 */
typedef TypeCode   SOMLINK somTP_AttributeDef__get_type(AttributeDef somSelf, Environment *ev);
typedef somTP_AttributeDef__get_type *somTD_AttributeDef__get_type;
/*
 *  The TypeCode of the receiving object.  The memory used to hold
 *  the TypeCode is contained in the receiving object, which retains
 *  ownership.  Hence, do not free the returned TypeCode.  If you want
 *  to obtain a separate copy, use the TypeCode_copy operation.
 */
#define somMD_AttributeDef__get_type "::AttributeDef::_get_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 somTP_AttributeDef__set_type(AttributeDef somSelf, Environment *ev, 
		TypeCode type);
typedef somTP_AttributeDef__set_type *somTD_AttributeDef__set_type;
/*
 *  The TypeCode of the receiving object.  The memory used to hold
 *  the TypeCode is contained in the receiving object, which retains
 *  ownership.  Hence, do not free the returned TypeCode.  If you want
 *  to obtain a separate copy, use the TypeCode_copy operation.
 */
#define somMD_AttributeDef__set_type "::AttributeDef::_set_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 somTP_AttributeDef__get_mode(AttributeDef somSelf, Environment *ev);
typedef somTP_AttributeDef__get_mode *somTD_AttributeDef__get_mode;
/*
 *  The AttributeMode of the receiving object;
 */
#define somMD_AttributeDef__get_mode "::AttributeDef::_get_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 somTP_AttributeDef__set_mode(AttributeDef somSelf, Environment *ev, 
		AttributeDef_AttributeMode mode);
typedef somTP_AttributeDef__set_mode *somTD_AttributeDef__set_mode;
/*
 *  The AttributeMode of the receiving object;
 */
#define somMD_AttributeDef__set_mode "::AttributeDef::_set_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 */

/*
 * Full Names for Inherited Methods
 */
/* overridden methods */
#define AttributeDef_describe Contained_describe
#define AttributeDef_somDefaultInit SOMObject_somDefaultInit
#define AttributeDef_somDestruct SOMObject_somDestruct
#define AttributeDef_somDumpSelf SOMObject_somDumpSelf
#define AttributeDef_somDumpSelfInt SOMObject_somDumpSelfInt

#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_somFree SOMObject_somFree
#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_somInit SOMObject_somInit
#define AttributeDef_somUninit SOMObject_somUninit
#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_somPrintSelf SOMObject_somPrintSelf
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_AttributeDef_h */
