
/*
 * This file was generated by the SOM Compiler.
 * FileName: \odwin\h\FACETITR.h.
 * Generated using:
 *     SOM Precompiler somipc: 2.29.1.3
 *     SOM Emitter emith.dll: 2.41
 */

/*
 * 
 *  Classes used by this interface
 * 
 */


#ifndef SOM_ODFacetIterator_h
#define SOM_ODFacetIterator_h


#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 class data structures as resolution macros
 */
#define ODFacetIteratorClassData (*resolve_ODFacetIteratorClassData())
#define ODFacetIteratorCClassData (*resolve_ODFacetIteratorCClassData())

/*
 * Define the class name as an object type
 */
#ifndef ODFacetIterator
#define ODFacetIterator SOMObject
#endif
#include <ODObject.h>

/*
 * Start of user-defined types:
 */
#ifndef SOMClass
    #define SOMClass SOMObject
#endif /* SOMClass */
#ifndef ODObject
    #define ODObject SOMObject
#endif /* ODObject */
#ifndef ODExtension
    #define ODExtension SOMObject
#endif /* ODExtension */
#ifndef ODFacet
    #define ODFacet SOMObject
#endif /* ODFacet */

/*
 * End of user-defined types.
 */

#define ODFacetIterator_MajorVersion 0
#define ODFacetIterator_MinorVersion 0

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define ODFacetIteratorNewClass c
#define ODFacetIteratorClassData d
#define ODFacetIteratorCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define ODFacetIterator_classObj ODFacetIteratorClassData.classObject
#define _ODFacetIterator ODFacetIterator_classObj

/*
 * Declare the class creation procedure
 */
SOMEXTERN SOMClass * SOMLINK ODFacetIteratorNewClass(integer4 somntmajorVersion,
		integer4 somntminorVersion);

/*
 * Declare the class data structure
 */
SOMEXTERN struct ODFacetIteratorClassDataStructure {
	SOMClass *classObject;
	somMToken InitFacetIterator;
	somMToken First;
	somMToken Next;
	somMToken SkipChildren;
	somMToken IsNotComplete;
}  _ODFacetIteratorClassData;
SOMEXTERN struct ODFacetIteratorClassDataStructure * SOMLINK resolve_ODFacetIteratorClassData(void);

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct ODFacetIteratorCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
}  _ODFacetIteratorCClassData;
SOMEXTERN struct ODFacetIteratorCClassDataStructure * SOMLINK resolve_ODFacetIteratorCClassData(void);

/*
 * New and Renew macros for ODFacetIterator
 */
#define ODFacetIteratorNew() \
   (_somNew(_ODFacetIterator ? _ODFacetIterator : ODFacetIteratorNewClass(ODFacetIterator_MajorVersion, ODFacetIterator_MinorVersion)))
#define ODFacetIteratorRenew(buf) \
   (_somRenew(_ODFacetIterator ? _ODFacetIterator : ODFacetIteratorNewClass(ODFacetIterator_MajorVersion, ODFacetIterator_MinorVersion), buf))

/*
 * Override method: somInit
 */
#define ODFacetIterator_somInit(somSelf) \
	SOMObject_somInit(somSelf)

/*
 * Override method: somUninit
 */
#define ODFacetIterator_somUninit(somSelf) \
	SOMObject_somUninit(somSelf)

/*
 * New Method: InitFacetIterator
 */
typedef void   (SOMLINK * somTD_ODFacetIterator_InitFacetIterator)(ODFacetIterator *somSelf, Environment *ev,
		ODFacet* facet,
		ODTraversalType traversalType,
		ODSiblingOrder siblingOrder);
#define somMD_ODFacetIterator_InitFacetIterator "::ODFacetIterator::InitFacetIterator"
#define ODFacetIterator_InitFacetIterator(somSelf,ev,facet,traversalType,siblingOrder) \
    (SOM_Resolve(somSelf, ODFacetIterator, InitFacetIterator) \
	(somSelf,ev,facet,traversalType,siblingOrder))
#ifndef SOMGD_InitFacetIterator
    #if (defined(_InitFacetIterator) || defined(__InitFacetIterator))
        #undef _InitFacetIterator
        #undef __InitFacetIterator
        #define SOMGD_InitFacetIterator 1
    #else
        #define _InitFacetIterator ODFacetIterator_InitFacetIterator
    #endif /* _InitFacetIterator */
#endif /* SOMGD_InitFacetIterator */

/*
 * New Method: First
 */
typedef ODFacet*   (SOMLINK * somTD_ODFacetIterator_First)(ODFacetIterator *somSelf, Environment *ev);
#define somMD_ODFacetIterator_First "::ODFacetIterator::First"
#define ODFacetIterator_First(somSelf,ev) \
    (SOM_Resolve(somSelf, ODFacetIterator, First) \
	(somSelf,ev))
#ifndef SOMGD_First
    #if (defined(_First) || defined(__First))
        #undef _First
        #undef __First
        #define SOMGD_First 1
    #else
        #define _First ODFacetIterator_First
    #endif /* _First */
