
/*
 * This file was generated by the SOM Compiler.
 * FileName: dldog.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.9.1.1 src/somples.os2/somd/c/animal/dldog.idl, somples.somd, som3.0 12/2/96 17:00:29 [12/4/96 15:09:07]
 * 
 * 
 * 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_dLittleDog_h
#define SOM_dLittleDog_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_dldog
#ifdef SOM_DLL_danimal
	/* export semantics */
	#if defined(SOM_DEFFILE_danimal)\
	||(defined(SOM_DEFFILE_BY_DEFAULT)&&!defined(SOM_NODEFFILE_danimal))\
	|| !defined(SOM_Module_dldog_Source)
	#define SOM_IMPORTEXPORT_danimal_dldog
	#else
	#define SOM_IMPORTEXPORT_danimal_dldog SOMDLLEXPORT
	#endif
#else
	#define SOM_IMPORTEXPORT_danimal_dldog 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 dLittleDog
#define dLittleDog 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 dLittleDog_MajorVersion 0
#define dLittleDog_MinorVersion 0

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

/*
 * Declare the ABI 2 ClassData structure
 */
SOMEXTERN struct dLittleDogClassDataStructure {
	SOMClass classObject;
	somMToken _get_LDweight;
	somMToken _set_LDweight;
} SOM_IMPORTEXPORT_danimal_dldog SOMDLINK dLittleDogClassData;

/*
 * Declare the ABI 2 CClassData structure
 */
SOMEXTERN struct dLittleDogCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
} SOM_IMPORTEXPORT_danimal_dldog SOMDLINK dLittleDogCClassData;

/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_dLittleDog (dLittleDogClassData.classObject)
#ifndef SOMGD_dLittleDog
    #if (defined(_dLittleDog) || defined(__dLittleDog))
        #undef _dLittleDog
        #undef __dLittleDog
        #define SOMGD_dLittleDog 1
    #else
        #define _dLittleDog _SOMCLASS_dLittleDog
    #endif /* _dLittleDog */
#endif /* SOMGD_dLittleDog */
#define dLittleDog_classObj _SOMCLASS_dLittleDog
#define _SOMMTOKEN_dLittleDog(method) ((somMToken)dLittleDogClassData.method)

/*
 * New and Renew macros for dLittleDog
 */
#define dLittleDogNew() \
   ( _dLittleDog ? \
	_somNew(_dLittleDog) \
	: ( dLittleDogNewClass(\
		dLittleDog_MajorVersion, \
		dLittleDog_MinorVersion),\
	   _somNew(_dLittleDog)))
#define dLittleDogRenew(buf) \
   ( _dLittleDog ? \
	_somRenew(_dLittleDog, buf) \
	: ( dLittleDogNewClass(\
		dLittleDog_MajorVersion, \
		dLittleDog_MinorVersion),\
	   _somRenew(_dLittleDog, buf)))

/*
 * New Method: _get_LDweight
 */
typedef double   SOMLINK somTP_dLittleDog__get_LDweight(dLittleDog somSelf, Environment *ev);
typedef somTP_dLittleDog__get_LDweight *somTD_dLittleDog__get_LDweight;
/*
 *  Weight of dog in ounces.
 */
#define somMD_dLittleDog__get_LDweight "::dLittleDog::_get_LDweight"
#define dLittleDog__get_LDweight(somSelf,ev) \
    (SOM_Resolve(somSelf, dLittleDog, _get_LDweight) \
	(somSelf,ev))
#ifndef SOMGD_get_LDweight
    #if (defined(_get_LDweight) || defined(__get_LDweight))
        #undef _get_LDweight
        #undef __get_LDweight
        #define SOMGD_get_LDweight 1
    #else
        #define __get_LDweight dLittleDog__get_LDweight
    #endif /* __get_LDweight */
#endif /* SOMGD_get_LDweight */

/*
 * New Method: _set_LDweight
 */
typedef void   SOMLINK somTP_dLittleDog__set_LDweight(dLittleDog somSelf, Environment *ev, 
		double LDweight);
typedef somTP_dLittleDog__set_LDweight *somTD_dLittleDog__set_LDweight;
/*
 *  Weight of dog in ounces.
 */
#define somMD_dLittleDog__set_LDweight "::dLittleDog::_set_LDweight"
#define dLittleDog__set_LDweight(somSelf,ev,LDweight) \
    (SOM_Resolve(somSelf, dLittleDog, _set_LDweight) \
	(somSelf,ev,LDweight))
#ifndef SOMGD_set_LDweight
    #if (defined(_set_LDweight) || defined(__set_LDweight))
        #undef _set_LDweight
        #undef __set_LDweight
        #define SOMGD_set_LDweight 1
    #else
        #define __set_LDweight dLittleDog__set_LDweight
    #endif /* __set_LDweight */
#endif /* SOMGD_set_LDweight */

/*
 * Full Names for Inherited Methods
 */
/* overridden methods */
#define dLittleDog_somDefaultInit SOMObject_somDefaultInit
#define dLittleDog_display dAnimal_display

#ifndef SOM_DONT_USE_INHERITED_MACROS
#define dLittleDog__get_noise dDog__get_noise
#define dLittleDog__set_noise dDog__set_noise
#define dLittleDog__get_trick dDog__get_trick
#define dLittleDog__set_trick dDog__set_trick
#define dLittleDog_somDestruct SOMObject_somDestruct
#define dLittleDog__get_name dAnimal__get_name
#define dLittleDog__set_name dAnimal__set_name
#define dLittleDog__get_type dAnimal__get_type
#define dLittleDog__set_type dAnimal__set_type
#define dLittleDog__get_food dAnimal__get_food
#define dLittleDog__set_food dAnimal__set_food
#define dLittleDog__get_loc dAnimal__get_loc
#define dLittleDog__set_loc dAnimal__set_loc
#define dLittleDog__get_buff dAnimal__get_buff
#define dLittleDog__set_buff dAnimal__set_buff
#define dLittleDog_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define dLittleDog_somDefaultAssign SOMObject_somDefaultAssign
#define dLittleDog_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define dLittleDog_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define dLittleDog_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define dLittleDog_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define dLittleDog_somDefaultVAssign SOMObject_somDefaultVAssign
#define dLittleDog_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define dLittleDog_somInit SOMObject_somInit
#define dLittleDog_somUninit SOMObject_somUninit
#define dLittleDog_somFree SOMObject_somFree
#define dLittleDog_somGetClass SOMObject_somGetClass
#define dLittleDog_somGetClassName SOMObject_somGetClassName
#define dLittleDog_somGetSize SOMObject_somGetSize
#define dLittleDog_somIsA SOMObject_somIsA
#define dLittleDog_somIsInstanceOf SOMObject_somIsInstanceOf
#define dLittleDog_somRespondsTo SOMObject_somRespondsTo
#define dLittleDog_somDispatch SOMObject_somDispatch
#define dLittleDog_somClassDispatch SOMObject_somClassDispatch
#define dLittleDog_somCastObj SOMObject_somCastObj
#define dLittleDog_somResetObj SOMObject_somResetObj
#define dLittleDog_somPrintSelf SOMObject_somPrintSelf
#define dLittleDog_somDumpSelf SOMObject_somDumpSelf
#define dLittleDog_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_dLittleDog_h */
