home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / som / include / principl.h < prev    next >
C/C++ Source or Header  |  1999-02-22  |  9KB  |  272 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: principl.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.29.1.17
  7.  *     SOM Emitter emith: 2.47
  8.  */
  9.  
  10. /*
  11.  *    COMPONENT_NAME: somd
  12.  * 
  13.  *    ORIGINS: 27
  14.  * 
  15.  * 
  16.  *    10H9767, 10H9769  (C) COPYRIGHT International Business Machines Corp. 1992,1994
  17.  *    All Rights Reserved
  18.  *    Licensed Materials - Property of IBM
  19.  *    US Government Users Restricted Rights - Use, duplication or
  20.  *    disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  21.  * 
  22.  */
  23.  
  24.  
  25. #ifndef SOM_Principal_h
  26. #define SOM_Principal_h
  27.  
  28.  
  29. #include <som.h>
  30.  
  31. /*
  32.  * -- This emitter treats Method Tokens as Thunks by default.
  33.  * -- Use the sc modifier "nothunks" to change this default
  34.  */
  35. #undef somresolve_
  36. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  37.  
  38. /*
  39.  * Define the class name as an object type
  40.  */
  41. #ifndef Principal
  42. #define Principal SOMObject
  43. #endif
  44. /*
  45.  *    This is a class interface definition which defines the CORBA-defined
  46.  *    Principal object. CORBA defines the Principal object but (at this
  47.  *    time) does not define the interface to this object. The methods for
  48.  *    this object are, therefore, subject to change in future implementations.
  49.  * 
  50.  *    The BOA guarantees that for every method invocation it will identify
  51.  *    the principal on whose behalf the request is performed. An object
  52.  *    implementation may request an instance of this class to determine
  53.  *    if a method invocation has been made by someone with the appropriate
  54.  *    authority. An instance of this class is returned when the following
  55.  *    method is invoked on the BOA:
  56.  * 
  57.  *      get_principal(in BOA boaobj, in Environment lcl_ev,
  58.  *                    in SOMDObject obj, in Environment req_ev);
  59.  * 
  60.  */
  61. #include <somobj.h>
  62.  
  63. /*
  64.  * Start of bindings for IDL types
  65.  */
  66.  
  67. #ifndef SOMClass
  68.     #define SOMClass SOMObject
  69. #endif /* SOMClass */
  70.  
  71. /*
  72.  * End of bindings for IDL types.
  73.  */
  74.  
  75. #define Principal_MajorVersion 1
  76. #define Principal_MinorVersion 0
  77.  
  78. /*
  79.  * External name shortening if required
  80.  */
  81. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  82. #define PrincipalNewClass c
  83. #pragma linkage(c, system)
  84. #define PrincipalClassData d
  85. #define PrincipalCClassData x
  86. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  87. /*--------------Migration------------*/
  88. #define Principal_classObj PrincipalClassData.classObject
  89. #define _Principal Principal_classObj
  90.  
  91. /*
  92.  * Declare the class creation procedure
  93.  */
  94. SOMEXTERN SOMClass * SOMLINK PrincipalNewClass(integer4 somtmajorVersion,
  95.         integer4 somtminorVersion);
  96. #pragma linkage(PrincipalNewClass, system)
  97.  
  98. /*
  99.  * Declare the class data structure
  100.  */
  101. SOMEXTERN struct PrincipalClassDataStructure {
  102.     SOMClass *classObject;
  103.     somMToken _set_userName;
  104.     somMToken _get_userName;
  105.     somMToken _set_hostName;
  106.     somMToken _get_hostName;
  107. } SOMDLINK PrincipalClassData;
  108.  
  109. /*
  110.  * Declare the C specific class data structure
  111.  */
  112. SOMEXTERN struct PrincipalCClassDataStructure {
  113.     somMethodTabs parentMtab;
  114.     somDToken instanceDataToken;
  115. } SOMDLINK PrincipalCClassData;
  116.  
  117. /*
  118.  * New and Renew macros for Principal
  119.  */
  120. #define PrincipalNew() \
  121.    ( _Principal ? \
  122.     _somNew(_Principal) \
  123.     : ( PrincipalNewClass(\
  124.         Principal_MajorVersion, \
  125.         Principal_MinorVersion),\
  126.        _somNew(_Principal)))
  127. #define PrincipalRenew(buf) \
  128.    ( _Principal ? \
  129.     _somRenew(_Principal, buf) \
  130.     : ( PrincipalNewClass(\
  131.         Principal_MajorVersion, \
  132.         Principal_MinorVersion),\
  133.        _somRenew(_Principal, buf)))
  134.  
  135. /*
  136.  * Override method: somDefaultInit
  137.  */
  138. #define Principal_somDefaultInit(somSelf,ctrl) \
  139.     SOMObject_somDefaultInit(somSelf,ctrl)
  140.  
  141. /*
  142.  * Override method: somDestruct
  143.  */
  144. #define Principal_somDestruct(somSelf,doFree,ctrl) \
  145.     SOMObject_somDestruct(somSelf,doFree,ctrl)
  146.  
  147. /*
  148.  * New Method: _get_userName
  149.  */
  150. typedef string   SOMLINK somTP_Principal__get_userName(Principal *somSelf, Environment *ev);
  151. #pragma linkage(somTP_Principal__get_userName, system)
  152. typedef somTP_Principal__get_userName *somTD_Principal__get_userName;
  153. /*
  154.  *  User who made the request.
  155.  */
  156. #define somMD_Principal__get_userName "::Principal::_get_userName"
  157. #define Principal__get_userName(somSelf,ev) \
  158.     (SOM_Resolve(somSelf, Principal, _get_userName) \
  159.     (somSelf,ev))
  160. #ifndef SOMGD_get_userName
  161.     #if (defined(_get_userName) || defined(__get_userName))
  162.         #undef _get_userName
  163.         #undef __get_userName
  164.         #define SOMGD_get_userName 1
  165.     #else
  166.         #define __get_userName Principal__get_userName
  167.     #endif /* __get_userName */
  168. #endif /* SOMGD_get_userName */
  169.  
  170. /*
  171.  * New Method: _set_userName
  172.  */
  173. typedef void   SOMLINK somTP_Principal__set_userName(Principal *somSelf, Environment *ev, 
  174.         string userName);
  175. #pragma linkage(somTP_Principal__set_userName, system)
  176. typedef somTP_Principal__set_userName *somTD_Principal__set_userName;
  177. /*
  178.  *  User who made the request.
  179.  */
  180. #define somMD_Principal__set_userName "::Principal::_set_userName"
  181. #define Principal__set_userName(somSelf,ev,userName) \
  182.     (SOM_Resolve(somSelf, Principal, _set_userName) \
  183.     (somSelf,ev,userName))
  184. #ifndef SOMGD_set_userName
  185.     #if (defined(_set_userName) || defined(__set_userName))
  186.         #undef _set_userName
  187.         #undef __set_userName
  188.         #define SOMGD_set_userName 1
  189.     #else
  190.         #define __set_userName Principal__set_userName
  191.     #endif /* __set_userName */
  192. #endif /* SOMGD_set_userName */
  193.  
  194. /*
  195.  * New Method: _get_hostName
  196.  */
  197. typedef string   SOMLINK somTP_Principal__get_hostName(Principal *somSelf, Environment *ev);
  198. #pragma linkage(somTP_Principal__get_hostName, system)
  199. typedef somTP_Principal__get_hostName *somTD_Principal__get_hostName;
  200. /*
  201.  *  Host from which the request was made.
  202.  */
  203. #define somMD_Principal__get_hostName "::Principal::_get_hostName"
  204. #define Principal__get_hostName(somSelf,ev) \
  205.     (SOM_Resolve(somSelf, Principal, _get_hostName) \
  206.     (somSelf,ev))
  207. #ifndef SOMGD_get_hostName
  208.     #if (defined(_get_hostName) || defined(__get_hostName))
  209.         #undef _get_hostName
  210.         #undef __get_hostName
  211.         #define SOMGD_get_hostName 1
  212.     #else
  213.         #define __get_hostName Principal__get_hostName
  214.     #endif /* __get_hostName */
  215. #endif /* SOMGD_get_hostName */
  216.  
  217. /*
  218.  * New Method: _set_hostName
  219.  */
  220. typedef void   SOMLINK somTP_Principal__set_hostName(Principal *somSelf, Environment *ev, 
  221.         string hostName);
  222. #pragma linkage(somTP_Principal__set_hostName, system)
  223. typedef somTP_Principal__set_hostName *somTD_Principal__set_hostName;
  224. /*
  225.  *  Host from which the request was made.
  226.  */
  227. #define somMD_Principal__set_hostName "::Principal::_set_hostName"
  228. #define Principal__set_hostName(somSelf,ev,hostName) \
  229.     (SOM_Resolve(somSelf, Principal, _set_hostName) \
  230.     (somSelf,ev,hostName))
  231. #ifndef SOMGD_set_hostName
  232.     #if (defined(_set_hostName) || defined(__set_hostName))
  233.         #undef _set_hostName
  234.         #undef __set_hostName
  235.         #define SOMGD_set_hostName 1
  236.     #else
  237.         #define __set_hostName Principal__set_hostName
  238.     #endif /* __set_hostName */
  239. #endif /* SOMGD_set_hostName */
  240. #ifndef SOM_DONT_USE_INHERITED_MACROS
  241. #define Principal_somDefaultCopyInit SOMObject_somDefaultCopyInit
  242. #define Principal_somDefaultAssign SOMObject_somDefaultAssign
  243. #define Principal_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
  244. #define Principal_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
  245. #define Principal_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
  246. #define Principal_somDefaultConstAssign SOMObject_somDefaultConstAssign
  247. #define Principal_somDefaultVAssign SOMObject_somDefaultVAssign
  248. #define Principal_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
  249. #define Principal_somInit SOMObject_somInit
  250. #define Principal_somFree SOMObject_somFree
  251. #define Principal_somUninit SOMObject_somUninit
  252. #define Principal_somGetClass SOMObject_somGetClass
  253. #define Principal_somGetClassName SOMObject_somGetClassName
  254. #define Principal_somGetSize SOMObject_somGetSize
  255. #define Principal_somIsA SOMObject_somIsA
  256. #define Principal_somIsInstanceOf SOMObject_somIsInstanceOf
  257. #define Principal_somRespondsTo SOMObject_somRespondsTo
  258. #define Principal_somDispatch SOMObject_somDispatch
  259. #define Principal_somClassDispatch SOMObject_somClassDispatch
  260. #define Principal_somCastObj SOMObject_somCastObj
  261. #define Principal_somResetObj SOMObject_somResetObj
  262. #define Principal_somDispatchV SOMObject_somDispatchV
  263. #define Principal_somDispatchL SOMObject_somDispatchL
  264. #define Principal_somDispatchA SOMObject_somDispatchA
  265. #define Principal_somDispatchD SOMObject_somDispatchD
  266. #define Principal_somPrintSelf SOMObject_somPrintSelf
  267. #define Principal_somDumpSelf SOMObject_somDumpSelf
  268. #define Principal_somDumpSelfInt SOMObject_somDumpSelfInt
  269. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  270.  
  271. #endif       /* SOM_Principal_h */
  272.