home *** CD-ROM | disk | FTP | other *** search
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: h:\somnt\include\PRINCIPL.xh.
- * Generated using:
- * SOM Precompiler somipc: Development
- * SOM Emitter emitxh.dll: Development
- */
-
- /*
- *
- * COMPONENT_NAME: somd
- *
- * ORIGINS: 27
- *
- *
- * 10H9767, 10H9769 (C) COPYRIGHT International Business Machines Corp. 1992,1994
- * 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.
- *
- */
-
-
- #ifndef SOM_Principal_xh
- #define SOM_Principal_xh
-
- class Principal;
-
- /*
- * This is a class interface definition which defines the CORBA-defined
- * Principal object. CORBA defines the Principal object but (at this
- * time) does not define the interface to this object. The methods for
- * this object are, therefore, subject to change in future implementations.
- *
- * The BOA guarantees that for every method invocation it will identify
- * the principal on whose behalf the request is performed. An object
- * implementation may request an instance of this class to determine
- * if a method invocation has been made by someone with the appropriate
- * authority. An instance of this class is returned when the following
- * method is invoked on the BOA:
- *
- * get_principal(in BOA boaobj, in Environment lcl_ev,
- * in SOMDObject obj, in Environment req_ev);
- *
- */
-
- #define Principal_MajorVersion 1
- #define Principal_MinorVersion 0
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_SOMObject_xh
- #include <somobj.xh>
- #endif
-
- #ifndef Principal_API
- #define Principal_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class SOMClass;
- class SOMObject;
-
- /*
- * End of user-defined types.
- */
-
- /* A procedure to create the Principal Class */
- SOMEXTERN
- #if (defined(SOM_Module_PRINCIPL_Source) || defined(Principal_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_Principal))
- WIN32_DLLEXPORT
- #else
- WIN32_DLLIMPORT
- #endif
- SOMClass * SOMLINK PrincipalNewClass(
- integer4,
- integer4 );
-
- /* The API to the Principal class object, and the methods it introduces. */
- SOMEXTERN struct PrincipalClassDataStructure {
- SOMClass *classObject;
- somMToken _set_userName;
- somMToken _get_userName;
- somMToken _set_hostName;
- somMToken _get_hostName;
- }
- #if !(defined(SOM_Module_PRINCIPL_Source) || defined(Principal_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_Principal))
- WIN32_DLLIMPORT
- #elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
- WIN32_DLLEXPORT
- #endif
- SOMDLINK PrincipalClassData;
- #define _Principal PrincipalClassData.classObject
-
- /* The API to parentMtabs for Principal, and the instance data it introduces. */
- SOMEXTERN struct PrincipalCClassDataStructure {
- somMethodTabs parentMtab;
- somDToken instanceDataToken;
- }
- #if !(defined(SOM_Module_PRINCIPL_Source) || defined(Principal_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_Principal))
- WIN32_DLLIMPORT
- #elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
- WIN32_DLLEXPORT
- #endif
- SOMDLINK PrincipalCClassData;
-
- /*
- * -- Typedefs for Principal Method Procedures
- */
- extern "C" {
- typedef string SOMLINK somTP_Principal__get_userName(Principal *somSelf, Environment *ev);
- typedef somTP_Principal__get_userName *somTD_Principal__get_userName;
- typedef void SOMLINK somTP_Principal__set_userName(Principal *somSelf, Environment *ev,
- string userName);
- typedef somTP_Principal__set_userName *somTD_Principal__set_userName;
- typedef string SOMLINK somTP_Principal__get_hostName(Principal *somSelf, Environment *ev);
- typedef somTP_Principal__get_hostName *somTD_Principal__get_hostName;
- typedef void SOMLINK somTP_Principal__set_hostName(Principal *somSelf, Environment *ev,
- string hostName);
- typedef somTP_Principal__set_hostName *somTD_Principal__set_hostName;
-
- /*
- * -- Typedefs for Reintroduced Wrapper Methods
- */
- typedef void SOMLINK somTP_Principal_somDefaultInit(Principal *somSelf,
- somInitCtrl* ctrl);
- typedef somTP_Principal_somDefaultInit *somTD_Principal_somDefaultInit;
- typedef void SOMLINK somTP_Principal_somDestruct(Principal *somSelf,
- octet doFree,
- somDestructCtrl* ctrl);
- typedef somTP_Principal_somDestruct *somTD_Principal_somDestruct;
- typedef void SOMLINK somTP_Principal_somDefaultCopyInit(Principal *somSelf,
- somInitCtrl* ctrl,
- SOMObject* fromObj);
- typedef somTP_Principal_somDefaultCopyInit *somTD_Principal_somDefaultCopyInit;
- typedef Principal* SOMLINK somTP_Principal_somDefaultAssign(Principal *somSelf,
- somAssignCtrl* ctrl,
- SOMObject* fromObj);
- typedef somTP_Principal_somDefaultAssign *somTD_Principal_somDefaultAssign;
- typedef void SOMLINK somTP_Principal_somDefaultConstCopyInit(Principal *somSelf,
- somInitCtrl* ctrl,
- SOMObject* fromObj);
- typedef somTP_Principal_somDefaultConstCopyInit *somTD_Principal_somDefaultConstCopyInit;
- typedef void SOMLINK somTP_Principal_somDefaultVCopyInit(Principal *somSelf,
- somInitCtrl* ctrl,
- SOMObject* fromObj);
- typedef somTP_Principal_somDefaultVCopyInit *somTD_Principal_somDefaultVCopyInit;
- typedef void SOMLINK somTP_Principal_somDefaultConstVCopyInit(Principal *somSelf,
- somInitCtrl* ctrl,
- SOMObject* fromObj);
- typedef somTP_Principal_somDefaultConstVCopyInit *somTD_Principal_somDefaultConstVCopyInit;
- typedef Principal* SOMLINK somTP_Principal_somDefaultConstAssign(Principal *somSelf,
- somAssignCtrl* ctrl,
- SOMObject* fromObj);
- typedef somTP_Principal_somDefaultConstAssign *somTD_Principal_somDefaultConstAssign;
- typedef Principal* SOMLINK somTP_Principal_somDefaultVAssign(Principal *somSelf,
- somAssignCtrl* ctrl,
- SOMObject* fromObj);
- typedef somTP_Principal_somDefaultVAssign *somTD_Principal_somDefaultVAssign;
- typedef Principal* SOMLINK somTP_Principal_somDefaultConstVAssign(Principal *somSelf,
- somAssignCtrl* ctrl,
- SOMObject* fromObj);
- typedef somTP_Principal_somDefaultConstVAssign *somTD_Principal_somDefaultConstVAssign;
- typedef void SOMLINK somTP_Principal_somInit(Principal *somSelf);
- typedef somTP_Principal_somInit *somTD_Principal_somInit;
- typedef void SOMLINK somTP_Principal_somFree(Principal *somSelf);
- typedef somTP_Principal_somFree *somTD_Principal_somFree;
- typedef void SOMLINK somTP_Principal_somUninit(Principal *somSelf);
- typedef somTP_Principal_somUninit *somTD_Principal_somUninit;
- typedef SOMClass* SOMLINK somTP_Principal_somGetClass(Principal *somSelf);
- typedef somTP_Principal_somGetClass *somTD_Principal_somGetClass;
- typedef string SOMLINK somTP_Principal_somGetClassName(Principal *somSelf);
- typedef somTP_Principal_somGetClassName *somTD_Principal_somGetClassName;
- typedef long SOMLINK somTP_Principal_somGetSize(Principal *somSelf);
- typedef somTP_Principal_somGetSize *somTD_Principal_somGetSize;
- typedef boolean SOMLINK somTP_Principal_somIsA(Principal *somSelf,
- SOMClass* aClassObj);
- typedef somTP_Principal_somIsA *somTD_Principal_somIsA;
- typedef boolean SOMLINK somTP_Principal_somIsInstanceOf(Principal *somSelf,
- SOMClass* aClassObj);
- typedef somTP_Principal_somIsInstanceOf *somTD_Principal_somIsInstanceOf;
- typedef boolean SOMLINK somTP_Principal_somRespondsTo(Principal *somSelf,
- somId mId);
- typedef somTP_Principal_somRespondsTo *somTD_Principal_somRespondsTo;
- typedef boolean SOMLINK somTP_Principal_somDispatch(Principal *somSelf,
- somToken* retValue,
- somId methodId,
- va_list ap);
- typedef somTP_Principal_somDispatch *somTD_Principal_somDispatch;
- typedef boolean SOMLINK somTP_Principal_somClassDispatch(Principal *somSelf,
- SOMClass* clsObj,
- somToken* retValue,
- somId methodId,
- va_list ap);
- typedef somTP_Principal_somClassDispatch *somTD_Principal_somClassDispatch;
- typedef boolean SOMLINK somTP_Principal_somCastObj(Principal *somSelf,
- SOMClass* cls);
- typedef somTP_Principal_somCastObj *somTD_Principal_somCastObj;
- typedef boolean SOMLINK somTP_Principal_somResetObj(Principal *somSelf);
- typedef somTP_Principal_somResetObj *somTD_Principal_somResetObj;
- typedef SOMObject* SOMLINK somTP_Principal_somPrintSelf(Principal *somSelf);
- typedef somTP_Principal_somPrintSelf *somTD_Principal_somPrintSelf;
- typedef void SOMLINK somTP_Principal_somDumpSelf(Principal *somSelf,
- long level);
- typedef somTP_Principal_somDumpSelf *somTD_Principal_somDumpSelf;
- typedef void SOMLINK somTP_Principal_somDumpSelfInt(Principal *somSelf,
- long level);
- typedef somTP_Principal_somDumpSelfInt *somTD_Principal_somDumpSelfInt;
- }
-
- #endif /* Principal_API */
-
-
- /*
- * -- This emitter believes that method thunks are unavailable,
- * -- so somResolve will be called.
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) (somResolve(obj,mToken))
-
- /*
- * -- The C++ Wrapper Class for Principal
- */
- class Principal : public SOMObject
- {
- public:
-
- // Principal::new creates the class object if necessary, and then uses somNewNoInit
- // to allocate memory and create the object. Initialization is in ctors.
- void *operator new(size_t)
- {
- if (!_Principal) PrincipalNewClass(Principal_MajorVersion,Principal_MinorVersion);
- return (void*)
- SOM_Resolve(_Principal,SOMClass,somNewNoInit)
- ((SOMClass *)((void*)_Principal));
- }
-
- // Principal::delete uses somDestruct.
- void operator delete(void * obj)
- {
- if (obj && *(void**)obj) {
- SOM_Resolve(obj,SOMObject,somDestruct)
- ((SOMObject*)obj, 1, 0);
- }
- }
-
- Principal()
- {
- if (*(void**)this !=
- ((somParentMtabStructPtr)
- (PrincipalCClassData.parentMtab))->mtab)
- return;
- ((SOMObject*)((void*)this))->somDefaultInit(0);
- }
-
- Principal(Principal* fromObj)
- {
- if (*(void**)this !=
- ((somParentMtabStructPtr)
- (PrincipalCClassData.parentMtab))->mtab)
- return;
- ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
- }
-
- Principal(const Principal* fromObj)
- {
- if (*(void**)this !=
- ((somParentMtabStructPtr)
- (PrincipalCClassData.parentMtab))->mtab)
- return;
- ((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
- }
-
-
- /* method: _get_userName */
- string _get_userName(Environment *ev)
- {
- return SOM_ResolveD(this,Principal,Principal,_get_userName)
- (this, ev);
- }
-
-
- /* method: _set_userName */
- void _set_userName(Environment *ev,
- string userName)
- {
- SOM_ResolveD(this,Principal,Principal,_set_userName)
- (this, ev,userName);
- }
-
-
- /* method: _get_hostName */
- string _get_hostName(Environment *ev)
- {
- return SOM_ResolveD(this,Principal,Principal,_get_hostName)
- (this, ev);
- }
-
-
- /* method: _set_hostName */
- void _set_hostName(Environment *ev,
- string hostName)
- {
- SOM_ResolveD(this,Principal,Principal,_set_hostName)
- (this, ev,hostName);
- }
-
-
- /*
- * Reintroduce inherited methods
- */
-
- /* initializer method: somDefaultInit */
- void somDefaultInit(somInitCtrl* ctrl)
- {
- SOM_ResolveD(this,Principal,SOMObject,somDefaultInit)
- (this,ctrl);
- }
-
-
- /* method: somDestruct */
- void somDestruct(octet doFree,
- somDestructCtrl* ctrl)
- {
- SOM_ResolveD(this,Principal,SOMObject,somDestruct)
- (this,doFree,ctrl);
- }
-
-
- /* initializer method: somDefaultCopyInit */
- void somDefaultCopyInit(somInitCtrl* ctrl,
- SOMObject* fromObj)
- {
- SOM_ResolveD(this,Principal,SOMObject,somDefaultCopyInit)
- (this,ctrl,fromObj);
- }
-
-
- /* method: somDefaultAssign */
- Principal* somDefaultAssign(somAssignCtrl* ctrl,
- SOMObject* fromObj)
- {
- return SOM_ResolveD(this,Principal,SOMObject,somDefaultAssign)
- (this,ctrl,fromObj);
- }
-
-
- /* initializer method: somDefaultConstCopyInit */
- void somDefaultConstCopyInit(somInitCtrl* ctrl,
- SOMObject* fromObj)
- {
- SOM_ResolveD(this,Principal,SOMObject,somDefaultConstCopyInit)
- (this,ctrl,fromObj);
- }
-
-
- /* initializer method: somDefaultVCopyInit */
- void somDefaultVCopyInit(somInitCtrl* ctrl,
- SOMObject* fromObj)
- {
- SOM_ResolveD(this,Principal,SOMObject,somDefaultVCopyInit)
- (this,ctrl,fromObj);
- }
-
-
- /* initializer method: somDefaultConstVCopyInit */
- void somDefaultConstVCopyInit(somInitCtrl* ctrl,
- SOMObject* fromObj)
- {
- SOM_ResolveD(this,Principal,SOMObject,somDefaultConstVCopyInit)
- (this,ctrl,fromObj);
- }
-
-
- /* method: somDefaultConstAssign */
- Principal* somDefaultConstAssign(somAssignCtrl* ctrl,
- SOMObject* fromObj)
- {
- return SOM_ResolveD(this,Principal,SOMObject,somDefaultConstAssign)
- (this,ctrl,fromObj);
- }
-
-
- /* method: somDefaultVAssign */
- Principal* somDefaultVAssign(somAssignCtrl* ctrl,
- SOMObject* fromObj)
- {
- return SOM_ResolveD(this,Principal,SOMObject,somDefaultVAssign)
- (this,ctrl,fromObj);
- }
-
-
- /* method: somDefaultConstVAssign */
- Principal* somDefaultConstVAssign(somAssignCtrl* ctrl,
- SOMObject* fromObj)
- {
- return SOM_ResolveD(this,Principal,SOMObject,somDefaultConstVAssign)
- (this,ctrl,fromObj);
- }
-
-
- /* method: somInit */
- void somInit()
- {
- SOM_ResolveD(this,Principal,SOMObject,somInit)
- (this);
- }
-
-
- /* method: somFree */
- void somFree()
- {
- SOM_ResolveD(this,Principal,SOMObject,somFree)
- (this);
- }
-
-
- /* method: somUninit */
- void somUninit()
- {
- SOM_ResolveD(this,Principal,SOMObject,somUninit)
- (this);
- }
-
-
- /* method: somGetClass */
- SOMClass* somGetClass()
- {
- return SOM_ResolveD(this,Principal,SOMObject,somGetClass)
- (this);
- }
-
-
- /* method: somGetClassName */
- string somGetClassName()
- {
- return SOM_ResolveD(this,Principal,SOMObject,somGetClassName)
- (this);
- }
-
-
- /* method: somGetSize */
- long somGetSize()
- {
- return SOM_ResolveD(this,Principal,SOMObject,somGetSize)
- (this);
- }
-
-
- /* method: somIsA */
- boolean somIsA(SOMClass* aClassObj)
- {
- return SOM_ResolveD(this,Principal,SOMObject,somIsA)
- (this,aClassObj);
- }
-
-
- /* method: somIsInstanceOf */
- boolean somIsInstanceOf(SOMClass* aClassObj)
- {
- return SOM_ResolveD(this,Principal,SOMObject,somIsInstanceOf)
- (this,aClassObj);
- }
-
-
- /* method: somRespondsTo */
- boolean somRespondsTo(somId mId)
- {
- return SOM_ResolveD(this,Principal,SOMObject,somRespondsTo)
- (this,mId);
- }
-
-
- /* va_list method: somDispatch */
- /* the va_list invocation form */
- boolean Principal_somDispatch(somToken* retValue,
- somId methodId,
- va_list ap)
- {
- return SOM_ResolveD(this,Principal,SOMObject,somDispatch)
- (this,retValue,methodId,ap);
- }
-
- /* the varargs invocation form */
- boolean somDispatch(somToken* retValue,
- somId methodId,
- ...)
- {
- va_list ap;
- va_start(ap, methodId);
- boolean __somResult =
- SOM_ResolveD(this,Principal,SOMObject,somDispatch)
- (this,retValue,methodId,ap);
- va_end(ap);
- return __somResult;
- }
-
-
- /* va_list method: somClassDispatch */
- /* the va_list invocation form */
- boolean Principal_somClassDispatch(SOMClass* clsObj,
- somToken* retValue,
- somId methodId,
- va_list ap)
- {
- return SOM_ResolveD(this,Principal,SOMObject,somClassDispatch)
- (this,clsObj,retValue,methodId,ap);
- }
-
- /* the varargs invocation form */
- boolean somClassDispatch(SOMClass* clsObj,
- somToken* retValue,
- somId methodId,
- ...)
- {
- va_list ap;
- va_start(ap, methodId);
- boolean __somResult =
- SOM_ResolveD(this,Principal,SOMObject,somClassDispatch)
- (this,clsObj,retValue,methodId,ap);
- va_end(ap);
- return __somResult;
- }
-
-
- /* method: somCastObj */
- boolean somCastObj(SOMClass* cls)
- {
- return SOM_ResolveD(this,Principal,SOMObject,somCastObj)
- (this,cls);
- }
-
-
- /* method: somResetObj */
- boolean somResetObj()
- {
- return SOM_ResolveD(this,Principal,SOMObject,somResetObj)
- (this);
- }
-
-
- /* method: somPrintSelf */
- SOMObject* somPrintSelf()
- {
- return SOM_ResolveD(this,Principal,SOMObject,somPrintSelf)
- (this);
- }
-
-
- /* method: somDumpSelf */
- void somDumpSelf(long level)
- {
- SOM_ResolveD(this,Principal,SOMObject,somDumpSelf)
- (this,level);
- }
-
-
- /* method: somDumpSelfInt */
- void somDumpSelfInt(long level)
- {
- SOM_ResolveD(this,Principal,SOMObject,somDumpSelfInt)
- (this,level);
- }
-
-
-
- }; /* Principal */
-
-
-
- #endif /* SOM_Principal_xh */
-