API Reference > Classes > Database Classes > OdBmHostAppServices Class > OdBmHostAppServices Methods > OdBmHostAppServices::readFile Method (OdStreamBufPtr, bool)
OdBmHostAppServices::readFile Method (OdStreamBufPtr, bool)
Syntax
C++
virtual OdBmDatabasePtr readFile(OdStreamBufPtr pStream, const bool bPartial = true) = 0;
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.