All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

VPMDesktopObjects Interface CATIAVPMVDACommandFactory

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---System.CATBaseDispatch
        |
        +---System.CATIABase
          |
          +---CATIAVPMVDACommandFactory
 

Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.


interface CATIAVPMVDACommandFactory

Interface to the command factory.
Role : The purpose of this interface is to create any kind of other server command just by giving its identifier. It provides only one method to create the command and return an interface pointer.


Method Index


o Create(CATUnicodeString&,CATIAVPMVDACommand*&)
Creates a new command using its identifier.

Methods


o Create
public virtual HRESULT __stdcall Create( const CATUnicodeString& iCommandType,
CATIAVPMVDACommand*& oCommand)= 0
Creates a new command using its identifier.
Parameters:
iCommandType
The command identifier.
oCommand
A pointer to CATIAVPMVDACommand on the newly created command.
Returns:
S_OK in case of success - the pointer is allocated.
S_FALSE if the identifier is unknown.
E_FAIL or null pointer if the new command could not be created.

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

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