API | ITcLibraryManager Methods 5.39.1.1 ITcLibraryManager::GetLibraryIecDeclaration | ITcLibraryManager::GetLibraryIecDeclaration Reads a library's IEC declaration using bstrLibraryId . If bTryToLoad is set to VARIANT_TRUE , the missing library description can be loaded later as needed. Signature HRESULT GetLibraryIecDeclaration(BSTR bstrLibraryId, VARIANT_BOOL bTryToLoad, BSTR* pIecDeclaration) ; Parameter Return value Error codes E_POINTER : pIecDeclaration is NULL . ADS_E_NOTFOUND : The library for bstrLibraryId was not found. E_NOINTERFACE : No object is available with the ITcLibraryManager . 5.39.2 ITcLibraryManager2 | ITcLibraryManager2 Inherits from:
ITcLibraryManager ITcLibraryManager2 extends the base method to include the option of using namespaces in the generated IEC declaration. Otherwise, the behavior is the same as that of the basic interface (including optional loading of the library). Methods 5.39.2.1 ITcLibraryManager2::GetLibraryIecDeclarationEx | ITcLibraryManager2::GetLibraryIecDeclarationEx Reads a library's IEC declaration and also allows you to control namespace output via bUseNamespaceForMembers . If the resolution is successful, the declaration is returned as BSTR .
Signature HRESULT GetLibraryIecDeclarationEx(BSTR bstrLibraryId, VARIANT_BOOL bTryToLoad, VARIANT_BOOL bUseNam espaceForMembers, BSTR* pIecDeclaration); TE1000 149 Version: 1.7.0 Method Description GetLibraryIecDeclaration Returns the IEC declaration for the specified library. Name Type Description bstrLibraryId BSTR [in] Unique library ID of the library to be resolved. bTryToLoad VARIANT BOOL _ [in, defaultvalue(-1)] Controls whether loading is attempted during lookup (VARIANT TRUE enabled). _ Name Type Description pIecDeclaration BSTR* [out, retval] IEC declaration of the library as a string. (HRESULT) HRESULT S OK if successful, otherwise an error code.
_ Method Description GetLibraryIecDeclarationEx Provides the IEC declaration and also controls namespace usage for members.