API Reference > Classes > Loader Classes > OdBmLoaderHostAppServices Class > OdBmLoaderHostAppServices Methods > OdBmLoaderHostAppServices::readFile Method (OdBmDatabasePtr, OdString&, Oda::FileShareMode, bool)
OdBmLoaderHostAppServices::readFile Method (OdBmDatabasePtr, OdString&, Oda::FileShareMode, bool)
Syntax
C++
virtual void readFile(OdBmDatabasePtr pDb, const OdString& fileName, Oda::FileShareMode shareMode, const bool bPartial = true) override;
Parameters 
Description 
OdBmDatabasePtr pDb 
[in] Input a SmartPointer to the database which will containing the contents of the file.  
const OdString& fileName 
[in] Input name of the file from which the data are to be read.  
Oda::FileShareMode shareMode 
[in] Input share mode to use when opening the specified file.  
partialLoad 
[in] Input partial loading of ODA BimRv files flag. Partial loading is working only for the latest file format. 

Loads the contents of the specified ODA BimRv file file into the database with which this HostAppServices object is associated. 

 

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