All Frameworks Class Hierarchy This Framework Previous Next Indexes
System.IUnknown | +---System.IDispatch | +---System.CATBaseUnknown | +---DNBIMHIOpenAccess
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface DNBIMHIOpenAccess
Interface representing a means to load data from the Hub into V5.
DNBIMHIOpenAccess is implemented on CATSession. Applications and CAA partners should NOT implement this interface.
CATSession * pSession = CATSession::GetPtrSession(); if (pSession) { DNBIMHIOpenAccess * pOpenAccess = NULL; HRESULT RC = pSession->QueryInterface(IID_DNBIMHIOpenAccess, (void**) &pOpenAccess); if (SUCCEEDED(RC) && NULL != pOpenAccess) { CATUnicodeString uLogin = "admin"; CATUnicodeString uPassword = "admin"; RC = pOpenAccess->ConnectToPPRHub( uLogin, uPassword ); // Call method CreateLoadParameters() // Call methods on DNBIMHILoadParameters to populate load information // Call method LoadFromPPRHub() load data into V5 // Release and set to NULL the pointer to DNBIMHILoadParameters // obtained via the call to CreateLoadParameters pOpenAccess->Release(); pOpenAccess = NULL; } // if (SUCCEEDED(RC) && NULL != pOpenAccess) } // if (pSession)
public virtual HRESULT ConnectToPPRHub( | const CATUnicodeString& | iUsername, |
const CATUnicodeString& | iPassword)= 0 |
S_OK
if connection established OK
S_FALSE
if connection is already established for user
E_FAIL
if connection could not be established
public virtual HRESULT CreateLoadParameters( | DNBIMHILoadParameters*& | oLoadParameters)= 0 |
S_OK
if object created ok and interface pointer returned OK
E_FAIL
on error
public virtual HRESULT LoadFromPPRHub( | const DNBIMHILoadParameters* | iLoadParameters, | |
CATDocument*& | oLoadedDoc, | ||
CATListOfCATUnicodeString& | oErrorMessages, | ||
CATBoolean | iCreateDefaultWindow | = TRUE, | |
CATBoolean | iIsReadOnly | = FALSE )= 0 |
S_OK
if everything ran OK
E_FAIL
on error
Copyright © 2003, Dassault Systèmes. All rights reserved.