API Reference > Classes > Loader Classes > OdBmLoaderHostAppServices Class > OdBmLoaderHostAppServices Methods > OdBmLoaderHostAppServices::readFile Method (OdString&, Oda::FileShareMode, bool)
OdBmLoaderHostAppServices::readFile Method (OdString&, Oda::FileShareMode, bool)
Syntax
C++
virtual OdBmDatabasePtr readFile(const OdString& fileName, const Oda::FileShareMode shareMode = Oda::kShareDenyWrite, const bool bPartial = true) override;
Parameters 
Description 
const OdString& fileName 
[in] Input name of the file from which the data are to be read.  
const Oda::FileShareMode shareMode = Oda::kShareDenyWrite 
[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. 

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

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.