
/*
 * This file was generated by the SOM Compiler.
 * FileName: dbdog.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/animal/dbdog.idl, somples.somd, som3.0 12/2/96 16:59:56 [12/4/96 15:09: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_dBigDog_h
#define SOM_dBigDog_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_danimal_dbdog
#ifdef SOM_DLL_danimal
	/* export semantics */
	#if defined(SOM_DEFFILE_danimal)\
	||(defined(SOM_DEFFILE_BY_DEFAULT)&&!defined(SOM_NODEFFILE_danimal))\
	|| !defined(SOM_Module_dbdog_Source)
	#define SOM_IMPORTEXPORT_danimal_dbdog
	#else
	#define SOM_IMPORTEXPORT_danimal_dbdog SOMDLLEXPORT
	#endif
#else
	#define SOM_IMPORTEXPORT_danimal_dbdog 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 dBigDog
#define dBigDog SOMObject
#endif

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

/*
 * Start of bindings for IDL types
 */

#ifndef SOMClass
    #define SOMClass SOMObject
#endif /* SOMClass */
#ifndef dLocation
    #define dLocation SOMObject
#endif /* dLocation */
#ifndef AnimalFactory
    #define AnimalFactory SOMObject
#endif /* AnimalFactory */

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

#define dBigDog_MajorVersion 0
#define dBigDog_MinorVersion 0

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

/*
 * Declare the ABI 2 ClassData structure
 */
SOMEXTERN struct dBigDogClassDataStructure {
	SOMClass classObject;
	somMToken _get_BDweight;
	somMToken _set_BDweight;
} SOM_IMPORTEXPORT_danimal_dbdog SOMDLINK dBigDogClassData;

/*
 * Declare the ABI 2 CClassData structure
 */
SOMEXTERN struct dBigDogCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
} SOM_IMPORTEXPORT_danimal_dbdog SOMDLINK dBigDogCClassData;

/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_dBigDog (dBigDogClassData.classObject)
#ifndef SOMGD_dBigDog
    #if (defined(_dBigDog) || defined(__dBigDog))
        #undef _dBigDog
        #undef __dBigDog
        #define SOMGD_dBigDog 1
    #else
        #define _dBigDog _SOMCLASS_dBigDog
    #endif /* _dBigDog */
#endif /* SOMGD_dBigDog */
#define dBigDog_classObj _SOMCLASS_dBigDog
#define _SOMMTOKEN_dBigDog(method) ((somMToken)dBigDogClassData.method)

/*
 * New and Renew macros for dBigDog
 */
#define dBigDogNew() \
   ( _dBigDog ? \
	_somNew(_dBigDog) \
	: ( dBigDogNewClass(\
		dBigDog_MajorVersion, \
		dBigDog_MinorVersion),\
	   _somNew(_dBigDog)))
#define dBigDogRenew(buf) \
   ( _dBigDog ? \
	_somRenew(_dBigDog, buf) \
	: ( dBigDogNewClass(\
		dBigDog_MajorVersion, \
		dBigDog_MinorVersion),\
	   _somRenew(_dBigDog, buf)))

/*
 * New Method: _get_BDweight
 */
typedef double   SOMLINK somTP_dBigDog__get_BDweight(dBigDog somSelf, Environment *ev);
typedef somTP_dBigDog__get_BDweight *somTD_dBigDog__get_BDweight;
/*
 *  Weight of dog in pounds.
 */
#define somMD_dBigDog__get_BDweight "::dBigDog::_get_BDweight"
#define dBigDog__get_BDweight(somSelf,ev) \
    (SOM_Resolve(somSelf, dBigDog, _get_BDweight) \
	(somSelf,ev))
#ifndef SOMGD_get_BDweight
    #if (defined(_get_BDweight) || defined(__get_BDweight))
        #undef _get_BDweight
        #undef __get_BDweight
        #define SOMGD_get_BDweight 1
    #else
        #define __get_BDweight dBigDog__get_BDweight
    #endif /* __get_BDweight */
#endif /* SOMGD_get_BDweight */

/*
 * New Method: _set_BDweight
 */
typedef void   SOMLINK somTP_dBigDog__set_BDweight(dBigDog somSelf, Environment *ev, 
		double BDweight);
typedef somTP_dBigDog__set_BDweight *somTD_dBigDog__set_BDweight;
/*
 *  Weight of dog in pounds.
 */
#define somMD_dBigDog__set_BDweight "::dBigDog::_set_BDweight"
#define dBigDog__set_BDweight(somSelf,ev,BDweight) \
    (SOM_Resolve(somSelf, dBigDog, _set_BDweight) \
	(somSelf,ev,BDweight))
#ifndef SOMGD_set_BDweight
    #if (defined(_set_BDweight) || defined(__set_BDweight))
        #undef _set_BDweight
        #undef __set_BDweight
        #define SOMGD_set_BDweight 1
    #else
        #define __set_BDweight dBigDog__set_BDweight
    #endif /* __set_BDweight */
#endif /* SOMGD_set_BDweight */

/*
 * Full Names for Inherited Methods
 */
/* overridden methods */
#define dBigDog_somDefaultInit SOMObject_somDefaultInit
#define dBigDog_display dAnimal_display

#ifndef SOM_DONT_USE_INHERITED_MACROS
#define dBigDog__get_noise dDog__get_noise
#define dBigDog__set_noise dDog__set_noise
#define dBigDog__get_trick dDog__get_trick
#define dBigDog__set_trick dDog__set_trick
#define dBigDog_somDestruct SOMObject_somDestruct
#define dBigDog__get_name dAnimal__get_name
#define dBigDog__set_name dAnimal__set_name
#define dBigDog__get_type dAnimal__get_type
#define dBigDog__set_type dAnimal__set_type
#define dBigDog__get_food dAnimal__get_food
#define dBigDog__set_food dAnimal__set_food
#define dBigDog__get_loc dAnimal__get_loc
#define dBigDog__set_loc dAnimal__set_loc
#define dBigDog__get_buff dAnimal__get_buff
#define dBigDog__set_buff dAnimal__set_buff
#define dBigDog_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define dBigDog_somDefaultAssign SOMObject_somDefaultAssign
#define dBigDog_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define dBigDog_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define dBigDog_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define dBigDog_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define dBigDog_somDefaultVAssign SOMObject_somDefaultVAssign
#define dBigDog_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define dBigDog_somInit SOMObject_somInit
#define dBigDog_somUninit SOMObject_somUninit
#define dBigDog_somFree SOMObject_somFree
#define dBigDog_somGetClass SOMObject_somGetClass
#define dBigDog_somGetClassName SOMObject_somGetClassName
#define dBigDog_somGetSize SOMObject_somGetSize
#define dBigDog_somIsA SOMObject_somIsA
#define dBigDog_somIsInstanceOf SOMObject_somIsInstanceOf
#define dBigDog_somRespondsTo SOMObject_somRespondsTo
#define dBigDog_somDispatch SOMObject_somDispatch
#define dBigDog_somClassDispatch SOMObject_somClassDispatch
#define dBigDog_somCastObj SOMObject_somCastObj
#define dBigDog_somResetObj SOMObject_somResetObj
#define dBigDog_somPrintSelf SOMObject_somPrintSelf
#define dBigDog_somDumpSelf SOMObject_somDumpSelf
#define dBigDog_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_dBigDog_h */
