All Frameworks  Class Hierarchy  This Framework  Indexes

VPMInterfaces Macro VPMGenericFactorySecuredMethod

Macro VPMGenericFactorySecuredMethod (iClass,iMeth,oHres)
Controls Access to a factory secured function.

Role: This macro controls global access to a class method.
A global access means that no condition is checked (even when a condition is defined in privileges), as with Create method.

Usage:

Example:
 void myFactory::aCreationMethod(const char *iClass)
 {
   HRESULT hr = S_OK;
   VPMGenericFactorySecuredMethod(iClass,Create,&hr);
   if (VPM_ACCESS_GRANTED(hr)) {
      // OK! Let's continue ...
   }
 }
Parameters:
iClass
The class name (as a QUOTED string, e.g: "ENOVIA_myClass")
iMeth
The object's method name.
Warning! It must be non-quoted string (symbol, e.g: Create)
oHres
A pointer on the HRESULT code.
See also:
VPMCheckingGlobalMethod, VPMCheckingObjectSecuredMethod, VPMSecuredMethod, VPM_ACCESS_GRANTED, VPM_ACCESS_DENIED

This object is included in the file: VPMSecurity.h

Copyright © 2003, Dassault Systèmes. All rights reserved.