CATPLMUpdateUseItf CATPLMUpdateFactory

Usage: you must use this class as is. You should never derive it.


public class CATPLMUpdateFactory

Factory class exposing a static method to create a PLMUpdate Engine.

Role: Expose a static method allowing the creation of a PLMUpdate engine. Do not forget that only one PLMUpdate engine can be used at each time.

Example:
  CATIPLMUpdateEngine* engine = NULL;
  HRESULT rc = CATPLMUpdateFactory::InstantiateUpdateEngine(engine);
  if (S_OK == rc && (engine != NULL))
  {
    // Init and use your engine.
    // ...

    // Do not forget to release it:
    engine->Release();
    engine = NULL;
  }

 


Method Index


o InstantiateUpdateEngine(CATIPLMUpdateEngine*&)
Instantiate a PLMUpdate engine.

Methods


o InstantiateUpdateEngine
public static InstantiateUpdateEngine( oUpdateEngine)
Instantiate a PLMUpdate engine.
Role: Instantiate a PLMUpdate engine. Do not forget that only one PLMUpdate engine can be used at each time.
Parameters:
oUpdateEngine
[out, CATBaseUnknown#Release] The PLMUpdate engine created by this factory. This engine has to be released after usage.
Returns:
S_OK if everything ran ok, E_UNEXPECTED if a serious error occured.

This object is included in the file: CATPLMUpdateFactory.h
If needed, your Imakefile.mk should include the module: CATPLMUpdateUseItf

Copyright © 1999-2014, Dassault Systèmes. All rights reserved.