
/*
 * This file was generated by the SOM Compiler.
 * FileName: F:\build\newproj\include.ppc\repostry.h.
 * Generated using:
 *     SOM Precompiler somipc: 2.29.1.3
 *     SOM Emitter emith: 2.41
 */

/*
 *   Repository: CORBA Interface for access to repository objects
 *   See CORBA 7.5.2, pp.132-133
 */


#ifndef SOM_Repository_h
#define SOM_Repository_h


/*
 * Passthru lines: File: "C.h", "before"
 */

    #include <stdio.h>
    #include <somtcnst.h>
    #include <somir.h>
    #include <containd.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 the class name as an object type
 */
#ifndef Repository
#define Repository SOMObject
#endif
#include <containr.h>

/*
 * Start of bindings for IDL types
 */

#ifndef SOMClass
    #define SOMClass SOMObject
#endif /* SOMClass */
#ifndef Contained
    #define Contained SOMObject
#endif /* Contained */
typedef
struct Repository_RepositoryDescription {
Identifier name;
string  id;
string  defined_in;
} Repository_RepositoryDescription;
/*
 *  The inherited describe_contents method returns an instance
 *  of this (RepositoryDescription) structure in the value
 *  member of the Description structure defined in the Container
 *  interface.
 */

typedef unsigned long Repository_irOpenErrorCodes;
#define Repository_NOACCESS 1UL
#define Repository_BADMAGICNUMBER 2UL
#define Repository_MISSINGVERSIONINFO 3UL
#define Repository_IOERROR 4UL
#define Repository_VERSIONMISMATCH 5UL
#define ex_Repository_irOpenError "::Repository::irOpenError"
typedef
struct Repository_irOpenError {
Repository_irOpenErrorCodes errorCode;
string  fileName;
} Repository_irOpenError;
/*
 *  The irOpenError and associated irOpenErrorCodes are a
 *  SOM-unique extension to the Interface Repository.  These
 *  errors may be raised by the somNew when instantiating the
 *  Repository object and can be found in the SOM global
 *  Environment.
 */


#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_RepositoryDescription
    #ifdef RepositoryDescription
        #undef RepositoryDescription
        #define SOMTGD_RepositoryDescription 1
    #else
        #define RepositoryDescription Repository_RepositoryDescription
    #endif /* RepositoryDescription */
#endif /* SOMTGD_RepositoryDescription */
#ifndef SOMTGD_irOpenErrorCodes
    #ifdef irOpenErrorCodes
        #undef irOpenErrorCodes
        #define SOMTGD_irOpenErrorCodes 1
    #else
        #define irOpenErrorCodes Repository_irOpenErrorCodes
    #endif /* irOpenErrorCodes */
#endif /* SOMTGD_irOpenErrorCodes */
#ifndef SOMTGD_ex_irOpenError
    #ifdef ex_irOpenError
        #undef ex_irOpenError
        #define SOMTGD_ex_irOpenError 1
    #else
        #define ex_irOpenError ex_Repository_irOpenError
    #endif /* ex_irOpenError */
#endif /* SOMTGD_ex_irOpenError */
#ifndef SOMTGD_irOpenError
    #ifdef irOpenError
        #undef irOpenError
        #define SOMTGD_irOpenError 1
    #else
        #define irOpenError Repository_irOpenError
    #endif /* irOpenError */
#endif /* SOMTGD_irOpenError */
#endif /* SOM_DONT_USE_SHORT_NAMES */

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

#define Repository_MajorVersion 2
#define Repository_MinorVersion 1

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define RepositoryNewClass c
#define RepositoryClassData d
#define RepositoryCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define Repository_classObj RepositoryClassData.classObject
#define _Repository Repository_classObj

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct RepositoryClassDataStructure {
	SOMClass *classObject;
	somMToken lookup_id;
	somMToken lookup_modifier;
	somMToken release_cache;
} SOMDLINK RepositoryClassData;

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct RepositoryCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
} SOMDLINK RepositoryCClassData;

/*
 * New and Renew macros for Repository
 */
#define RepositoryNew() \
   (_somNew(_Repository ? _Repository : RepositoryNewClass(Repository_MajorVersion, Repository_MinorVersion)))
#define RepositoryRenew(buf) \
   (_somRenew(_Repository ? _Repository : RepositoryNewClass(Repository_MajorVersion, Repository_MinorVersion), buf))

/*
 * Override method: describe_contents
 */
