API Reference > Classes > Loader Classes > OdBmLoaderHostAppServices Class > OdBmLoaderHostAppServices Methods > OdBmLoaderHostAppServices::readFile Method (OdStreamBufPtr, bool)
OdBmLoaderHostAppServices::readFile Method (OdStreamBufPtr, bool)
Syntax
C++
virtual OdBmDatabasePtr readFile(OdStreamBufPtr pStream, const bool bPartial = true) override;
Parameters 
Description 
pStreamBuf 
[in] Pointer to the StreamBuf object from which the data are to be read.  
partialLoad 
[in] Input partial loading of ODA BimRv files flag. Partial loading is working only for the latest file format. 

Returns a SmartPointer to the database containing the contents of the file.

Loads the contents of the specified StreamBuf into the database with which this HostAppServices object is associated. 

 

Copyright (c) 2002-2021. Open Design Alliance. All rights reserved.