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

/*
 *    COMPONENT_NAME: somx
 * 
 *    ORIGINS: 27
 * 
 * 
 *    25H7912  (C)  COPYRIGHT International Business Machines Corp. 1992,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.
 * 
 *    @(#) 2.10.1.1 src/somples.os2/somd/c/proxy/bar.idl, somples.somd, som3.0 12/3/96 10:39:30 [12/4/96 15:10:01]
 * 
 * 
 * DISCLAIMER OF WARRANTIES.
 * The following [enclosed] code is sample code created by IBM
 * Corporation. This sample code is not part of any standard or IBM
 * product and is provided to you solely for the purpose of assisting
 * you in the development of your applications.  The code is provided
 * "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
 * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
 * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
 * THIS CODE.  IBM shall not be liable for any damages arising out of
 * your use of the sample code, even if they have been advised of the
 * possibility of such damages.
 * 
 * DISTRIBUTION.
 * This sample code can be freely distributed, copied, altered, and
 * incorporated into other software, provided that it bears the above
 * Copyright notice and DISCLAIMER intact.
 */


#ifndef SOM_Bar_h
#define SOM_Bar_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_objs_bar
#ifdef SOM_DLL_objs
	/* export semantics */
	#if defined(SOM_DEFFILE_objs)\
	||(defined(SOM_DEFFILE_BY_DEFAULT)&&!defined(SOM_NODEFFILE_objs))\
	|| !defined(SOM_Module_bar_Source)
	#define SOM_IMPORTEXPORT_objs_bar
	#else
	#define SOM_IMPORTEXPORT_objs_bar SOMDLLEXPORT
	#endif
#else
	#define SOM_IMPORTEXPORT_objs_bar 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 Bar
#define Bar SOMObject
#endif

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

/*
 * Start of bindings for IDL types
 */

#ifndef SOMClass
    #define SOMClass SOMObject
#endif /* SOMClass */
#ifndef Container
    #define Container SOMObject
#endif /* Container */

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

#define Bar_MajorVersion 0
#define Bar_MinorVersion 0

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

/*
 * Declare the ABI 2 ClassData structure
 */
SOMEXTERN struct BarClassDataStructure {
	SOMClass classObject;
	somMToken method1;
	somMToken _set_attribute_long;
	somMToken _get_attribute_long;
} SOM_IMPORTEXPORT_objs_bar SOMDLINK BarClassData;

/*
 * Declare the ABI 2 CClassData structure
 */
SOMEXTERN struct BarCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
} SOM_IMPORTEXPORT_objs_bar SOMDLINK BarCClassData;

/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_Bar (BarClassData.classObject)
#ifndef SOMGD_Bar
    #if (defined(_Bar) || defined(__Bar))
        #undef _Bar
        #undef __Bar
        #define SOMGD_Bar 1
    #else
        #define _Bar _SOMCLASS_Bar
    #endif /* _Bar */
#endif /* SOMGD_Bar */
#define Bar_classObj _SOMCLASS_Bar
#define _SOMMTOKEN_Bar(method) ((somMToken)BarClassData.method)

/*
 * New and Renew macros for Bar
 */
#define BarNew() \
   ( _Bar ? \
	_somNew(_Bar) \
	: ( BarNewClass(\
		Bar_MajorVersion, \
		Bar_MinorVersion),\
	   _somNew(_Bar)))
#define BarRenew(buf) \
   ( _Bar ? \
	_somRenew(_Bar, buf) \
	: ( BarNewClass(\
		Bar_MajorVersion, \
		Bar_MinorVersion),\
	   _somRenew(_Bar, buf)))

/*
 * New Method: method1
 */
typedef string   SOMLINK somTP_Bar_method1(Bar somSelf, Environment *ev, 
		string* a, 
		long* b, 
		ReferenceData* c);
