All Frameworks Class Hierarchy This Framework Indexes
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:
void myFactory::aCreationMethod(const char *iClass) { HRESULT hr = S_OK; VPMGenericFactorySecuredMethod(iClass,Create,&hr); if (VPM_ACCESS_GRANTED(hr)) { // OK! Let's continue ... } } |
Copyright © 2003, Dassault Systèmes. All rights reserved.