
/*
 * This file was generated by the SOM Compiler.
 * FileName: ddog.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/ddog.idl, somples.somd, som3.0 12/2/96 17:00:18 [12/4/96 15:09:05]
 * 
 * 
 * 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_dDog_h
#define SOM_dDog_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_ddog
#ifdef SOM_DLL_danimal
	/* export semantics */
	#if defined(SOM_DEFFILE_danimal)\
	||(defined(SOM_DEFFILE_BY_DEFAULT)&&!defined(SOM_NODEFFILE_danimal))\
	|| !defined(SOM_Module_ddog_Source)
	#define SOM_IMPORTEXPORT_danimal_ddog
	#else
	#define SOM_IMPORTEXPORT_danimal_ddog SOMDLLEXPORT
	#endif
#else
	#define SOM_IMPORTEXPORT_danimal_ddog 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 dDog
#define dDog SOMObject
#endif

/*
 * Include Parent Bindings
 */
#ifndef SOM_dAnimal_h
#ifdef SOMLOCALINCLUDES
#include "danimal.h"
#else
#include <danimal.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 dDog_MajorVersion 0
#define dDog_MinorVersion 0

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

/*
 * Declare the ABI 2 ClassData structure
 */
SOMEXTERN struct dDogClassDataStructure {
	SOMClass classObject;
	somMToken _get_noise;
	somMToken _set_noise;
	somMToken _get_trick;
	somMToken _set_trick;
} SOM_IMPORTEXPORT_danimal_ddog SOMDLINK dDogClassData;

/*
 * Declare the ABI 2 CClassData structure
 */
SOMEXTERN struct dDogCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
} SOM_IMPORTEXPORT_danimal_ddog SOMDLINK dDogCClassData;

/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_dDog (dDogClassData.classObject)
#ifndef SOMGD_dDog
    #if (defined(_dDog) || defined(__dDog))
        #undef _dDog
        #undef __dDog
        #define SOMGD_dDog 1
    #else
        #define _dDog _SOMCLASS_dDog
    #endif /* _dDog */
#endif /* SOMGD_dDog */
#define dDog_classObj _SOMCLASS_dDog
#define _SOMMTOKEN_dDog(method) ((somMToken)dDogClassData.method)

/*
 * New and Renew macros for dDog
 */
#define dDogNew() \
   ( _dDog ? \
	_somNew(_dDog) \
	: ( dDogNewClass(\
		dDog_MajorVersion, \
		dDog_MinorVersion),\
	   _somNew(_dDog)))
#define dDogRenew(buf) \
   ( _dDog ? \
	_somRenew(_dDog, buf) \
	: ( dDogNewClass(\
		dDog_MajorVersion, \
		dDog_MinorVersion),\
	   _somRenew(_dDog, buf)))

/*
 * New Method: _get_noise
 */
typedef string   SOMLINK somTP_dDog__get_noise(dDog somSelf, Environment *ev);
typedef somTP_dDog__get_noise *somTD_dDog__get_noise;
/*
 *  Noise dog makes.
 */
#define somMD_dDog__get_noise "::dDog::_get_noise"
#define dDog__get_noise(somSelf,ev) \
    (SOM_Resolve(somSelf, dDog, _get_noise) \
	(somSelf,ev))
#ifndef SOMGD_get_noise
    #if (defined(_get_noise) || defined(__get_noise))
        #undef _get_noise
        #undef __get_noise
        #define SOMGD_get_noise 1
    #else
        #define __get_noise dDog__get_noise
    #endif /* __get_noise */
#endif /* SOMGD_get_noise */

/*
 * New Method: _set_noise
 */
typedef void   SOMLINK somTP_dDog__set_noise(dDog somSelf, Environment *ev, 
		string noise);
typedef somTP_dDog__set_noise *somTD_dDog__set_noise;
/*
 *  Noise dog makes.
 */
#define somMD_dDog__set_noise "::dDog::_set_noise"
#define dDog__set_noise(somSelf,ev,noise) \
    (SOM_Resolve(somSelf, dDog, _set_noise) \
	(somSelf,ev,noise))
