
/*
 * This file was generated by the SOM Compiler.
 * FileName: dog.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.
 * 
 *    @(#) 1.1 src/somples.os2/somu/c/fb/dog.idl, somples.somu, som3.0 12/2/96 14:34:14 [12/4/96 15:12:50]
 * 
 * 
 * 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_Dog_h
#define SOM_Dog_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>

/*
 * -- 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 Dog
#define Dog 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 Dog_MajorVersion 0
#define Dog_MinorVersion 0

/*
 * Declare the class creation procedure
 */
SOMEXTERN 
#if defined(SOM_Module_dog_Source)
        SOMDLLEXPORT
#else
    SOMDLLIMPORT
#endif
 SOMClass  SOMLINK DogNewClass(integer4 somtmajorVersion,
		integer4 somtminorVersion);

/*
 * Declare the ABI 2 ClassData structure
 */
SOMEXTERN struct DogClassDataStructure {
	SOMClass classObject;
	somMToken dogActivity;
	somMToken DogSet;
	somMToken DogGet;
} 
#if defined(SOM_Module_dog_Source)
        SOMDLLEXPORT
#else
    SOMDLLIMPORT
#endif
 SOMDLINK DogClassData;

/*
 * Declare the ABI 2 CClassData structure
 */
SOMEXTERN struct DogCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
} 
#if defined(SOM_Module_dog_Source)
        SOMDLLEXPORT
#else
    SOMDLLIMPORT
#endif
 SOMDLINK DogCClassData;

/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_Dog (DogClassData.classObject)
#ifndef SOMGD_Dog
    #if (defined(_Dog) || defined(__Dog))
        #undef _Dog
        #undef __Dog
        #define SOMGD_Dog 1
    #else
        #define _Dog _SOMCLASS_Dog
    #endif /* _Dog */
#endif /* SOMGD_Dog */
#define Dog_classObj _SOMCLASS_Dog
#define _SOMMTOKEN_Dog(method) ((somMToken)DogClassData.method)

/*
 * New and Renew macros for Dog
 */
#define DogNew() \
   ( _Dog ? \
	_somNew(_Dog) \
	: ( DogNewClass(\
		Dog_MajorVersion, \
		Dog_MinorVersion),\
	   _somNew(_Dog)))
#define DogRenew(buf) \
   ( _Dog ? \
	_somRenew(_Dog, buf) \
	: ( DogNewClass(\
		Dog_MajorVersion, \
		Dog_MinorVersion),\
	   _somRenew(_Dog, buf)))

/*
 * New Method: dogActivity
 */
typedef void   SOMLINK somTP_Dog_dogActivity(Dog somSelf);
typedef somTP_Dog_dogActivity *somTD_Dog_dogActivity;
#define somMD_Dog_dogActivity "::Dog::dogActivity"
#define Dog_dogActivity(somSelf) \
    (SOM_Resolve(somSelf, Dog, dogActivity) \
	(somSelf))
#ifndef SOMGD_dogActivity
    #if (defined(_dogActivity) || defined(__dogActivity))
        #undef _dogActivity
        #undef __dogActivity
        #define SOMGD_dogActivity 1
    #else
        #define _dogActivity Dog_dogActivity
    #endif /* _dogActivity */
#endif /* SOMGD_dogActivity */

/*
 * New Method: DogSet
 */
typedef void   SOMLINK somTP_Dog_DogSet(Dog somSelf, 
		string s);
typedef somTP_Dog_DogSet *somTD_Dog_DogSet;
#define somMD_Dog_DogSet "::Dog::DogSet"
#define Dog_DogSet(somSelf,s) \
    (SOM_Resolve(somSelf, Dog, DogSet) \
	(somSelf,s))
#ifndef SOMGD_DogSet
    #if (defined(_DogSet) || defined(__DogSet))
        #undef _DogSet
        #undef __DogSet
        #define SOMGD_DogSet 1
    #else
        #define _DogSet Dog_DogSet
    #endif /* _DogSet */
#endif /* SOMGD_DogSet */

/*
 * New Method: DogGet
 */
typedef string   SOMLINK somTP_Dog_DogGet(Dog somSelf);
typedef somTP_Dog_DogGet *somTD_Dog_DogGet;
#define somMD_Dog_DogGet "::Dog::DogGet"
#define Dog_DogGet(somSelf) \
    (SOM_Resolve(somSelf, Dog, DogGet) \
	(somSelf))
#ifndef SOMGD_DogGet
    #if (defined(_DogGet) || defined(__DogGet))
        #undef _DogGet
        #undef __DogGet
        #define SOMGD_DogGet 1
    #else
        #define _DogGet Dog_DogGet
    #endif /* _DogGet */
#endif /* SOMGD_DogGet */

/*
 * Full Names for Inherited Methods
 */
/* overridden methods */
#define Dog_somDefaultInit SOMObject_somDefaultInit

#ifndef SOM_DONT_USE_INHERITED_MACROS
#define Dog_somDestruct SOMObject_somDestruct
#define Dog_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define Dog_somDefaultAssign SOMObject_somDefaultAssign
#define Dog_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define Dog_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define Dog_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define Dog_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define Dog_somDefaultVAssign SOMObject_somDefaultVAssign
#define Dog_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define Dog_somInit SOMObject_somInit
#define Dog_somUninit SOMObject_somUninit
#define Dog_somFree SOMObject_somFree
#define Dog_somGetClass SOMObject_somGetClass
#define Dog_somGetClassName SOMObject_somGetClassName
#define Dog_somGetSize SOMObject_somGetSize
#define Dog_somIsA SOMObject_somIsA
#define Dog_somIsInstanceOf SOMObject_somIsInstanceOf
#define Dog_somRespondsTo SOMObject_somRespondsTo
#define Dog_somDispatch SOMObject_somDispatch
#define Dog_somClassDispatch SOMObject_somClassDispatch
#define Dog_somCastObj SOMObject_somCastObj
#define Dog_somResetObj SOMObject_somResetObj
#define Dog_somPrintSelf SOMObject_somPrintSelf
#define Dog_somDumpSelf SOMObject_somDumpSelf
#define Dog_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_Dog_h */