#define Repository_describe_contents(somSelf,ev,limit_type,exclude_inherited,max_returned_objs) \
	Container_describe_contents(somSelf,ev,limit_type,exclude_inherited,max_returned_objs)

/*
 * Override method: somFree
 */
#define Repository_somFree(somSelf) \
	SOMObject_somFree(somSelf)

/*
 * Override method: somDumpSelf
 */
#define Repository_somDumpSelf(somSelf,level) \
	SOMObject_somDumpSelf(somSelf,level)

/*
 * Override method: somDumpSelfInt
 */
#define Repository_somDumpSelfInt(somSelf,level) \
	SOMObject_somDumpSelfInt(somSelf,level)

/*
 * New Method: lookup_id
 */
typedef Contained*   SOMLINK somTP_Repository_lookup_id(Repository *somSelf, Environment *ev, 
		string search_id);
typedef somTP_Repository_lookup_id *somTD_Repository_lookup_id;
#define somMD_Repository_lookup_id "::Repository::lookup_id"
#define Repository_lookup_id(somSelf,ev,search_id) \
    (SOM_Resolve(somSelf, Repository, lookup_id) \
	(somSelf,ev,search_id))
#ifndef SOMGD_lookup_id
    #if (defined(_lookup_id) || defined(__lookup_id))
        #undef _lookup_id
        #undef __lookup_id
        #define SOMGD_lookup_id 1
    #else
        #define _lookup_id Repository_lookup_id
    #endif /* _lookup_id */
#endif /* SOMGD_lookup_id */

/*
 * New Method: lookup_modifier
 */
typedef string   SOMLINK somTP_Repository_lookup_modifier(Repository *somSelf, Environment *ev, 
		string name, 
		string modifier);
typedef somTP_Repository_lookup_modifier *somTD_Repository_lookup_modifier;
#define somMD_Repository_lookup_modifier "::Repository::lookup_modifier"
#define Repository_lookup_modifier(somSelf,ev,name,modifier) \
    (SOM_Resolve(somSelf, Repository, lookup_modifier) \
	(somSelf,ev,name,modifier))
#ifndef SOMGD_lookup_modifier
    #if (defined(_lookup_modifier) || defined(__lookup_modifier))
        #undef _lookup_modifier
        #undef __lookup_modifier
        #define SOMGD_lookup_modifier 1
    #else
        #define _lookup_modifier Repository_lookup_modifier
    #endif /* _lookup_modifier */
#endif /* SOMGD_lookup_modifier */

/*
 * New Method: release_cache
 */
typedef void   SOMLINK somTP_Repository_release_cache(Repository *somSelf, Environment *ev);
typedef somTP_Repository_release_cache *somTD_Repository_release_cache;
#define somMD_Repository_release_cache "::Repository::release_cache"
#define Repository_release_cache(somSelf,ev) \
    (SOM_Resolve(somSelf, Repository, release_cache) \
	(somSelf,ev))
#ifndef SOMGD_release_cache
    #if (defined(_release_cache) || defined(__release_cache))
        #undef _release_cache
        #undef __release_cache
        #define SOMGD_release_cache 1
    #else
        #define _release_cache Repository_release_cache
    #endif /* _release_cache */
#endif /* SOMGD_release_cache */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define Repository_contents Container_contents
#define Repository_lookup_name Container_lookup_name
#define Repository_somDefaultInit SOMObject_somDefaultInit
#define Repository_somDestruct SOMObject_somDestruct
#define Repository_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define Repository_somDefaultAssign SOMObject_somDefaultAssign
#define Repository_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define Repository_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define Repository_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define Repository_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define Repository_somDefaultVAssign SOMObject_somDefaultVAssign
#define Repository_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define Repository_somInit SOMObject_somInit
#define Repository_somUninit SOMObject_somUninit
#define Repository_somGetClass SOMObject_somGetClass
#define Repository_somGetClassName SOMObject_somGetClassName
#define Repository_somGetSize SOMObject_somGetSize
#define Repository_somIsA SOMObject_somIsA
#define Repository_somIsInstanceOf SOMObject_somIsInstanceOf
#define Repository_somRespondsTo SOMObject_somRespondsTo
#define Repository_somDispatch SOMObject_somDispatch
#define Repository_somClassDispatch SOMObject_somClassDispatch
#define Repository_somCastObj SOMObject_somCastObj
#define Repository_somResetObj SOMObject_somResetObj
#define Repository_somPrintSelf SOMObject_somPrintSelf
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_Repository_h */
