
/*
 * This file was generated by the SOM Compiler.
 * FileName: barproxy.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.11.1.1 src/somples.os2/somd/c/proxy/barproxy.idl, somples.somd, som3.0 12/3/96 10:39:33 [12/4/96 15:10:03]
 * 
 * 
 * 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__Proxy_h
#define SOM_Bar__Proxy_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_barproxy
#ifdef SOM_DLL_objs
	/* export semantics */
	#if defined(SOM_DEFFILE_objs)\
	||(defined(SOM_DEFFILE_BY_DEFAULT)&&!defined(SOM_NODEFFILE_objs))\
	|| !defined(SOM_Module_barproxy_Source)
	#define SOM_IMPORTEXPORT_objs_barproxy
	#else
	#define SOM_IMPORTEXPORT_objs_barproxy SOMDLLEXPORT
	#endif
#else
	#define SOM_IMPORTEXPORT_objs_barproxy 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__Proxy
#define Bar__Proxy SOMObject
#endif
/*
 *  normally one would use the "abstractparents" IDL modifier to indicate
 *    * that abstract inheritance should be used for the target class
 *    * (e.g., Bar) of the user-defined proxy class, but in this
 *    * sample, abstract inheritance is not desired because we want the
 *    * proxy class (Bar__Proxy) to inherit the instance data of the Bar
 *    * class to permit caching of instance data in the proxy.
 */

/*
 * Include Parent Bindings
 */
#ifndef SOM_SOMDClientProxy_h
#ifdef SOMLOCALINCLUDES
#include "somdcprx.h"
#else
#include <somdcprx.h>
#endif
#endif
#ifndef SOM_Bar_h
#ifdef SOMLOCALINCLUDES
#include "bar.h"
#else
#include <bar.h>
#endif
#endif

/*
 * Start of bindings for IDL types
 */

#ifndef SOMClass
    #define SOMClass SOMObject
#endif /* SOMClass */
#ifndef Container
    #define Container SOMObject
#endif /* Container */
#ifndef Principal
    #define Principal SOMObject
#endif /* Principal */
#ifndef ImplementationDef
    #define ImplementationDef SOMObject
#endif /* ImplementationDef */
#ifndef InterfaceDef
    #define InterfaceDef SOMObject
#endif /* InterfaceDef */
#ifndef NVList
    #define NVList SOMObject
#endif /* NVList */
#ifndef Context
    #define Context SOMObject
#endif /* Context */
#ifndef Request
    #define Request SOMObject
#endif /* Request */

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

#define Bar__Proxy_MajorVersion 0
#define Bar__Proxy_MinorVersion 0

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

/*
 * Declare the ABI 2 ClassData structure
 */
SOMEXTERN struct Bar__ProxyClassDataStructure {
	SOMClass classObject;
} SOM_IMPORTEXPORT_objs_barproxy SOMDLINK Bar__ProxyClassData;

/*
 * Declare the ABI 2 CClassData structure
 */
SOMEXTERN struct Bar__ProxyCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
} SOM_IMPORTEXPORT_objs_barproxy SOMDLINK Bar__ProxyCClassData;

/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_Bar__Proxy (Bar__ProxyClassData.classObject)
#ifndef SOMGD_Bar__Proxy
    #if (defined(_Bar__Proxy) || defined(__Bar__Proxy))
        #undef _Bar__Proxy
        #undef __Bar__Proxy
        #define SOMGD_Bar__Proxy 1
    #else
        #define _Bar__Proxy _SOMCLASS_Bar__Proxy
    #endif /* _Bar__Proxy */
#endif /* SOMGD_Bar__Proxy */
#define Bar__Proxy_classObj _SOMCLASS_Bar__Proxy
#define _SOMMTOKEN_Bar__Proxy(method) ((somMToken)Bar__ProxyClassData.method)

/*
 * New and Renew macros for Bar__Proxy
 */
#define Bar__ProxyNew() \
   ( _Bar__Proxy ? \
	_somNew(_Bar__Proxy) \
	: ( Bar__ProxyNewClass(\
		Bar__Proxy_MajorVersion, \
		Bar__Proxy_MinorVersion),\
	   _somNew(_Bar__Proxy)))