#endif /* SOMGD_First */

/*
 * New Method: Next
 */
typedef ODFacet*   (SOMLINK * somTD_ODFacetIterator_Next)(ODFacetIterator *somSelf, Environment *ev);
#define somMD_ODFacetIterator_Next "::ODFacetIterator::Next"
#define ODFacetIterator_Next(somSelf,ev) \
    (SOM_Resolve(somSelf, ODFacetIterator, Next) \
	(somSelf,ev))
#ifndef SOMGD_Next
    #if (defined(_Next) || defined(__Next))
        #undef _Next
        #undef __Next
        #define SOMGD_Next 1
    #else
        #define _Next ODFacetIterator_Next
    #endif /* _Next */
#endif /* SOMGD_Next */

/*
 * New Method: SkipChildren
 */
typedef void   (SOMLINK * somTD_ODFacetIterator_SkipChildren)(ODFacetIterator *somSelf, Environment *ev);
#define somMD_ODFacetIterator_SkipChildren "::ODFacetIterator::SkipChildren"
#define ODFacetIterator_SkipChildren(somSelf,ev) \
    (SOM_Resolve(somSelf, ODFacetIterator, SkipChildren) \
	(somSelf,ev))
#ifndef SOMGD_SkipChildren
    #if (defined(_SkipChildren) || defined(__SkipChildren))
        #undef _SkipChildren
        #undef __SkipChildren
        #define SOMGD_SkipChildren 1
    #else
        #define _SkipChildren ODFacetIterator_SkipChildren
    #endif /* _SkipChildren */
#endif /* SOMGD_SkipChildren */

/*
 * New Method: IsNotComplete
 */
typedef ODBoolean   (SOMLINK * somTD_ODFacetIterator_IsNotComplete)(ODFacetIterator *somSelf, Environment *ev);
#define somMD_ODFacetIterator_IsNotComplete "::ODFacetIterator::IsNotComplete"
#define ODFacetIterator_IsNotComplete(somSelf,ev) \
    (SOM_Resolve(somSelf, ODFacetIterator, IsNotComplete) \
	(somSelf,ev))
#ifndef SOMGD_IsNotComplete
    #if (defined(_IsNotComplete) || defined(__IsNotComplete))
        #undef _IsNotComplete
        #undef __IsNotComplete
        #define SOMGD_IsNotComplete 1
    #else
        #define _IsNotComplete ODFacetIterator_IsNotComplete
    #endif /* _IsNotComplete */
#endif /* SOMGD_IsNotComplete */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define ODFacetIterator_InitObject ODObject_InitObject
#define ODFacetIterator_IsInitialized ODObject_IsInitialized
#define ODFacetIterator_HasExtension ODObject_HasExtension
#define ODFacetIterator_GetExtension ODObject_GetExtension
#define ODFacetIterator_ReleaseExtension ODObject_ReleaseExtension
#define ODFacetIterator_Purge ODObject_Purge
#define ODFacetIterator_IsEqualTo ODObject_IsEqualTo
#define ODFacetIterator_SubClassResponsibility ODObject_SubClassResponsibility
#define ODFacetIterator_somDefaultInit SOMObject_somDefaultInit
#define ODFacetIterator_somDestruct SOMObject_somDestruct
#define ODFacetIterator_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define ODFacetIterator_somDefaultAssign SOMObject_somDefaultAssign
#define ODFacetIterator_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define ODFacetIterator_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define ODFacetIterator_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define ODFacetIterator_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define ODFacetIterator_somDefaultVAssign SOMObject_somDefaultVAssign
#define ODFacetIterator_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define ODFacetIterator_somFree SOMObject_somFree
#define ODFacetIterator_somGetClass SOMObject_somGetClass
#define ODFacetIterator_somGetClassName SOMObject_somGetClassName
#define ODFacetIterator_somGetSize SOMObject_somGetSize
#define ODFacetIterator_somIsA SOMObject_somIsA
#define ODFacetIterator_somIsInstanceOf SOMObject_somIsInstanceOf
#define ODFacetIterator_somRespondsTo SOMObject_somRespondsTo
#define ODFacetIterator_somDispatch SOMObject_somDispatch
#define ODFacetIterator_somClassDispatch SOMObject_somClassDispatch
#define ODFacetIterator_somCastObj SOMObject_somCastObj
#define ODFacetIterator_somResetObj SOMObject_somResetObj
#define ODFacetIterator_somDispatchV SOMObject_somDispatchV
#define ODFacetIterator_somDispatchL SOMObject_somDispatchL
#define ODFacetIterator_somDispatchA SOMObject_somDispatchA
#define ODFacetIterator_somDispatchD SOMObject_somDispatchD
#define ODFacetIterator_somPrintSelf SOMObject_somPrintSelf
#define ODFacetIterator_somDumpSelf SOMObject_somDumpSelf
#define ODFacetIterator_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_ODFacetIterator_h */