typedef somTP_Bar_method1 *somTD_Bar_method1;
#define somMD_Bar_method1 "::Bar::method1"
#define Bar_method1(somSelf,ev,a,b,c) \
    (SOM_Resolve(somSelf, Bar, method1) \
	(somSelf,ev,a,b,c))
#ifndef SOMGD_method1
    #if (defined(_method1) || defined(__method1))
        #undef _method1
        #undef __method1
        #define SOMGD_method1 1
    #else
        #define _method1 Bar_method1
    #endif /* _method1 */
#endif /* SOMGD_method1 */

/*
 * New Method: _get_attribute_long
 */
typedef long   SOMLINK somTP_Bar__get_attribute_long(Bar somSelf, Environment *ev);
typedef somTP_Bar__get_attribute_long *somTD_Bar__get_attribute_long;
/*
 * Method from the IDL attribute statement:
 * "attribute long attribute_long"
 */
#define somMD_Bar__get_attribute_long "::Bar::_get_attribute_long"
#define Bar__get_attribute_long(somSelf,ev) \
    (SOM_Resolve(somSelf, Bar, _get_attribute_long) \
	(somSelf,ev))
#ifndef SOMGD_get_attribute_long
    #if (defined(_get_attribute_long) || defined(__get_attribute_long))
        #undef _get_attribute_long
        #undef __get_attribute_long
        #define SOMGD_get_attribute_long 1
    #else
        #define __get_attribute_long Bar__get_attribute_long
    #endif /* __get_attribute_long */
#endif /* SOMGD_get_attribute_long */

/*
 * New Method: _set_attribute_long
 */
typedef void   SOMLINK somTP_Bar__set_attribute_long(Bar somSelf, Environment *ev, 
		long attribute_long);
typedef somTP_Bar__set_attribute_long *somTD_Bar__set_attribute_long;
/*
 * Method from the IDL attribute statement:
 * "attribute long attribute_long"
 */
#define somMD_Bar__set_attribute_long "::Bar::_set_attribute_long"
#define Bar__set_attribute_long(somSelf,ev,attribute_long) \
    (SOM_Resolve(somSelf, Bar, _set_attribute_long) \
	(somSelf,ev,attribute_long))
#ifndef SOMGD_set_attribute_long
    #if (defined(_set_attribute_long) || defined(__set_attribute_long))
        #undef _set_attribute_long
        #undef __set_attribute_long
        #define SOMGD_set_attribute_long 1
    #else
        #define __set_attribute_long Bar__set_attribute_long
    #endif /* __set_attribute_long */
#endif /* SOMGD_set_attribute_long */

/*
 * Full Names for Inherited Methods
 */
/* overridden methods */
#define Bar_somDefaultInit SOMObject_somDefaultInit

#ifndef SOM_DONT_USE_INHERITED_MACROS
#define Bar_somDestruct SOMObject_somDestruct
#define Bar_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define Bar_somDefaultAssign SOMObject_somDefaultAssign
#define Bar_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define Bar_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define Bar_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define Bar_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define Bar_somDefaultVAssign SOMObject_somDefaultVAssign
#define Bar_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define Bar_somInit SOMObject_somInit
#define Bar_somUninit SOMObject_somUninit
#define Bar_somFree SOMObject_somFree
#define Bar_somGetClass SOMObject_somGetClass
#define Bar_somGetClassName SOMObject_somGetClassName
#define Bar_somGetSize SOMObject_somGetSize
#define Bar_somIsA SOMObject_somIsA
#define Bar_somIsInstanceOf SOMObject_somIsInstanceOf
#define Bar_somRespondsTo SOMObject_somRespondsTo
#define Bar_somDispatch SOMObject_somDispatch
#define Bar_somClassDispatch SOMObject_somClassDispatch
#define Bar_somCastObj SOMObject_somCastObj
#define Bar_somResetObj SOMObject_somResetObj
#define Bar_somPrintSelf SOMObject_somPrintSelf
#define Bar_somDumpSelf SOMObject_somDumpSelf
#define Bar_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_Bar_h */