#define Bar__ProxyRenew(buf) \
   ( _Bar__Proxy ? \
	_somRenew(_Bar__Proxy, buf) \
	: ( Bar__ProxyNewClass(\
		Bar__Proxy_MajorVersion, \
		Bar__Proxy_MinorVersion),\
	   _somRenew(_Bar__Proxy, buf)))

/*
 * Full Names for Inherited Methods
 */
/* overridden methods */
#define Bar__Proxy_method1 Bar_method1
#define Bar__Proxy__get_attribute_long Bar__get_attribute_long
#define Bar__Proxy__set_attribute_long Bar__set_attribute_long

#ifndef SOM_DONT_USE_INHERITED_MACROS
#define Bar__Proxy_somdTargetFree SOMDClientProxy_somdTargetFree
#define Bar__Proxy_somdTargetGetClass SOMDClientProxy_somdTargetGetClass
#define Bar__Proxy_somdTargetGetClassName SOMDClientProxy_somdTargetGetClassName
#define Bar__Proxy_somdProxyFree SOMDClientProxy_somdProxyFree
#define Bar__Proxy_somdProxyGetClass SOMDClientProxy_somdProxyGetClass
#define Bar__Proxy_somdProxyGetClassName SOMDClientProxy_somdProxyGetClassName
#define Bar__Proxy_somdReleaseResources SOMDClientProxy_somdReleaseResources
#define Bar__Proxy_create_request SOMDObject_create_request
#define Bar__Proxy_create_request_args SOMDObject_create_request_args
#define Bar__Proxy_duplicate SOMDObject_duplicate
#define Bar__Proxy_is_proxy SOMDObject_is_proxy
#define Bar__Proxy_release SOMDObject_release
#define Bar__Proxy_somDefaultInit SOMObject_somDefaultInit
#define Bar__Proxy_somDestruct SOMObject_somDestruct
#define Bar__Proxy_somClassDispatch SOMObject_somClassDispatch
#define Bar__Proxy_somDumpSelf SOMObject_somDumpSelf
#define Bar__Proxy_somDumpSelfInt SOMObject_somDumpSelfInt
#define Bar__Proxy_somFree SOMObject_somFree
#define Bar__Proxy_somGetClass SOMObject_somGetClass
#define Bar__Proxy_somGetClassName SOMObject_somGetClassName
#define Bar__Proxy_somPrintSelf SOMObject_somPrintSelf
#define Bar__Proxy_sommProxyDispatch SOMMProxyForObject_sommProxyDispatch
#define Bar__Proxy_is_SOM_ref SOMDObject_is_SOM_ref
#define Bar__Proxy_is_constant SOMDObject_is_constant
#define Bar__Proxy__get_type_id SOMDObject__get_type_id
#define Bar__Proxy__set_type_id SOMDObject__set_type_id
#define Bar__Proxy__get_sommProxyTarget SOMMProxyForObject__get_sommProxyTarget
#define Bar__Proxy__set_sommProxyTarget SOMMProxyForObject__set_sommProxyTarget
#define Bar__Proxy_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define Bar__Proxy_somDefaultAssign SOMObject_somDefaultAssign
#define Bar__Proxy_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define Bar__Proxy_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define Bar__Proxy_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define Bar__Proxy_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define Bar__Proxy_somDefaultVAssign SOMObject_somDefaultVAssign
#define Bar__Proxy_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define Bar__Proxy_somInit SOMObject_somInit
#define Bar__Proxy_somUninit SOMObject_somUninit
#define Bar__Proxy_somGetSize SOMObject_somGetSize
#define Bar__Proxy_somIsA SOMObject_somIsA
#define Bar__Proxy_somIsInstanceOf SOMObject_somIsInstanceOf
#define Bar__Proxy_somRespondsTo SOMObject_somRespondsTo
#define Bar__Proxy_somDispatch SOMObject_somDispatch
#define Bar__Proxy_somCastObj SOMObject_somCastObj
#define Bar__Proxy_somResetObj SOMObject_somResetObj
#define Bar__Proxy_is_nil SOMDObject_is_nil
#define Bar__Proxy_get_implementation SOMDObject_get_implementation
#define Bar__Proxy_get_interface SOMDObject_get_interface
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_Bar__Proxy_h */
