All Frameworks Class Hierarchy This Framework Previous Indexes
System.IUnknown
|
+---System.IDispatch
|
+---System.CATBaseUnknown
|
+---DNBIMHISaveAccess
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface DNBIMHISaveAccess
Interface representing a means to (1) Save data to the Hub (2) Retrieve certain information on the loaded document
DNBIMHISaveAccess is implemented on CATDocument.
Applications and CAA partners should NOT implement this interface.
// *********************************
// Example: Saving a Loaded Document
// *********************************
CATDocument * pLoadedDocument = ... ;
if (pLoadedDocument)
{
DNBIMHISaveAccess * pSaveAccess = NULL;
HRESULT RC = pLoadedDocument->QueryInterface(IID_DNBIMHISaveAccess,
(void**) &pSaveAccess);
if (SUCCEEDED(RC) && NULL != pSaveAccess)
{
CATUnicodeString uDetailingName = "Detailing for Workplan A";
CATBoolean bOverwriteDetailing = TRUE;
CATListOfCATUnicodeString ListErrorMessages;
RC = pSaveAccess->SaveToPPRHub( uDetailingName,
bOverwriteDetailing, ListErrorMessages );
pSaveAccess->Release();
pSaveAccess = NULL;
} // if (SUCCEEDED(RC) && NULL != pSaveAccess)
} // if (pLoadedDocument)
| public virtual HRESULT GetDetailingNames( | CATUnicodeString& | oCurrentlyLoadedDetailing, |
| CATListOfCATUnicodeString& | oListDetailingNames)= 0 |
S_OK if names returned OK
S_FALSE if no detailings exist for the loaded object
E_FAIL on error
| public virtual HRESULT GetLoadParameters( | DNBIMHILoadParameters*& | oLoadParameters)= 0 |
S_OK if everything ran OK
E_FAIL on error
| public virtual HRESULT SaveToPPRHub( | const CATUnicodeString& | iDetailingName, |
| const CATBoolean& | iOverwriteDetailing, | |
| CATListOfCATUnicodeString& | oListErrorMessages)= 0 |
S_OK if everything ran OK
E_FAIL on error
Copyright © 2003, Dassault Systèmes. All rights reserved.