API Reference > OdDg Classes > OdDgDatabase Class > OdDgDatabase Methods > readFile Method > OdDgDatabase::readFile Method (OdStreamBufPtr&, Oda::FileShareMode, bool)
OdDgDatabase::readFile Method (OdStreamBufPtr&, Oda::FileShareMode, bool)
Syntax
C++
void readFile(OdStreamBufPtr& pStream, Oda::FileShareMode shareMode = Oda::kShareDenyWrite, bool partialLoad = false);
Parameters 
Description 
OdStreamBufPtr& pStream 
[in] Pointer to the memory stream from which the data are to be read.  
Oda::FileShareMode shareMode = Oda::kShareDenyWrite 
[in] Share mode to use when opening the specified file.  
bool partialLoad = false 
[in] Controls the partial loading of DGN files. 

Reads the contents of the memory stream into this database object. 

 

The specified OdDgAuditInfo object controls the audit, and receives the audit status. If pAuditInfo is non-zero, a recover will be performed instead of a load.

Copyright © 2002–2021. Open Design Alliance. All rights reserved.