#ifndef SOMGD_set_noise
    #if (defined(_set_noise) || defined(__set_noise))
        #undef _set_noise
        #undef __set_noise
        #define SOMGD_set_noise 1
    #else
        #define __set_noise dDog__set_noise
    #endif /* __set_noise */
#endif /* SOMGD_set_noise */

/*
 * New Method: _get_trick
 */
typedef string   SOMLINK somTP_dDog__get_trick(dDog somSelf, Environment *ev);
typedef somTP_dDog__get_trick *somTD_dDog__get_trick;
/*
 *  Trick dog performs.
 */
#define somMD_dDog__get_trick "::dDog::_get_trick"
#define dDog__get_trick(somSelf,ev) \
    (SOM_Resolve(somSelf, dDog, _get_trick) \
	(somSelf,ev))
#ifndef SOMGD_get_trick
    #if (defined(_get_trick) || defined(__get_trick))
        #undef _get_trick
        #undef __get_trick
        #define SOMGD_get_trick 1
    #else
        #define __get_trick dDog__get_trick
    #endif /* __get_trick */
#endif /* SOMGD_get_trick */

/*
 * New Method: _set_trick
 */
typedef void   SOMLINK somTP_dDog__set_trick(dDog somSelf, Environment *ev, 
		string trick);
typedef somTP_dDog__set_trick *somTD_dDog__set_trick;
/*
 *  Trick dog performs.
 */
#define somMD_dDog__set_trick "::dDog::_set_trick"
#define dDog__set_trick(somSelf,ev,trick) \
    (SOM_Resolve(somSelf, dDog, _set_trick) \
	(somSelf,ev,trick))
#ifndef SOMGD_set_trick
    #if (defined(_set_trick) || defined(__set_trick))
        #undef _set_trick
        #undef __set_trick
        #define SOMGD_set_trick 1
    #else
        #define __set_trick dDog__set_trick
    #endif /* __set_trick */
#endif /* SOMGD_set_trick */

/*
 * Full Names for Inherited Methods
 */
/* overridden methods */
#define dDog_display dAnimal_display
#define dDog_somDefaultInit SOMObject_somDefaultInit
#define dDog_somDestruct SOMObject_somDestruct

#ifndef SOM_DONT_USE_INHERITED_MACROS
#define dDog__get_name dAnimal__get_name
#define dDog__set_name dAnimal__set_name
#define dDog__get_type dAnimal__get_type
#define dDog__set_type dAnimal__set_type
#define dDog__get_food dAnimal__get_food
#define dDog__set_food dAnimal__set_food
#define dDog__get_loc dAnimal__get_loc
#define dDog__set_loc dAnimal__set_loc
#define dDog__get_buff dAnimal__get_buff
#define dDog__set_buff dAnimal__set_buff
#define dDog_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define dDog_somDefaultAssign SOMObject_somDefaultAssign
#define dDog_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define dDog_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define dDog_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define dDog_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define dDog_somDefaultVAssign SOMObject_somDefaultVAssign
#define dDog_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define dDog_somInit SOMObject_somInit
#define dDog_somUninit SOMObject_somUninit
#define dDog_somFree SOMObject_somFree
#define dDog_somGetClass SOMObject_somGetClass
#define dDog_somGetClassName SOMObject_somGetClassName
#define dDog_somGetSize SOMObject_somGetSize
#define dDog_somIsA SOMObject_somIsA
#define dDog_somIsInstanceOf SOMObject_somIsInstanceOf
#define dDog_somRespondsTo SOMObject_somRespondsTo
#define dDog_somDispatch SOMObject_somDispatch
#define dDog_somClassDispatch SOMObject_somClassDispatch
#define dDog_somCastObj SOMObject_somCastObj
#define dDog_somResetObj SOMObject_somResetObj
#define dDog_somPrintSelf SOMObject_somPrintSelf
#define dDog_somDumpSelf SOMObject_somDumpSelf
#define dDog_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_dDog_h */
