
/*
 * This file was generated by the SOM Compiler.
 * FileName: dloc.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/dloc.idl, somples.somd, som3.0 12/2/96 17:00:58 [12/4/96 15:09:09]
 * 
 * 
 * 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_dLocation_h
#define SOM_dLocation_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_dloc
#ifdef SOM_DLL_danimal
	/* export semantics */
	#if defined(SOM_DEFFILE_danimal)\
	||(defined(SOM_DEFFILE_BY_DEFAULT)&&!defined(SOM_NODEFFILE_danimal))\
	|| !defined(SOM_Module_dloc_Source)
	#define SOM_IMPORTEXPORT_danimal_dloc
	#else
	#define SOM_IMPORTEXPORT_danimal_dloc SOMDLLEXPORT
	#endif
#else
	#define SOM_IMPORTEXPORT_danimal_dloc 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 dLocation
#define dLocation 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 */

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

#define dLocation_MajorVersion 0
#define dLocation_MinorVersion 0

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

/*
 * Declare the ABI 2 ClassData structure
 */
SOMEXTERN struct dLocationClassDataStructure {
	SOMClass classObject;
	somMToken _get_city;
	somMToken _set_city;
	somMToken _get_state;
	somMToken _set_state;
} SOM_IMPORTEXPORT_danimal_dloc SOMDLINK dLocationClassData;

/*
 * Declare the ABI 2 CClassData structure
 */
SOMEXTERN struct dLocationCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
} SOM_IMPORTEXPORT_danimal_dloc SOMDLINK dLocationCClassData;

/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_dLocation (dLocationClassData.classObject)
#ifndef SOMGD_dLocation
    #if (defined(_dLocation) || defined(__dLocation))
        #undef _dLocation
        #undef __dLocation
        #define SOMGD_dLocation 1
    #else
        #define _dLocation _SOMCLASS_dLocation
    #endif /* _dLocation */
#endif /* SOMGD_dLocation */
#define dLocation_classObj _SOMCLASS_dLocation
#define _SOMMTOKEN_dLocation(method) ((somMToken)dLocationClassData.method)

/*
 * New and Renew macros for dLocation
 */
#define dLocationNew() \
   ( _dLocation ? \
	_somNew(_dLocation) \
	: ( dLocationNewClass(\
		dLocation_MajorVersion, \
		dLocation_MinorVersion),\
	   _somNew(_dLocation)))
#define dLocationRenew(buf) \
   ( _dLocation ? \
	_somRenew(_dLocation, buf) \
	: ( dLocationNewClass(\
		dLocation_MajorVersion, \
		dLocation_MinorVersion),\
	   _somRenew(_dLocation, buf)))

/*
 * New Method: _get_city
 */
typedef string   SOMLINK somTP_dLocation__get_city(dLocation somSelf, Environment *ev);
typedef somTP_dLocation__get_city *somTD_dLocation__get_city;
/*
 *  City where animal was born.
 */
#define somMD_dLocation__get_city "::dLocation::_get_city"
#define dLocation__get_city(somSelf,ev) \
    (SOM_Resolve(somSelf, dLocation, _get_city) \
	(somSelf,ev))
#ifndef SOMGD_get_city
    #if (defined(_get_city) || defined(__get_city))
        #undef _get_city
        #undef __get_city
        #define SOMGD_get_city 1
    #else
        #define __get_city dLocation__get_city
    #endif /* __get_city */
#endif /* SOMGD_get_city */

/*
 * New Method: _set_city
 */
typedef void   SOMLINK somTP_dLocation__set_city(dLocation somSelf, Environment *ev, 
		string city);
typedef somTP_dLocation__set_city *somTD_dLocation__set_city;
/*
 *  City where animal was born.
 */
#define somMD_dLocation__set_city "::dLocation::_set_city"
#define dLocation__set_city(somSelf,ev,city) \
    (SOM_Resolve(somSelf, dLocation, _set_city) \
	(somSelf,ev,city))
#ifndef SOMGD_set_city
    #if (defined(_set_city) || defined(__set_city))
        #undef _set_city
        #undef __set_city
        #define SOMGD_set_city 1
    #else
        #define __set_city dLocation__set_city
    #endif /* __set_city */
#endif /* SOMGD_set_city */

/*
 * New Method: _get_state
 */
typedef string   SOMLINK somTP_dLocation__get_state(dLocation somSelf, Environment *ev);
typedef somTP_dLocation__get_state *somTD_dLocation__get_state;
/*
 *  State where animal was born.
 */
#define somMD_dLocation__get_state "::dLocation::_get_state"
#define dLocation__get_state(somSelf,ev) \
    (SOM_Resolve(somSelf, dLocation, _get_state) \
	(somSelf,ev))
#ifndef SOMGD_get_state
    #if (defined(_get_state) || defined(__get_state))
        #undef _get_state
        #undef __get_state
        #define SOMGD_get_state 1
    #else
        #define __get_state dLocation__get_state
    #endif /* __get_state */
#endif /* SOMGD_get_state */

/*
 * New Method: _set_state
 */
typedef void   SOMLINK somTP_dLocation__set_state(dLocation somSelf, Environment *ev, 
		string state);
typedef somTP_dLocation__set_state *somTD_dLocation__set_state;
/*
 *  State where animal was born.
 */
#define somMD_dLocation__set_state "::dLocation::_set_state"
#define dLocation__set_state(somSelf,ev,state) \
    (SOM_Resolve(somSelf, dLocation, _set_state) \
	(somSelf,ev,state))
#ifndef SOMGD_set_state
    #if (defined(_set_state) || defined(__set_state))
        #undef _set_state
        #undef __set_state
        #define SOMGD_set_state 1
    #else
        #define __set_state dLocation__set_state
    #endif /* __set_state */
#endif /* SOMGD_set_state */

/*
 * Full Names for Inherited Methods
 */
/* overridden methods */
#define dLocation_somDefaultInit SOMObject_somDefaultInit
#define dLocation_somDestruct SOMObject_somDestruct

#ifndef SOM_DONT_USE_INHERITED_MACROS
#define dLocation_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define dLocation_somDefaultAssign SOMObject_somDefaultAssign
#define dLocation_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define dLocation_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define dLocation_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define dLocation_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define dLocation_somDefaultVAssign SOMObject_somDefaultVAssign
#define dLocation_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define dLocation_somInit SOMObject_somInit
#define dLocation_somUninit SOMObject_somUninit
#define dLocation_somFree SOMObject_somFree
#define dLocation_somGetClass SOMObject_somGetClass
#define dLocation_somGetClassName SOMObject_somGetClassName
#define dLocation_somGetSize SOMObject_somGetSize
#define dLocation_somIsA SOMObject_somIsA
#define dLocation_somIsInstanceOf SOMObject_somIsInstanceOf
#define dLocation_somRespondsTo SOMObject_somRespondsTo
#define dLocation_somDispatch SOMObject_somDispatch
#define dLocation_somClassDispatch SOMObject_somClassDispatch
#define dLocation_somCastObj SOMObject_somCastObj
#define dLocation_somResetObj SOMObject_somResetObj
#define dLocation_somPrintSelf SOMObject_somPrintSelf
#define dLocation_somDumpSelf SOMObject_somDumpSelf
#define dLocation_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_dLocation_h */
